de.infoasset.platform.services.asset
Class ModelProperty

java.lang.Object
  extended by de.infoasset.platform.services.asset.ModelProperty
Direct Known Subclasses:
Property, Role

public abstract class ModelProperty
extends java.lang.Object


Nested Class Summary
static class ModelProperty.ApplyEvent
           
 
Field Summary
static java.lang.String UNDERSCORE
           
protected  java.util.List<Validator> validators
           
 
Constructor Summary
ModelProperty()
           
 
Method Summary
 ModelProperty.ApplyEvent applyWhen()
           
 void checkName()
           
 boolean containsValidator(java.lang.Class<? extends Validator>... classes)
           
 java.lang.String getAttributeName()
           
 AdditionalChoice[] getChoices()
           
 java.lang.String getFullyQualifiedName()
           
 Message getLabel()
          see "Labels and Help Messages" in AssetPart2Doc.
 java.util.List<ChangeListener> getListeners()
           
 Message getLongHelp()
          see "Labels and Help Messages" in AssetPart2Doc.
 java.lang.String getName()
           
 int getOrdinalNumber()
           
 Asset getOwnerAsset()
           
 java.lang.String getParameterName()
           
 java.lang.String getParameterNameIdSafe()
           
static java.lang.String getPropertyName(java.lang.String fullyQualifiedName)
           
static java.lang.String getPropertyNameFromParameterName(java.lang.String parameterName)
           
 Message getShortHelp()
          see "Labels and Help Messages" in AssetPart2Doc.
static java.lang.String getUid(java.lang.String parameterName)
           
 java.util.List<Validator> getValidators()
           
 void init(Asset asset)
           
 boolean isCloneable()
           
 boolean isDynamicProperty()
           
 boolean isValid()
           
 boolean isVersionable()
           
 boolean isWatchable()
           
protected  void putValidators(Validators a)
           
 void setName(java.lang.String name)
          underscores are only allowed in dynamic properties
 boolean showInGenericViews()
           
abstract  java.lang.String validationMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDERSCORE

public static final java.lang.String UNDERSCORE
See Also:
Constant Field Values

validators

protected java.util.List<Validator> validators
Constructor Detail

ModelProperty

public ModelProperty()
Method Detail

getOwnerAsset

public final Asset getOwnerAsset()

init

public final void init(Asset asset)

isVersionable

public boolean isVersionable()

putValidators

protected void putValidators(Validators a)

getValidators

public final java.util.List<Validator> getValidators()

containsValidator

public final boolean containsValidator(java.lang.Class<? extends Validator>... classes)

getLabel

public Message getLabel()
see "Labels and Help Messages" in AssetPart2Doc.


validationMessage

public abstract java.lang.String validationMessage()

isValid

public boolean isValid()

getParameterName

public final java.lang.String getParameterName()

getParameterNameIdSafe

public java.lang.String getParameterNameIdSafe()

getUid

public static java.lang.String getUid(java.lang.String parameterName)

getPropertyNameFromParameterName

public static java.lang.String getPropertyNameFromParameterName(java.lang.String parameterName)

getName

public final java.lang.String getName()

getAttributeName

public final java.lang.String getAttributeName()

isDynamicProperty

public boolean isDynamicProperty()

setName

public final void setName(java.lang.String name)
underscores are only allowed in dynamic properties


checkName

public void checkName()

applyWhen

public ModelProperty.ApplyEvent applyWhen()

getOrdinalNumber

public int getOrdinalNumber()

getLongHelp

public Message getLongHelp()
see "Labels and Help Messages" in AssetPart2Doc.


getShortHelp

public Message getShortHelp()
see "Labels and Help Messages" in AssetPart2Doc.


getListeners

public java.util.List<ChangeListener> getListeners()

getChoices

public AdditionalChoice[] getChoices()

isWatchable

public boolean isWatchable()

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()

getPropertyName

public static java.lang.String getPropertyName(java.lang.String fullyQualifiedName)

isCloneable

public boolean isCloneable()

showInGenericViews

public boolean showInGenericViews()