de.interactive_instruments.ShapeChange.Model
Class PropertyInfoImpl

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
      extended by de.interactive_instruments.ShapeChange.Model.PropertyInfoImpl
All Implemented Interfaces:
Info, PropertyInfo
Direct Known Subclasses:
GenericPropertyInfo, PropertyInfoEA, PropertyInfoGSIP, PropertyInfoXmi10

public abstract class PropertyInfoImpl
extends InfoImpl
implements PropertyInfo


Field Summary
protected  Boolean implementedByNilReason
           
protected  boolean nilReasonAllowed
          Find out whether nilReason is allowed for the property.
protected  Vector<Qualifier> qualifiers
          Optional qualifier on association role
protected  boolean restriction
          Inquire restriction of property.
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation
 
Constructor Summary
PropertyInfoImpl()
           
 
Method Summary
 int categoryOfValue()
           
 String encodingRule(String platform)
          Return the encoding rule relevant on the operation, given the platform
 String fullName()
          Fully qualified UML name.
 boolean implementedByNilReason()
          Check the tagged value "gmlImplementedByNilReason" to find out whether the property shall allow for nil value treatment.
 boolean isMetadata()
          This inquires whether the property represents metadata, i.e. if it carries an appropriate tagged value.
 boolean isReadOnly()
          Default implementation investigates the initial value set for the property.
 boolean isRestriction()
           
 boolean nilReasonAllowed()
           
 void nilReasonAllowed(boolean b)
          Mark the property as 'nilReasonAllowed'.
 void postprocessAfterLoadingAndValidate()
          1.
 String qname()
          This returns the name of the property adorned with the namespace prefix of its class's package.
 Qualifier qualifier(String name)
           
 Vector<Qualifier> qualifiers()
           
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation, matches, stereotype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.PropertyInfo
association, cardinality, constraints, defaultCodeSpace, inClass, inClass, initialValue, inlineOrByReference, isAggregation, isAttribute, isComposition, isDerived, isNavigable, isOrdered, reverseProperty, sequenceNumber, typeInfo, voidable
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
aliasName, definition, description, documentation, id, matches, model, name, options, result, stereotype, stereotypes, taggedValue, taggedValues, taggedValues
 

Field Detail

qualifiers

protected Vector<Qualifier> qualifiers
Optional qualifier on association role


restriction

protected boolean restriction
Inquire restriction of property.


implementedByNilReason

protected Boolean implementedByNilReason

nilReasonAllowed

protected boolean nilReasonAllowed
Find out whether nilReason is allowed for the property. The tagged value 'nilReasonAllowed' is evaluated and if found 'true' determines the result. Otherwise the result is determined by the value previously set for the property.

Constructor Detail

PropertyInfoImpl

public PropertyInfoImpl()
Method Detail

isRestriction

public boolean isRestriction()
Specified by:
isRestriction in interface PropertyInfo

encodingRule

public String encodingRule(String platform)
Return the encoding rule relevant on the operation, given the platform

Specified by:
encodingRule in interface Info
Overrides:
encodingRule in class InfoImpl
Returns:
the encoding rule relevant on the element

isMetadata

public boolean isMetadata()
This inquires whether the property represents metadata, i.e. if it carries an appropriate tagged value.

Specified by:
isMetadata in interface PropertyInfo

qname

public String qname()
This returns the name of the property adorned with the namespace prefix of its class's package.

Specified by:
qname in interface PropertyInfo

implementedByNilReason

public boolean implementedByNilReason()
Check the tagged value "gmlImplementedByNilReason" to find out whether the property shall allow for nil value treatment. Alternatively check the characteristics of the property

Specified by:
implementedByNilReason in interface PropertyInfo

nilReasonAllowed

public boolean nilReasonAllowed()
Specified by:
nilReasonAllowed in interface PropertyInfo

nilReasonAllowed

public void nilReasonAllowed(boolean b)
Mark the property as 'nilReasonAllowed'.

Specified by:
nilReasonAllowed in interface PropertyInfo

fullName

public String fullName()
Description copied from interface: Info
Fully qualified UML name.

Specified by:
fullName in interface Info

categoryOfValue

public int categoryOfValue()
Specified by:
categoryOfValue in interface PropertyInfo

postprocessAfterLoadingAndValidate

public void postprocessAfterLoadingAndValidate()
Description copied from class: InfoImpl
1. Postprocess the model element to execute any actions that require that the complete model has been loaded. 2. Validate the model element against all applicable requirements and recommendations. All rules applicable to all model elements are validated here, the more specific rules are all validated in the subclasses.

Specified by:
postprocessAfterLoadingAndValidate in interface Info
Overrides:
postprocessAfterLoadingAndValidate in class InfoImpl

isReadOnly

public boolean isReadOnly()
Default implementation investigates the initial value set for the property. If an initial value is set and it contains the String {frozen} or {readOnly} then this evaluates to true, else false. Subclasses of PropertyInfoImpl can override this method if they have a more direct way to determine if the property is readOnly.

Specified by:
isReadOnly in interface PropertyInfo
Returns:
true if the attribute may not be written to after initialization, else false (default).
See Also:
PropertyInfo.isReadOnly()

qualifier

public Qualifier qualifier(String name)
Specified by:
qualifier in interface PropertyInfo

qualifiers

public Vector<Qualifier> qualifiers()
Specified by:
qualifiers in interface PropertyInfo


Copyright © 2015. All rights reserved.