public class ClassInfoEA extends ClassInfoImpl implements ClassInfo
Modifier and Type | Field and Description |
---|---|
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 TreeSet<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 |
globalIdentifierAccessed
Flag used to prevent duplicate retrieval/computation of the
globalIdentifier of this class.
|
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 TreeSet<ClassInfoEA> |
subclassInfoSet
Subclasses
|
protected TreeSet<String> |
supplierIds
Cache for the IDs of the suppliers of this class
|
category, diagrams, profiles
descriptors, stereotypesCache, taggedValuesCache
Constructor and Description |
---|
ClassInfoEA(EADocument doc,
PackageInfoEA pi,
org.sparx.Element elmt)
Create new ClassInfo object
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected List<LangString> |
descriptorValues(Descriptor descriptor)
Look up the values for the descriptor, using the source as defined by the
configuration (or the default source, if the configuration does not state
anything regarding the source).
|
void |
establishAssociations() |
void |
establishClassDerivationHierarchy() |
void |
establishRoles(PropertyInfoEA pi) |
org.sparx.Element |
getEaClassElement()
Inquire wrapped EA object
|
int |
getEaElementId() |
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() |
SortedMap<StructuredNumber,PropertyInfo> |
properties()
Get a map of all navigable properties (attributes and association roles)
that belong to this class - NOT one of its base classes.
|
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.
|
SortedSet<String> |
subtypes()
Provide the ids of all subclasses of this class.
|
SortedSet<String> |
supertypes()
Provides the ids of all direct base classes of this class (includes the
class that is returned by method
ClassInfo.baseClass() ). |
protected TreeSet<String> |
supplierIds() |
void |
taggedValue(String tag,
String value)
Set the tagged value for the tag given.
|
void |
validateStereotypesCache() |
void |
validateTaggedValuesCache()
Create cache of stereotypes and tagged values
|
asCharacterString, asDictionary, asDictionaryGml33, asGroup, category, encodingRule, establishCategory, fixIfCategoryIsUnknown, fullName, fullNameInSchema, getDiagrams, hasConstraint, hasNilReason, includeByValuePropertyType, includePropertyType, inSchema, isCollection, isKindOf, isSubtype, isUnionDirect, language, ns, nsabr, ownedProperty, postprocessAfterLoadingAndValidate, profiles, propertiesAll, qname, setDiagrams, subtypesInCompleteHierarchy, supertypesInCompleteHierarchy, suppressed, unsuppressedSupertype, xmlSchemaType
aliasName, compareTo, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, descriptorSource, documentation, examples, globalIdentifier, legalBasis, matches, primaryCode, removeTaggedValue, setDescriptors, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asCharacterString, asDictionary, asDictionaryGml33, asGroup, category, getDiagrams, hasConstraint, hasNilReason, includeByValuePropertyType, includePropertyType, inSchema, isCollection, isKindOf, isSubtype, isUnionDirect, ownedProperty, profiles, propertiesAll, qname, setDiagrams, subtypesInCompleteHierarchy, supertypesInCompleteHierarchy, suppressed, unsuppressedSupertype, xmlSchemaType
aliasName, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, documentation, encodingRule, examples, fullName, fullNameInSchema, globalIdentifier, language, legalBasis, matches, postprocessAfterLoadingAndValidate, primaryCode, removeTaggedValue, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage
compareTo
protected boolean aliasAccessed
protected boolean connectorsAccessed
protected boolean documentationAccessed
protected boolean globalIdentifierAccessed
protected boolean isAssocClassAccessed
protected AssociationInfo assoc
protected org.sparx.Collection<org.sparx.Connector> conns
protected EADocument document
protected PackageInfoEA packageInfo
protected ClassInfoEA baseclassInfo
protected TreeSet<ClassInfoEA> baseclassInfoSet
protected TreeSet<ClassInfoEA> subclassInfoSet
protected org.sparx.Element eaClassElement
protected int eaClassId
protected String eaName
protected boolean isAbstract
protected boolean isLeaf
protected Vector<PropertyInfoEA> registeredRoles
protected TreeMap<StructuredNumber,PropertyInfo> propertiesCache
protected TreeMap<Integer,OperationInfo> operationsCache
protected Vector<Constraint> constraintsCache
public ClassInfoEA(EADocument doc, PackageInfoEA pi, org.sparx.Element elmt) throws ShapeChangeAbortException
ShapeChangeAbortException
public void establishClassDerivationHierarchy()
public void establishAssociations()
public void establishRoles(PropertyInfoEA pi)
public org.sparx.Element getEaClassElement()
public int getEaElementId()
public Options options()
public ShapeChangeResult result()
public ClassInfo baseClass()
ClassInfo
public boolean checkSupertypes(int cat)
checkSupertypes
in interface ClassInfo
checkSupertypes
in class ClassInfoImpl
public PackageInfo pkg()
public SortedMap<StructuredNumber,PropertyInfo> properties()
ClassInfo
properties
in interface ClassInfo
null
.ClassInfo.properties()
public PropertyInfo property(String name)
ClassInfo
property
in interface ClassInfo
null
if no property was foundClassInfo.property(java.lang.String)
public void validateStereotypesCache()
validateStereotypesCache
in interface Info
public SortedSet<String> subtypes()
subtypes
in interface ClassInfo
null
.public SortedSet<String> supertypes()
ClassInfo
ClassInfo.baseClass()
).supertypes
in interface ClassInfo
ClassInfo.supertypes()
protected List<LangString> descriptorValues(Descriptor descriptor)
InfoImpl
descriptorValues
in class InfoImpl
public void validateTaggedValuesCache()
Info
validateTaggedValuesCache
in interface Info
public void taggedValue(String tag, String value)
public boolean isAbstract()
isAbstract
in interface ClassInfo
public boolean isLeaf()
public Vector<Constraint> constraints()
ClassInfo
constraints
in interface ClassInfo
null
ClassInfo.constraints()
public OperationInfo operation(String name, String[] types)
public AssociationInfo isAssocClass()
isAssocClass
in interface ClassInfo
Copyright © 2017. All rights reserved.