de.interactive_instruments.ShapeChange.Model.Xmi10
Class ClassInfoXmi10
java.lang.Object
de.interactive_instruments.ShapeChange.Model.InfoImpl
de.interactive_instruments.ShapeChange.Model.ClassInfoImpl
de.interactive_instruments.ShapeChange.Model.Xmi10.ClassInfoXmi10
- All Implemented Interfaces:
- ClassInfo, Info
public class ClassInfoXmi10
- extends ClassInfoImpl
- implements ClassInfo
Information about an UML class.
Methods inherited from class de.interactive_instruments.ShapeChange.Model.ClassInfoImpl |
asCharacterString, asDictionary, asDictionaryGml33, asGroup, category, checkSupertypes, 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 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, checkSupertypes, getDiagrams, hasConstraint, includeByValuePropertyType, includePropertyType, inSchema, isCollection, isKindOf, isSubtype, isUnionDirect, processed, processed, qname, setDiagrams, suppressed, unsuppressedSupertype, xmlSchemaType |
id
protected String id
cla
protected Element cla
doc
protected Xmi10Document doc
uuid
protected UUID uuid
properties
protected TreeMap<StructuredNumber,PropertyInfo> properties
hasNilReason
protected boolean hasNilReason
operations
public TreeMap<Integer,OperationInfo> operations
ClassInfoXmi10
public ClassInfoXmi10(Xmi10Document d,
Element e)
throws ShapeChangeAbortException,
ShapeChangeIgnoreClassException
- Throws:
ShapeChangeAbortException
ShapeChangeIgnoreClassException
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
roseHiddenCardinality
protected Multiplicity roseHiddenCardinality()
roseHiddenLabels
protected String roseHiddenLabels()
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interface ClassInfo
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface ClassInfo
pkg
public PackageInfo pkg()
- Specified by:
pkg
in interface ClassInfo
stereotypes
public Set<String> stereotypes()
- Specified by:
stereotypes
in interface Info
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.
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
supertypes
public HashSet<String> supertypes()
- Description copied from interface:
ClassInfo
- Provides the ids of all base classes of this class.
- Specified by:
supertypes
in interface ClassInfo
- Returns:
- Set of ids of the base classes of this class.
subtypes
public HashSet<String> subtypes()
- Specified by:
subtypes
in interface ClassInfo
- Returns:
- Set with the ids of all subtypes of this class (WARNING: this can
be a shallow copy or derived set, thus it is not safe to assume
that modifications to this set will update the subtype
information in the class itself).
hasNilReason
public boolean hasNilReason()
- Specified by:
hasNilReason
in interface ClassInfo
properties
public TreeMap<StructuredNumber,PropertyInfo> properties()
- Specified by:
properties
in interface ClassInfo
property
public PropertyInfo property(String name)
- Description copied from interface:
ClassInfo
- Note: a ClassInfo does not keep track of non-navigable properties. Such
properties occur in directed associations and are only referenced there.
- Specified by:
property
in interface ClassInfo
- Returns:
baseClass
public ClassInfo baseClass()
- Specified by:
baseClass
in interface ClassInfo
constraints
public Vector<Constraint> constraints()
- Specified by:
constraints
in interface ClassInfo
operation
public OperationInfo operation(String name,
String[] types)
- Specified by:
operation
in interface ClassInfo
isAssocClass
public AssociationInfo isAssocClass()
- Specified by:
isAssocClass
in interface ClassInfo
Copyright © 2015. All rights reserved.