|
||||||||||
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
us.mitre.ShapeChange.Model.GSIP.ClassInfoGSIP
public class ClassInfoGSIP
Field Summary | |
---|---|
protected ClassInfoGSIP |
baseclassInfo
Baseclasses |
protected HashSet<ClassInfoGSIP> |
baseclassInfoSet
|
protected Vector<Constraint> |
constraintsCache
Cache set of constraints |
protected GSIPDocument |
document
Access to the document object |
protected int |
enumLiteralSequenceNumber
Assist for property sequencing if this is an Enumeration. |
protected HashMap<String,PropertyInfoGSIP> |
fPropertiesById
|
protected String |
gsipClassId
The GSIP object id of the class element object |
protected String |
gsipName
Name of the class |
protected boolean |
hasNilReason
Does this class possess nilReason properties? |
protected boolean |
isAbstract
Some class flags. |
protected boolean |
isLeaf
|
protected int |
numBaseClasses
|
protected TreeMap<Integer,OperationInfo> |
operationsCache
Cache (ordered) set for operations |
protected PackageInfoGSIP |
packageInfo
The package the class belongs to |
protected TreeMap<StructuredNumber,PropertyInfo> |
propertiesCache
Cache (ordered) set for properties |
protected Vector<PropertyInfoGSIP> |
registeredRoles
Roles registered as properties of the class |
protected String |
stereotype
Stereotype |
protected HashSet<ClassInfoGSIP> |
subclassInfoSet
Subclasses |
protected HashMap<String,String> |
taggedValuesCache
Cache map for tagged values |
protected boolean |
validatedConstraints
|
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 | |
---|---|
ClassInfoGSIP(GSIPDocument doc,
PackageInfoGSIP pi,
HashMap<String,Object> properties)
|
Method Summary | |
---|---|
void |
addConstraint(Constraint c)
|
void |
addProperty(PropertyInfo pi)
|
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()
|
void |
establishRoles(PropertyInfoGSIP pi)
|
PropertyInfoGSIP |
getPropertyById(String id)
|
boolean |
hasNilReason()
|
String |
id()
Return model-unique id of class. |
boolean |
isAbstract()
|
AssociationInfo |
isAssocClass()
|
boolean |
isLeaf()
|
Model |
model()
Return GSIP model object. |
String |
name()
Obtain the name of the class. |
OperationInfo |
operation(String name,
String[] types)
|
Options |
options()
Return options and configuration object. |
PackageInfo |
pkg()
|
TreeMap<StructuredNumber,PropertyInfo> |
properties()
|
PropertyInfo |
property(String name)
Note: a ClassInfo does not keep track of non-navigable properties. |
ShapeChangeResult |
result()
Return result object for error reporting. |
Set<String> |
stereotypes()
|
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. |
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)
TODO tagged values validation |
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 |
---|
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.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 |
---|
aliasName, definition, description, documentation, encodingRule, fullName, matches, postprocessAfterLoadingAndValidate, stereotype |
Field Detail |
---|
protected GSIPDocument document
protected PackageInfoGSIP packageInfo
protected ClassInfoGSIP baseclassInfo
protected HashSet<ClassInfoGSIP> baseclassInfoSet
protected HashSet<ClassInfoGSIP> subclassInfoSet
protected String gsipClassId
protected String gsipName
protected boolean isAbstract
protected boolean isLeaf
protected int numBaseClasses
protected Vector<PropertyInfoGSIP> registeredRoles
protected HashMap<String,String> taggedValuesCache
protected String stereotype
protected TreeMap<StructuredNumber,PropertyInfo> propertiesCache
protected HashMap<String,PropertyInfoGSIP> fPropertiesById
protected TreeMap<Integer,OperationInfo> operationsCache
protected Vector<Constraint> constraintsCache
protected boolean validatedConstraints
protected boolean hasNilReason
protected int enumLiteralSequenceNumber
Constructor Detail |
---|
public ClassInfoGSIP(GSIPDocument doc, PackageInfoGSIP pi, HashMap<String,Object> properties) throws ShapeChangeAbortException
ShapeChangeAbortException
Method Detail |
---|
public ClassInfo baseClass()
baseClass
in interface ClassInfo
public boolean checkSupertypes(int cat)
ClassInfoImpl
checkSupertypes
in interface ClassInfo
checkSupertypes
in class ClassInfoImpl
public void addConstraint(Constraint c)
public Vector<Constraint> constraints()
constraints
in interface ClassInfo
public boolean hasNilReason()
hasNilReason
in interface ClassInfo
public boolean isAbstract()
isAbstract
in interface ClassInfo
public boolean isLeaf()
isLeaf
in interface ClassInfo
public OperationInfo operation(String name, String[] types)
operation
in interface ClassInfo
public PackageInfo pkg()
pkg
in interface ClassInfo
public TreeMap<StructuredNumber,PropertyInfo> properties()
properties
in interface ClassInfo
public PropertyInfo property(String name)
ClassInfo
property
in interface ClassInfo
public HashSet<String> subtypes()
subtypes
in interface ClassInfo
public HashSet<String> supertypes()
supertypes
in interface ClassInfo
public String id()
id
in interface Info
public Model model()
model
in interface Info
public String name()
name
in interface Info
public Options options()
options
in interface Info
public ShapeChangeResult result()
result
in interface Info
public Set<String> stereotypes()
stereotypes
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 HashMap<String,String> taggedValues(String tagList)
taggedValues
in interface Info
public HashMap<String,String> taggedValues()
taggedValues
in interface Info
null
public void addProperty(PropertyInfo pi)
public PropertyInfoGSIP getPropertyById(String id)
public void establishRoles(PropertyInfoGSIP pi)
public AssociationInfo isAssocClass()
isAssocClass
in interface ClassInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |