de.interactive_instruments.ShapeChange.Model.EA
Class AssociationInfoEA

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
      extended by de.interactive_instruments.ShapeChange.Model.AssociationInfoImpl
          extended by de.interactive_instruments.ShapeChange.Model.EA.AssociationInfoEA
All Implemented Interfaces:
AssociationInfo, Info

public class AssociationInfoEA
extends AssociationInfoImpl
implements AssociationInfo


Field Summary
protected  int eaConnectorId
          The EA object id of the association object
protected  String name
          Name of Association
protected  int navigability
          Navigability 0=both, +1=source->target, -1=target->source
protected  PropertyInfoEA[] properties
          Source [0] and target [1] properties
protected  boolean relevant
          Relevant part of model?
protected  HashSet<String> stereotypesCache
          Cache set for stereotypes
protected  HashMap<String,String> taggedValuesCache
          Cache map for tagged values
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation
 
Method Summary
 String aliasName()
          Get alias name of the association.
 ClassInfo assocClass()
           
 String documentation()
          Return the documentation attached to the property object.
 PropertyInfo end1()
          Return PropertyInfo from source end
 PropertyInfo end2()
          Return PropertyInfo from source end
 String id()
          Return model-unique id of association
 Model model()
          Return Model object
 String name()
          Return name of Association
 Options options()
          Return options and configuration object.
 ShapeChangeResult result()
          Return result object for error reporting.
 Set<String> stereotypes()
          Return the normalized stereotypes of the association.
 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.
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.AssociationInfoImpl
encodingRule, fullName, postprocessAfterLoadingAndValidate
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
definition, description, 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.Info
definition, description, encodingRule, fullName, matches, postprocessAfterLoadingAndValidate, stereotype
 

Field Detail

eaConnectorId

protected int eaConnectorId
The EA object id of the association object


name

protected String name
Name of Association


navigability

protected int navigability
Navigability 0=both, +1=source->target, -1=target->source


relevant

protected boolean relevant
Relevant part of model?


properties

protected PropertyInfoEA[] properties
Source [0] and target [1] properties


taggedValuesCache

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


stereotypesCache

protected HashSet<String> stereotypesCache
Cache set for stereotypes

Method Detail

end1

public PropertyInfo end1()
Return PropertyInfo from source end

Specified by:
end1 in interface AssociationInfo

end2

public PropertyInfo end2()
Return PropertyInfo from source end

Specified by:
end2 in interface AssociationInfo

id

public String id()
Return model-unique id of association

Specified by:
id in interface Info

model

public Model model()
Return Model object

Specified by:
model in interface Info

name

public String name()
Return name of Association

Specified by:
name in interface Info

aliasName

public String aliasName()
Get alias name of the association.

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

documentation

public String documentation()
Return the documentation attached to the property object. This is fetched from tagged values and - if this is absent - from the 'notes' specific to the EA objects model.

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

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

stereotypes

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

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.

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

assocClass

public ClassInfo assocClass()
Specified by:
assocClass in interface AssociationInfo

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
See Also:
Info.taggedValues()


Copyright © 2015. All rights reserved.