de.infoasset.platform.services.asset
Class Property

java.lang.Object
  extended by de.infoasset.platform.services.asset.ModelProperty
      extended by de.infoasset.platform.services.asset.Property
All Implemented Interfaces:
Attribute
Direct Known Subclasses:
BooleanProperty, ByteStreamProperty, CharStreamProperty, DateProperty, DomainValueProperty, IdProperty, IntProperty, MultiDomainValueProperty, StringProperty, TimestampProperty

public abstract class Property
extends ModelProperty
implements Attribute


Nested Class Summary
 
Nested classes/interfaces inherited from class de.infoasset.platform.services.asset.ModelProperty
ModelProperty.ApplyEvent
 
Nested classes/interfaces inherited from interface de.infoasset.platform.store.Attribute
Attribute.DataTypes
 
Field Summary
 
Fields inherited from class de.infoasset.platform.services.asset.ModelProperty
UNDERSCORE, validators
 
Fields inherited from interface de.infoasset.platform.store.Attribute
ASSET_ID_LENGTH, ASSET_UID_LENGTH, DOMAINVALUE_LENGTH, INDEXED, LENGTH, MULTI_DOMAINVALUE_LENGTH, MULTILINGUAL, MULTILINGUAL_LENGTH, NOT_NULL_CONSTRAINT, REFERENCES, TYPE, UNIQUE_CONSTRAINT
 
Constructor Summary
Property()
           
 
Method Summary
 java.lang.String encode()
          Return a string representation if this attribute siganture.
 Container getContainer()
           
 java.lang.Object getObject()
           
protected  java.lang.String getStringRepresentation(java.lang.Object value)
           
protected  java.lang.Object getTypedObjectFromString(java.lang.String value)
           
 java.lang.String[] getUniqueConstraintAttributeNames()
          Returns null if no unique constraint applies to this attribute.
 boolean isPersistent()
           
 boolean notNull()
           
 void setContainer(Container container)
           
 void setObject(java.lang.Object value)
           
 java.lang.String toString()
           
 java.lang.String validationMessage()
           
 
Methods inherited from class de.infoasset.platform.services.asset.ModelProperty
applyWhen, checkName, containsValidator, getAttributeName, getChoices, getFullyQualifiedName, getLabel, getListeners, getLongHelp, getName, getOrdinalNumber, getOwnerAsset, getParameterName, getParameterNameIdSafe, getPropertyName, getPropertyNameFromParameterName, getShortHelp, getUid, getValidators, init, isCloneable, isDynamicProperty, isValid, isVersionable, isWatchable, putValidators, setName, showInGenericViews
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.infoasset.platform.store.Attribute
getAttributeName, getDatatype
 

Constructor Detail

Property

public Property()
Method Detail

getStringRepresentation

protected java.lang.String getStringRepresentation(java.lang.Object value)

getTypedObjectFromString

protected java.lang.Object getTypedObjectFromString(java.lang.String value)

setObject

public final void setObject(java.lang.Object value)

getObject

public final java.lang.Object getObject()

validationMessage

public final java.lang.String validationMessage()
Specified by:
validationMessage in class ModelProperty

getContainer

public Container getContainer()
Specified by:
getContainer in interface Attribute

setContainer

public void setContainer(Container container)
Specified by:
setContainer in interface Attribute

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

encode

public final java.lang.String encode()
Description copied from interface: Attribute
Return a string representation if this attribute siganture.

The encoding must conform with ContentType.toString().

Specified by:
encode in interface Attribute

getUniqueConstraintAttributeNames

public java.lang.String[] getUniqueConstraintAttributeNames()
Description copied from interface: Attribute
Returns null if no unique constraint applies to this attribute.

Specified by:
getUniqueConstraintAttributeNames in interface Attribute

notNull

public boolean notNull()
Specified by:
notNull in interface Attribute

isPersistent

public boolean isPersistent()
Specified by:
isPersistent in interface Attribute