Class EntityKeyValue
- java.lang.Object
-
- com.priint.pubserver.entity.Entity
-
- com.priint.pubserver.entity.EntityKeyValue
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityKeyValue extends Entity
Entity for KeyValues.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:
KeyValue, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityKeyValue.AllowedTagsDeprecated.Use arrayallowedTagsinstead.-
Nested classes/interfaces inherited from class com.priint.pubserver.entity.Entity
Entity.CacheType, Entity.DataClass, Entity.RetrievalType
-
-
Field Summary
Fields Modifier and Type Field Description static PluginConfigTag[]allowedTagsType 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
Constructors Constructor Description EntityKeyValue()Default constructorEntityKeyValue(java.lang.String label)Creating a new keyvalue entity with a label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDummyDataType()Gets dummy data type.java.lang.StringgetDummyKey()Get the dummy key for this entity key value.java.lang.StringgetDummyKeyLabel()Get the key for publishing (if key is something like a code)java.lang.StringgetDummyRefDataType()Gets dummy ref data type.java.lang.StringgetDummyRefKeyKey()Gets dummy ref key key.java.lang.StringgetDummyRefKeyLabel()Gets dummy ref key label.java.lang.StringgetDummyRefValue()Gets dummy ref value.java.lang.StringgetDummyValue()Get the dummy value for this entity key value (a value like "12").voidsetDummyDataType(java.lang.String dummyDataType)Throws a NullArgumentException if argument isnull.voidsetDummyKey(java.lang.String dummyKey)Set the dummy key for this entity key value.voidsetDummyKeyLabel(java.lang.String dummyKeyLabel)Set the key for publishing (if key is something like a code)voidsetDummyRefDataType(java.lang.String dummyRefDataType)Sets dummy ref data type.voidsetDummyRefKeyKey(java.lang.String dummyRefKeyKey)Sets dummy ref key key.voidsetDummyRefKeyLabel(java.lang.String dummyRefKeyLabel)Sets dummy ref key label.voidsetDummyRefValue(java.lang.String dummyRefValue)Sets dummy ref value.voidsetDummyValue(java.lang.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 Detail
-
allowedTags
public static final PluginConfigTag[] allowedTags
Type of Tags to be used for this entities. For all tags see:PluginConfigTag
-
-
Constructor Detail
-
EntityKeyValue
public EntityKeyValue()
Default constructor
-
EntityKeyValue
public EntityKeyValue(java.lang.String label)
Creating a new keyvalue entity with a label.- Parameters:
label- seeEntity.getLabel()
-
-
Method Detail
-
getDummyKey
public java.lang.String getDummyKey()
Get the dummy key for this entity key value.Defaults to an empty string.
- Returns:
- dummyKey as String
-
setDummyKey
public void setDummyKey(java.lang.String dummyKey)
Set the dummy key for this entity key value.Throws a NullArgumentException if argument is
null.- Parameters:
dummyKey- seegetDummyKey()
-
getDummyKeyLabel
public java.lang.String getDummyKeyLabel()
Get the key for publishing (if key is something like a code)Defaults to an empty string.
- Returns:
- dummyKeyLabel as String
-
setDummyKeyLabel
public void setDummyKeyLabel(java.lang.String dummyKeyLabel)
Set the key for publishing (if key is something like a code)Throws a NullArgumentException if argument is
null.- Parameters:
dummyKeyLabel- seegetDummyKeyLabel()
-
getDummyValue
public java.lang.String getDummyValue()
Get the dummy value for this entity key value (a value like "12").Defaults to an empty string.
- Returns:
- dummyValue as String
-
setDummyValue
public void setDummyValue(java.lang.String dummyValue)
Set the dummy value for this entity key value (a value like "12").Throws a NullArgumentException if argument is
null.- Parameters:
dummyValue- seegetDummyValue()
-
getDummyDataType
public java.lang.String getDummyDataType()
Gets dummy data type.- Returns:
- dummyDataType as String
Defaults to an empty string.
-
setDummyDataType
public void setDummyDataType(java.lang.String dummyDataType)
Throws a NullArgumentException if argument is
null.- Parameters:
dummyDataType- seegetDummyDataType()
-
getDummyRefKeyKey
public java.lang.String getDummyRefKeyKey()
Gets dummy ref key key.- Returns:
- dummyRefKeyKey as String
Defaults to an empty string.
-
setDummyRefKeyKey
public void setDummyRefKeyKey(java.lang.String dummyRefKeyKey)
Sets dummy ref key key.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefKeyKey- seegetDummyRefKeyKey()
-
getDummyRefKeyLabel
public java.lang.String getDummyRefKeyLabel()
Gets dummy ref key label.- Returns:
- dummyRefKeyLabel as String
Defaults to an empty string.
-
setDummyRefKeyLabel
public void setDummyRefKeyLabel(java.lang.String dummyRefKeyLabel)
Sets dummy ref key label.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefKeyLabel- seegetDummyRefKeyLabel()
-
getDummyRefValue
public java.lang.String getDummyRefValue()
Gets dummy ref value.- Returns:
- dummyRefValue as String
Defaults to an empty string.
-
setDummyRefValue
public void setDummyRefValue(java.lang.String dummyRefValue)
Sets dummy ref value.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefValue- seegetDummyRefValue()
-
getDummyRefDataType
public java.lang.String getDummyRefDataType()
Gets dummy ref data type.- Returns:
- dummyRefDataType as String
Defaults to an empty string.
-
setDummyRefDataType
public void setDummyRefDataType(java.lang.String dummyRefDataType)
Sets dummy ref data type.Throws a NullArgumentException if argument is
null.- Parameters:
dummyRefDataType- seegetDummyRefDataType()
-
-