us.mitre.ShapeChange.Model.GSIP
Class PropertyInfoGSIP

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
      extended by de.interactive_instruments.ShapeChange.Model.PropertyInfoImpl
          extended by us.mitre.ShapeChange.Model.GSIP.PropertyInfoGSIP
All Implemented Interfaces:
Info, PropertyInfo

public class PropertyInfoGSIP
extends PropertyInfoImpl
implements PropertyInfo


Field Summary
protected  String aggregationTypeCache
          Aggregation type cache
protected  ClassInfoGSIP classInfo
          Class the property belongs to
protected  Vector<Constraint> constraintsCache
          Cache set of constraints
protected  GSIPDocument document
          Access to the document object
protected  String gsipName
          Name of the property
protected  String gsipPropertyId
          Model-unique id.
protected  String initialValueCache
          Initial value cache
protected  boolean isAttribute
          Flag for whether or not this Property is an Attribute
protected  Boolean isDerivedCache
          Is derived cache
protected  Boolean isNavigableCache
          Is navigable cache
protected  Boolean isOrderedCache
          Cache for ordering in property
protected  Multiplicity multiplicity
          Multiplicity of property
protected  StructuredNumber sequenceNumber
          Sequence number of property
protected  String stereotype
          Cache for stereotype
protected  HashMap<String,String> taggedValuesCache
          Cache map for tagged values
protected  ClassInfoGSIP typeClassInfo
           
protected  Type typeInfo
          Type information
 
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
PropertyInfoGSIP(GSIPDocument doc, ClassInfoGSIP ci, AssociationInfoGSIP ai, boolean reversed, HashMap<String,Object> properties, ClassInfoGSIP tci)
          Create a PropertyInfo object given an AssociationInfo and a ConnectorEnd.
PropertyInfoGSIP(GSIPDocument doc, ClassInfoGSIP ci, HashMap<String,Object> properties)
           
PropertyInfoGSIP(GSIPDocument doc, ClassInfoGSIP ci, HashMap<String,Object> properties, boolean isEnumLiteral)
          Create a PropertyInfo object given an GSIP Attribute.
 
Method Summary
 AssociationInfo association()
           
 Multiplicity cardinality()
          Return multiplicity of property
 Vector<Constraint> constraints()
          This method returns the constraints associated with the class.
 String defaultCodeSpace()
          Return value of tagged value "defaultCodeSpace"
 String id()
          Return model-unique id of property.
 ClassInfo inClass()
          Return the class object to which this property belongs.
 void inClass(ClassInfo ci)
          Make the property belong to the class given.
 String initialValue()
          Return the initialValue of the property in case such a thing is specified in the model, null otherwise.
 String inlineOrByReference()
          From the tagged value "inlineOrByReference" find out whether the property shall be translated into a construct which embeds the value into the property ("inline") or refers it ("byreference").
 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()
          Return GSIP model object.
 String name()
          Obtain the name of the property.
 Options options()
          Return options and configuration object.
 ShapeChangeResult result()
          Return result object for error reporting.
 PropertyInfo reverseProperty()
          Return the property on the other end of the association.
 StructuredNumber sequenceNumber()
           
 void setAggregationType(String aggregation)
           
 String setInlineOrByReference(String inlineOrByRef)
           
 Set<String> stereotypes()
          Return the normalized stereotype of the property.
 String taggedValue(String tag)
          Return the tagged value for the tag given or null if missing.
 HashMap<String,String> taggedValues()
           
 HashMap<String,String> taggedValues(String tagList)
          Return all the tagged values listed in the input string.
 Type typeInfo()
          Return id and name of type of property
 boolean voidable()
          Find out whether the property owns the stereotype 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
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
categoryOfValue, implementedByNilReason, isMetadata, isReadOnly, isRestriction, nilReasonAllowed, nilReasonAllowed, qname, qualifier, qualifiers
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
aliasName, definition, description, documentation, encodingRule, fullName, matches, postprocessAfterLoadingAndValidate, stereotype
 

Field Detail

isAttribute

protected boolean isAttribute
Flag for whether or not this Property is an Attribute


document

protected GSIPDocument document
Access to the document object


classInfo

protected ClassInfoGSIP classInfo
Class the property belongs to


gsipPropertyId

protected String gsipPropertyId
Model-unique id. For attributes this is the ID from GSIP Attributes prefixed by the class id. For roles this is derived from the Connector and a sign.


gsipName

protected String gsipName
Name of the property


typeInfo

protected Type typeInfo
Type information


typeClassInfo

protected ClassInfoGSIP typeClassInfo

sequenceNumber

protected StructuredNumber sequenceNumber
Sequence number of property


multiplicity

protected Multiplicity multiplicity
Multiplicity of property


initialValueCache

protected String initialValueCache
Initial value cache


isDerivedCache

protected Boolean isDerivedCache
Is derived cache


isNavigableCache

protected Boolean isNavigableCache
Is navigable cache


aggregationTypeCache

protected String aggregationTypeCache
Aggregation type cache


isOrderedCache

protected Boolean isOrderedCache
Cache for ordering in property


stereotype

protected String stereotype
Cache for stereotype


taggedValuesCache

protected HashMap<String,String> taggedValuesCache
Cache map for tagged values


constraintsCache

protected Vector<Constraint> constraintsCache
Cache set of constraints

Constructor Detail

PropertyInfoGSIP

public PropertyInfoGSIP(GSIPDocument doc,
                        ClassInfoGSIP ci,
                        HashMap<String,Object> properties)

PropertyInfoGSIP

public PropertyInfoGSIP(GSIPDocument doc,
                        ClassInfoGSIP ci,
                        HashMap<String,Object> properties,
                        boolean isEnumLiteral)
Create a PropertyInfo object given an GSIP Attribute.


PropertyInfoGSIP

public PropertyInfoGSIP(GSIPDocument doc,
                        ClassInfoGSIP ci,
                        AssociationInfoGSIP ai,
                        boolean reversed,
                        HashMap<String,Object> properties,
                        ClassInfoGSIP tci)
Create a PropertyInfo object given an AssociationInfo and a ConnectorEnd.

Method Detail

model

public Model model()
Return GSIP model object.

Specified by:
model in interface Info

options

public Options options()
Return options and configuration object.

Specified by:
options in interface Info

result

public ShapeChangeResult result()
Return result object for error reporting.

Specified by:
result in interface Info

cardinality

public Multiplicity cardinality()
Return multiplicity of property

Specified by:
cardinality in interface PropertyInfo

defaultCodeSpace

public String defaultCodeSpace()
Return value of tagged value "defaultCodeSpace"

Specified by:
defaultCodeSpace in interface PropertyInfo

inClass

public ClassInfo inClass()
Return the class object to which this property belongs.

Specified by:
inClass in interface PropertyInfo

inClass

public void inClass(ClassInfo ci)
Make the property belong to the class given.

Specified by:
inClass in interface PropertyInfo

initialValue

public String initialValue()
Return the initialValue of the property in case such a thing is specified in the model, null otherwise. This works only for attributes.

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.

inlineOrByReference

public String inlineOrByReference()
From the tagged value "inlineOrByReference" find out whether the property shall be translated into a construct which embeds the value into the property ("inline") or refers it ("byreference").

Specified by:
inlineOrByReference in interface PropertyInfo

isAggregation

public boolean isAggregation()
Find out whether this property is an aggregation.

Specified by:
isAggregation in interface PropertyInfo

isAttribute

public boolean isAttribute()
Indicate whether this property is an attribute (and not a role)

Specified by:
isAttribute in interface PropertyInfo

isComposition

public boolean isComposition()
Find out whether this property is a composition.

Specified by:
isComposition in interface PropertyInfo

isDerived

public boolean isDerived()
Find out whether this property is a derived one.

Specified by:
isDerived in interface PropertyInfo

isNavigable

public boolean isNavigable()
Indicate whether the property is navigable

Specified by:
isNavigable in interface PropertyInfo

isOrdered

public boolean isOrdered()
Find out if the property represents an ordered collection.

Specified by:
isOrdered in interface PropertyInfo

reverseProperty

public PropertyInfo reverseProperty()
Return the property on the other end of the association. This returns null for attribute properties.

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

sequenceNumber

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

stereotypes

public Set<String> stereotypes()
Return the normalized stereotype of the property.

Specified by:
stereotypes in interface Info

taggedValue

public String taggedValue(String tag)
Return the tagged value for the tag given or null if missing.

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.

typeInfo

public Type typeInfo()
Return id and name of type of property

Specified by:
typeInfo in interface PropertyInfo

voidable

public boolean voidable()
Find out whether the property owns the stereotype voidable.

Specified by:
voidable in interface PropertyInfo

id

public String id()
Return model-unique id of property.

Specified by:
id in interface Info

name

public String name()
Obtain the name of the property.

Specified by:
name in interface Info

taggedValues

public HashMap<String,String> taggedValues(String tagList)
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

constraints

public Vector<Constraint> constraints()
This method returns the constraints associated with the class.

Specified by:
constraints in interface PropertyInfo

setAggregationType

public void setAggregationType(String aggregation)

setInlineOrByReference

public String setInlineOrByReference(String inlineOrByRef)

association

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


Copyright © 2015. All rights reserved.