|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.Model.InfoImpl
de.interactive_instruments.ShapeChange.Model.ClassInfoImpl
de.interactive_instruments.ShapeChange.Model.EA.ClassInfoEA
public class ClassInfoEA
Field Summary | |
---|---|
protected boolean |
aliasAccessed
Flag used to prevent duplicate retrieval/computation of the alias of this class. |
protected AssociationInfo |
assoc
Cache for the association this class belongs to if it is an association class. |
protected ClassInfoEA |
baseclassInfo
Baseclasses |
protected HashSet<ClassInfoEA> |
baseclassInfoSet
|
protected boolean |
connectorsAccessed
Flag used to prevent duplicate retrieval/computation of the connectors of this class. |
protected org.sparx.Collection<org.sparx.Connector> |
conns
Access to the connectors of this class in the EA model |
protected Vector<Constraint> |
constraintsCache
Cache set of constraints |
protected EADocument |
document
Access to the document object |
protected boolean |
documentationAccessed
Flag used to prevent duplicate retrieval/computation of the documentation of this class. |
protected org.sparx.Element |
eaClassElement
The EA element addressed by this ClassInfo |
protected int |
eaClassId
The EA object id of the class element object |
protected String |
eaName
Name of the class |
protected boolean |
hasNilReason
Does this class possess nilReason properties? |
protected boolean |
isAbstract
Some class flags. |
protected boolean |
isAssocClassAccessed
Flag used to prevent duplicate retrieval/computation of the association of this class. |
protected boolean |
isLeaf
|
protected TreeMap<Integer,OperationInfo> |
operationsCache
Cache (ordered) set for operations |
protected PackageInfoEA |
packageInfo
The package the class belongs to |
protected TreeMap<StructuredNumber,PropertyInfo> |
propertiesCache
Cache (ordered) set for properties |
protected Vector<PropertyInfoEA> |
registeredRoles
Roles registered as properties of the class |
protected HashSet<String> |
stereotypesCache
Cache set for stereotypes |
protected HashSet<ClassInfoEA> |
subclassInfoSet
Subclasses |
protected HashSet<String> |
supplierIds
Cache for the IDs of the suppliers of this class |
protected HashMap<String,String> |
taggedValuesCache
Cache map for tagged values |
Fields inherited from class de.interactive_instruments.ShapeChange.Model.ClassInfoImpl |
---|
category, diagrams, processed |
Fields inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl |
---|
aliasName, definition, description, documentation |
Constructor Summary | |
---|---|
ClassInfoEA(EADocument doc,
PackageInfoEA pi,
org.sparx.Element elmt)
Create new ClassInfo object |
Method Summary | |
---|---|
String |
aliasName()
Get alias name of the class. |
ClassInfo |
baseClass()
This determines the particular base class of a class in the sense of ISO19136 annex D+E. |
boolean |
checkSupertypes(int cat)
This is supposed to find out, whether the given category 'cat' applied in 'this' class complies to the categories of all its base classes. |
Vector<Constraint> |
constraints()
This method returns the constraints associated with the class. |
String |
documentation()
Return the documentation attached to the property object. |
void |
establishAssociations()
|
void |
establishClassDerivationHierarchy()
|
void |
establishRoles(PropertyInfoEA pi)
|
org.sparx.Element |
getEaClassElement()
Inquire wrapped EA object |
boolean |
hasNilReason()
This an indication that the class has a property that has the tagged value "implementedByNilReason" is set to "true". |
String |
id()
Return model-unique id of class. |
boolean |
isAbstract()
Determine whether the class is tagged as being an abstract class |
AssociationInfo |
isAssocClass()
|
boolean |
isLeaf()
Determine whether the class is tagged as being a leaf class |
Model |
model()
Return EA model object. |
String |
name()
Obtain the name of the class. |
OperationInfo |
operation(String name,
String[] types)
Find the operation identified by its name and the types of its parameters in this class or (if not present there) recursively in its base classes. |
Options |
options()
Return options and configuration object. |
PackageInfo |
pkg()
Return the parent package of the class. |
TreeMap<StructuredNumber,PropertyInfo> |
properties()
Return all properties |
PropertyInfo |
property(String name)
Find the property given by its name in this class or (if not present there) recursively in its base classes. |
ShapeChangeResult |
result()
Return result object for error reporting. |
Set<String> |
stereotypes()
Return the normalized stereotypes of the class. |
HashSet<String> |
subtypes()
Provide the ids of all subclasses of this class. |
HashSet<String> |
supertypes()
Provide the ids of all base classes of this class. |
protected HashSet<String> |
supplierIds()
|
String |
taggedValue(String tag)
Return the tagged value for the tag given or null if missing. |
void |
taggedValue(String tag,
String value)
Set the tagged value for the tag given. |
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.ClassInfoImpl |
---|
asCharacterString, asDictionary, asDictionaryGml33, asGroup, category, encodingRule, establishCategory, fixIfCategoryIsUnknown, fullName, getDiagrams, hasConstraint, includeByValuePropertyType, includePropertyType, inSchema, isCollection, isKindOf, isSubtype, isUnionDirect, ns, nsabr, postprocessAfterLoadingAndValidate, processed, processed, qname, setDiagrams, suppressed, unsuppressedSupertype, xmlSchemaType |
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.ClassInfo |
---|
asCharacterString, asDictionary, asDictionaryGml33, asGroup, category, getDiagrams, hasConstraint, includeByValuePropertyType, includePropertyType, inSchema, isCollection, isKindOf, isSubtype, isUnionDirect, processed, processed, qname, setDiagrams, suppressed, unsuppressedSupertype, xmlSchemaType |
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info |
---|
definition, description, encodingRule, fullName, matches, postprocessAfterLoadingAndValidate, stereotype |
Field Detail |
---|
protected boolean aliasAccessed
protected boolean connectorsAccessed
protected boolean documentationAccessed
protected boolean isAssocClassAccessed
protected AssociationInfo assoc
protected org.sparx.Collection<org.sparx.Connector> conns
protected HashSet<String> supplierIds
protected EADocument document
protected PackageInfoEA packageInfo
protected ClassInfoEA baseclassInfo
protected HashSet<ClassInfoEA> baseclassInfoSet
protected HashSet<ClassInfoEA> subclassInfoSet
protected org.sparx.Element eaClassElement
protected int eaClassId
protected String eaName
protected boolean isAbstract
protected boolean isLeaf
protected Vector<PropertyInfoEA> registeredRoles
protected HashMap<String,String> taggedValuesCache
protected HashSet<String> stereotypesCache
protected TreeMap<StructuredNumber,PropertyInfo> propertiesCache
protected TreeMap<Integer,OperationInfo> operationsCache
protected Vector<Constraint> constraintsCache
protected boolean hasNilReason
Constructor Detail |
---|
public ClassInfoEA(EADocument doc, PackageInfoEA pi, org.sparx.Element elmt) throws ShapeChangeAbortException
ShapeChangeAbortException
Method Detail |
---|
public void establishClassDerivationHierarchy()
public void establishAssociations()
public void establishRoles(PropertyInfoEA pi)
public org.sparx.Element getEaClassElement()
public Model model()
model
in interface Info
public Options options()
options
in interface Info
public ShapeChangeResult result()
result
in interface Info
public ClassInfo baseClass()
baseClass
in interface ClassInfo
public boolean checkSupertypes(int cat)
checkSupertypes
in interface ClassInfo
checkSupertypes
in class ClassInfoImpl
public PackageInfo pkg()
pkg
in interface ClassInfo
public TreeMap<StructuredNumber,PropertyInfo> properties()
properties
in interface ClassInfo
public PropertyInfo property(String name)
property
in interface ClassInfo
public Set<String> stereotypes()
stereotypes
in interface Info
public HashSet<String> subtypes()
subtypes
in interface ClassInfo
public HashSet<String> supertypes()
supertypes
in interface ClassInfo
public String documentation()
documentation
in interface Info
documentation
in class InfoImpl
public String id()
id
in interface Info
public String name()
name
in interface Info
public String aliasName()
aliasName
in interface Info
aliasName
in class InfoImpl
public HashMap<String,String> taggedValues(String tagList)
taggedValues
in interface Info
public String taggedValue(String tag)
taggedValue
in interface Info
tag
- name of the tagged value to look up
null if the tagged value is missing.
public void taggedValue(String tag, String value)
public boolean isAbstract()
isAbstract
in interface ClassInfo
public boolean isLeaf()
isLeaf
in interface ClassInfo
public boolean hasNilReason()
hasNilReason
in interface ClassInfo
public Vector<Constraint> constraints()
constraints
in interface ClassInfo
public OperationInfo operation(String name, String[] types)
operation
in interface ClassInfo
public AssociationInfo isAssocClass()
isAssocClass
in interface ClassInfo
public HashMap<String,String> taggedValues()
taggedValues
in interface Info
null
Info.taggedValues()
protected HashSet<String> supplierIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |