Class EntityKeyValue
- All Implemented Interfaces:
Serializable
Typically used for features or attributes, for example "color: pink".
Keyvalues can have sub-keyvalues, e.g. for units as "Meter" for "height: 10m".
Dummy attributes are related to data fields the related entitydata key value type.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.priint.pubserver.entity.Entity
Entity.CacheType, Entity.DataClass, Entity.RetrievalType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PluginConfigTag[]Type of Tags to be used for this entities.Fields inherited from class com.priint.pubserver.entity.Entity
ENTITYCLASS_BUCKET, ENTITYCLASS_CONTENTMETADATA, ENTITYCLASS_CORD, ENTITYCLASS_KEYVALUE, ENTITYCLASS_MEDIAASSET, ENTITYCLASS_PLANNING, ENTITYCLASS_PRICE, ENTITYCLASS_TABLEDATA, ENTITYCLASS_TEXT, ENTITYTYPE_ASSEMBLING, ENTITYTYPE_CONNECTOR, ENTITYTYPE_STATIC -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEntityKeyValue(String label) Creating a new keyvalue entity with a label. -
Method Summary
Modifier and TypeMethodDescriptionGets dummy data type.Get the dummy key for this entity key value.Get the key for publishing (if key is something like a code)Gets dummy ref data type.Gets dummy ref key key.Gets dummy ref key label.Gets dummy ref value.Get the dummy value for this entity key value (a value like "12").voidsetDummyDataType(String dummyDataType) Throws a NullArgumentException if argument isnull.voidsetDummyKey(String dummyKey) Set the dummy key for this entity key value.voidsetDummyKeyLabel(String dummyKeyLabel) Set the key for publishing (if key is something like a code)voidsetDummyRefDataType(String dummyRefDataType) Sets dummy ref data type.voidsetDummyRefKeyKey(String dummyRefKeyKey) Sets dummy ref key key.voidsetDummyRefKeyLabel(String dummyRefKeyLabel) Sets dummy ref key label.voidsetDummyRefValue(String dummyRefValue) Sets dummy ref value.voidsetDummyValue(String dummyValue) Set the dummy value for this entity key value (a value like "12").Methods inherited from class com.priint.pubserver.entity.Entity
getConCachingStrategy, getConConnector, getConConnectorEntity, getConConnectorEntityDescription, getConCronjobdate, getConInstance, getConLifetime, getConMatchingMethod, getContentMetaDataEntities, getContextDefinitions, getDescription, getEntityClass, getEntityDataClass, getEntityDependencyNames, getEntityModel, getEntityType, getHelpTexts, getIcon, getIconName, getIdentifier, getLabel, getPluginConfigName, getPluginConfigPath, getPluginConfigPath, getRevisionNumber, getTag, getTags, getTemplateRule, isConCachingAllowed, isConUseMatchingMethod, isPublicEntity, setConCachingAllowed, setConCachingStrategy, setConConnector, setConConnectorEntity, setConConnectorEntityDescription, setConCronjobdate, setConInstance, setConLifetime, setConMatchingMethod, setContentMetaDataEntities, setContextDefinitions, setConUseMatchingMethod, setDescription, setEntityClass, setEntityDataClass, setEntityModel, setEntityType, setHelpTexts, setIcon, setIconName, setIdentifier, setLabel, setPublicEntity, setRevisionNumber, setTag, setTemplateRule, toPluginConfig, toString
-
Field Details
-
allowedTags
Type of Tags to be used for this entities. For all tags see:PluginConfigTag
-
-
Constructor Details
-
EntityKeyValue
public EntityKeyValue()Default constructor -
EntityKeyValue
Creating a new keyvalue entity with a label.- Parameters:
label- seeEntity.getLabel()
-
-
Method Details
-
getDummyKey
Get the dummy key for this entity key value.Defaults to an empty string.
- Returns:
- dummyKey as String
-
setDummyKey
Set the dummy key for this entity key value.Throws a NullArgumentException if argument is
null.- Parameters:
dummyKey- seegetDummyKey()
-
getDummyKeyLabel
Get the key for publishing (if key is something like a code)Defaults to an empty string.
- Returns:
- dummyKeyLabel as String
-
setDummyKeyLabel
Set the key for publishing (if key is something like a code)Throws a NullArgumentException if argument is
null.- Parameters:
dummyKeyLabel- seegetDummyKeyLabel()
-
getDummyValue
Get the dummy value for this entity key value (a value like "12").Defaults to an empty string.
- Returns:
- dummyValue as String
-
setDummyValue
Set the dummy value for this entity key value (a value like "12").Throws a NullArgumentException if argument is
null.- Parameters:
dummyValue- seegetDummyValue()
-
getDummyDataType
Gets dummy data type.- Returns:
- dummyDataType as String
Defaults to an empty string.
-
setDummyDataType
Throws a NullArgumentException if argument is
null.- Parameters:
dummyDataType- seegetDummyDataType()
-
getDummyRefKeyKey
Gets dummy ref key key.- Returns:
- dummyRefKeyKey as String
Defaults to an empty string.
-
setDummyRefKeyKey
Sets dummy ref key key.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefKeyKey- seegetDummyRefKeyKey()
-
getDummyRefKeyLabel
Gets dummy ref key label.- Returns:
- dummyRefKeyLabel as String
Defaults to an empty string.
-
setDummyRefKeyLabel
Sets dummy ref key label.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefKeyLabel- seegetDummyRefKeyLabel()
-
getDummyRefValue
Gets dummy ref value.- Returns:
- dummyRefValue as String
Defaults to an empty string.
-
setDummyRefValue
Sets dummy ref value.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefValue- seegetDummyRefValue()
-
getDummyRefDataType
Gets dummy ref data type.- Returns:
- dummyRefDataType as String
Defaults to an empty string.
-
setDummyRefDataType
Sets dummy ref data type.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefDataType- seegetDummyRefDataType()
-
allowedTagsinstead.