de.interactive_instruments.ShapeChange.Model.Xmi10
Class PropertyInfoXmi10

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
      extended by de.interactive_instruments.ShapeChange.Model.PropertyInfoImpl
          extended by de.interactive_instruments.ShapeChange.Model.Xmi10.PropertyInfoXmi10
All Implemented Interfaces:
Info, PropertyInfo

public class PropertyInfoXmi10
extends PropertyInfoImpl
implements PropertyInfo


Field Summary
protected  AssociationInfoXmi10 associationInfo
           
protected  boolean attribute
           
protected  ClassInfo classInfo
           
protected  Xmi10Document doc
           
protected  String id
           
protected  Element prp
           
protected  PropertyInfo reverseProperty
           
protected  StructuredNumber sequenceNumber
           
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.PropertyInfoImpl
implementedByNilReason, nilReasonAllowed, qualifiers, restriction
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation
 
Constructor Summary
PropertyInfoXmi10(Xmi10Document d, Element e, AssociationInfoXmi10 ai)
           
 
Method Summary
 String aliasName()
          Get alias name of attribute.
 AssociationInfo association()
           
 Multiplicity cardinality()
           
 Vector<Constraint> constraints()
           
 String defaultCodeSpace()
           
 String id()
           
 ClassInfo inClass()
           
 void inClass(ClassInfo ci)
           
 String initialValue()
           
 String inlineOrByReference()
           
 boolean isAggregation()
          Find out whether this property is an aggregation.
 boolean isAttribute()
          Indicate whether this property is an attribute (and not a role)
 boolean isComposition()
          Find out whether this property is a composition.
 boolean isDerived()
          Find out whether this property is a derived one.
 boolean isNavigable()
          Indicate whether the property is navigable.
 boolean isOrdered()
          Find out if the property represents an ordered collection.
 Model model()
           
 String name()
           
 Options options()
           
 ShapeChangeResult result()
           
 PropertyInfo reverseProperty()
           
 StructuredNumber sequenceNumber()
           
 Set<String> stereotypes()
           
 String taggedValue(String tag)
           
 HashMap<String,String> taggedValues()
           
 HashMap<String,String> taggedValues(String tagList)
          Return all the tagged values listed in the input string.
 Type typeInfo()
           
 boolean voidable()
           
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.PropertyInfoImpl
categoryOfValue, encodingRule, fullName, implementedByNilReason, isMetadata, isReadOnly, isRestriction, nilReasonAllowed, nilReasonAllowed, postprocessAfterLoadingAndValidate, qname, qualifier, qualifiers
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
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
categoryOfValue, implementedByNilReason, isMetadata, isReadOnly, isRestriction, nilReasonAllowed, nilReasonAllowed, qname, qualifier, qualifiers
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
definition, description, documentation, encodingRule, fullName, matches, postprocessAfterLoadingAndValidate, stereotype
 

Field Detail

prp

protected Element prp

doc

protected Xmi10Document doc

id

protected String id

attribute

protected boolean attribute

associationInfo

protected AssociationInfoXmi10 associationInfo

classInfo

protected ClassInfo classInfo

sequenceNumber

protected StructuredNumber sequenceNumber

reverseProperty

protected PropertyInfo reverseProperty
Constructor Detail

PropertyInfoXmi10

public PropertyInfoXmi10(Xmi10Document d,
                         Element e,
                         AssociationInfoXmi10 ai)
                  throws ShapeChangeAbortException
Throws:
ShapeChangeAbortException
Method Detail

model

public Model model()
Specified by:
model in interface Info

options

public Options options()
Specified by:
options in interface Info

result

public ShapeChangeResult result()
Specified by:
result in interface Info

id

public String id()
Specified by:
id in interface Info

name

public String name()
Specified by:
name in interface Info

aliasName

public String aliasName()
Get alias name of attribute.

Specified by:
aliasName in interface Info
Overrides:
aliasName in class InfoImpl
Returns:
the human readable name or an empty string if none exists

taggedValue

public String taggedValue(String tag)
Specified by:
taggedValue in interface Info
Parameters:
tag - name of the tagged value to look up
Returns:
the tagged value for the tag given or null if the tagged value is missing.

isDerived

public boolean isDerived()
Description copied from interface: PropertyInfo
Find out whether this property is a derived one.

Specified by:
isDerived in interface PropertyInfo

isAttribute

public boolean isAttribute()
Description copied from interface: PropertyInfo
Indicate whether this property is an attribute (and not a role)

Specified by:
isAttribute in interface PropertyInfo

typeInfo

public Type typeInfo()
Specified by:
typeInfo in interface PropertyInfo

cardinality

public Multiplicity cardinality()
Specified by:
cardinality in interface PropertyInfo

taggedValues

public HashMap<String,String> taggedValues(String tagList)
Description copied from interface: Info
Return all the tagged values listed in the input string. Tags are assumed to be separated by commas.

Specified by:
taggedValues in interface Info

taggedValues

public HashMap<String,String> taggedValues()
Specified by:
taggedValues in interface Info
Returns:
a map with the tagged values defined for this object (key: tagged value name, value: the value of the tagged value); can be an empty map but not null

isNavigable

public boolean isNavigable()
Description copied from interface: PropertyInfo
Indicate whether the property is navigable. An attribute is always navigable, while an association role may not be navigable.

Specified by:
isNavigable in interface PropertyInfo

isOrdered

public boolean isOrdered()
Description copied from interface: PropertyInfo
Find out if the property represents an ordered collection.

Specified by:
isOrdered in interface PropertyInfo

isComposition

public boolean isComposition()
Description copied from interface: PropertyInfo
Find out whether this property is a composition.

Specified by:
isComposition in interface PropertyInfo

isAggregation

public boolean isAggregation()
Description copied from interface: PropertyInfo
Find out whether this property is an aggregation.

Specified by:
isAggregation in interface PropertyInfo

inlineOrByReference

public String inlineOrByReference()
Specified by:
inlineOrByReference in interface PropertyInfo

defaultCodeSpace

public String defaultCodeSpace()
Specified by:
defaultCodeSpace in interface PropertyInfo

voidable

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

stereotypes

public Set<String> stereotypes()
Specified by:
stereotypes in interface Info

sequenceNumber

public StructuredNumber sequenceNumber()
Specified by:
sequenceNumber in interface PropertyInfo

initialValue

public String initialValue()
Specified by:
initialValue in interface PropertyInfo
Returns:
the initial value of the property in case such a thing is specified in the model, null otherwise. This works only for attributes.

reverseProperty

public PropertyInfo reverseProperty()
Specified by:
reverseProperty in interface PropertyInfo
Returns:
the property on the other end of the association; null for attribute properties.

inClass

public ClassInfo inClass()
Specified by:
inClass in interface PropertyInfo

inClass

public void inClass(ClassInfo ci)
Specified by:
inClass in interface PropertyInfo

constraints

public Vector<Constraint> constraints()
Specified by:
constraints in interface PropertyInfo

association

public AssociationInfo association()
Specified by:
association in interface PropertyInfo


Copyright © 2015. All rights reserved.