|
||||||||||
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.Generic.GenericClassInfo
public class GenericClassInfo
Field Summary | |
---|---|
protected boolean |
asCharacterString
|
protected boolean |
asDictionary
|
protected boolean |
asDictionaryGml33
|
protected boolean |
asGroup
|
protected AssociationInfo |
assocClass
|
protected ClassInfo |
baseClass
|
protected Vector<Constraint> |
constraints
Not null |
protected boolean |
hasNilReason
|
protected String |
id
|
protected boolean |
includeByValuePropertyType
|
protected boolean |
includePropertyType
|
protected boolean |
isAbstract
|
protected boolean |
isCollection
|
protected boolean |
isLeaf
|
protected GenericModel |
model
|
protected String |
name
|
protected Options |
options
|
protected PackageInfo |
pkg
|
protected TreeMap<StructuredNumber,PropertyInfo> |
properties
|
protected ShapeChangeResult |
result
|
protected HashSet<String> |
stereotypes
|
protected HashSet<String> |
subtypes
|
protected HashSet<String> |
supertypes
Set of ids of all base classes of this class |
protected boolean |
suppressed
|
protected HashMap<String,String> |
taggedValues
|
protected String |
xmlSchemaType
|
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 | |
---|---|
GenericClassInfo(GenericModel model,
String id,
String name,
int category)
|
Method Summary | |
---|---|
void |
addConstraints(Vector<Constraint> newConstraints)
|
void |
addPropertiesAtBottom(List<GenericPropertyInfo> newProps,
GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
Adds the given list of new properties to this class. |
void |
addPropertiesAtTop(List<GenericPropertyInfo> newProps,
GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
Adds the given list of new properties to this class. |
void |
addPropertiesInSequence(List<GenericPropertyInfo> newProps,
GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
Adds the given list of new properties to this class. |
void |
addProperty(GenericPropertyInfo newProperty,
GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
Adds the new property to the set of properties of this class. |
String |
aliasName()
Retrieve the alias, typically a human readable name |
boolean |
asCharacterString()
If a < |
boolean |
asDictionary()
Find out if this class has to be output as a dictionary. |
boolean |
asDictionaryGml33()
Find out if this class has to be output as a dictionary. |
boolean |
asGroup()
If a < |
ClassInfo |
baseClass()
|
Vector<Constraint> |
constraints()
|
GenericClassInfo |
createCopy(String copyId,
String copyName,
int copyCategory)
|
String |
documentation()
|
String |
fullName()
Fully qualified UML name. |
StructuredNumber |
getNextSequenceNumber()
|
boolean |
hasConstraints()
|
boolean |
hasNilReason()
|
boolean |
hasSubtypes()
|
boolean |
hasSupertypes()
|
String |
id()
|
boolean |
includeByValuePropertyType()
Determine whether a property type shall be included in the schema for the object type that does not support Xlinks but requires encoding the property value inline. |
boolean |
includePropertyType()
Determine whether a standard property type shall be included in the schema. |
boolean |
isAbstract()
|
AssociationInfo |
isAssocClass()
|
boolean |
isCollection()
This predicate determines if the class is a collection. |
boolean |
isLeaf()
|
String |
message(int mnr)
Return a message for a message number. |
GenericModel |
model()
|
String |
name()
|
OperationInfo |
operation(String name,
String[] types)
NOTE: Operations are currently not supported |
Options |
options()
|
PackageInfo |
pkg()
|
TreeMap<StructuredNumber,PropertyInfo> |
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 / supertypes. |
GenericPropertyInfo |
propertyByName(String name)
|
void |
removeByStructuredNumber(StructuredNumber sn)
Removes the property from this class where property.sequenceNumber().equals(sn) . |
ShapeChangeResult |
result()
|
void |
setAliasName(String aliasName)
|
void |
setAsCharacterString(boolean asCharacterString)
|
void |
setAsDictionary(boolean asDictionary)
|
void |
setAsDictionaryGml33(boolean asDictionaryGml33)
|
void |
setAsGroup(boolean asGroup)
|
void |
setAssocInfo(AssociationInfo assocClass)
|
void |
setBaseClass(ClassInfo baseClass)
|
void |
setCategory(int category)
|
void |
setConstraints(Vector<Constraint> constraints)
|
void |
setDocumentation(String documentation)
|
void |
setHasNilReason(boolean hasNilReason)
|
void |
setId(String id)
|
void |
setIncludeByValuePropertyType(boolean includeByValuePropertyType)
|
void |
setIncludePropertyType(boolean includePropertyType)
|
void |
setIsAbstract(boolean isAbstract)
|
void |
setIsCollection(boolean isCollection)
|
void |
setIsLeaf(boolean isLeaf)
|
void |
setModel(GenericModel model)
|
void |
setName(String name)
|
void |
setOptions(Options options)
|
void |
setPkg(PackageInfo pkg)
|
void |
setProperties(TreeMap<StructuredNumber,PropertyInfo> properties)
|
void |
setResult(ShapeChangeResult result)
|
void |
setStereotype(String stereotype)
|
void |
setStereotypes(Set<String> stereotypeSet)
|
void |
setSubtypes(HashSet<String> subtypes)
|
void |
setSupertypes(HashSet<String> supertypes)
|
void |
setSuppressed(boolean suppressed)
|
void |
setTaggedValue(String tvName,
String tvValue,
boolean updateFields)
|
void |
setTaggedValues(HashMap<String,String> taggedValues,
boolean updateFields)
|
void |
setXmlSchemaType(String xmlSchemaType)
|
Set<String> |
stereotypes()
|
HashSet<String> |
subtypes()
Returns the list of ids of the subtypes that belong to this class. |
HashSet<String> |
supertypes()
Provides the ids of all base classes of this class. |
boolean |
suppressed()
Determine whether this is a 'suppressed' class. |
String |
taggedValue(String tag)
|
HashMap<String,String> |
taggedValues()
|
HashMap<String,String> |
taggedValues(String tagList)
Return all the tagged values listed in the input string. |
String |
toString(String indent)
|
void |
updateSubtypeId(String currentId,
String newId)
|
void |
updateSupertypeId(String currentId,
String newId)
NOTE: does not update baseclass info |
String |
xmlSchemaType()
Return the XML schema type corresponding to the class. |
Methods inherited from class de.interactive_instruments.ShapeChange.Model.ClassInfoImpl |
---|
category, checkSupertypes, encodingRule, establishCategory, fixIfCategoryIsUnknown, getDiagrams, hasConstraint, inSchema, isKindOf, isSubtype, isUnionDirect, ns, nsabr, postprocessAfterLoadingAndValidate, processed, processed, qname, setDiagrams, unsuppressedSupertype |
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, matches, stereotype |
Field Detail |
---|
protected Options options
protected ShapeChangeResult result
protected GenericModel model
protected String id
protected String name
protected HashSet<String> stereotypes
protected HashMap<String,String> taggedValues
protected boolean includePropertyType
protected boolean includeByValuePropertyType
protected boolean isCollection
protected boolean asDictionary
protected boolean asGroup
protected boolean asCharacterString
protected boolean hasNilReason
protected PackageInfo pkg
protected boolean isAbstract
protected boolean isLeaf
protected AssociationInfo assocClass
protected HashSet<String> supertypes
protected HashSet<String> subtypes
protected ClassInfo baseClass
protected TreeMap<StructuredNumber,PropertyInfo> properties
protected Vector<Constraint> constraints
protected boolean suppressed
protected boolean asDictionaryGml33
protected String xmlSchemaType
Constructor Detail |
---|
public GenericClassInfo(GenericModel model, String id, String name, int category)
Method Detail |
---|
public void setXmlSchemaType(String xmlSchemaType)
xmlSchemaType
- the xmlSchemaType to setpublic void setIncludePropertyType(boolean includePropertyType)
includePropertyType
- the includePropertyType to setpublic void setIncludeByValuePropertyType(boolean includeByValuePropertyType)
includeByValuePropertyType
- the includeByValuePropertyType to setpublic void setIsCollection(boolean isCollection)
isCollection
- the isCollection to setpublic void setAsDictionary(boolean asDictionary)
asDictionary
- the asDictionary to setpublic void setAsGroup(boolean asGroup)
asGroup
- the asGroup to setpublic void setAsCharacterString(boolean asCharacterString)
asCharacterString
- the asCharacterString to setpublic void setHasNilReason(boolean hasNilReason)
hasNilReason
- the hasNilReason to setpublic void setPkg(PackageInfo pkg)
pkg
- the pkg to setpublic void setIsAbstract(boolean isAbstract)
isAbstract
- the isAbstract to setpublic void setIsLeaf(boolean isLeaf)
isLeaf
- the isLeaf to setpublic void setAssocInfo(AssociationInfo assocClass)
isAssocClass
- the isAssocClass to setpublic void setSupertypes(HashSet<String> supertypes)
supertypes
- the supertypes to setpublic void setSubtypes(HashSet<String> subtypes)
subtypes
- the subtypes to setpublic void setBaseClass(ClassInfo baseClass)
baseClass
- the baseClass to setpublic void setProperties(TreeMap<StructuredNumber,PropertyInfo> properties)
properties
- the properties to setpublic void setConstraints(Vector<Constraint> constraints)
constraints
- the constraints to setpublic void setSuppressed(boolean suppressed)
suppressed
- the suppressed to setpublic void setAsDictionaryGml33(boolean asDictionaryGml33)
asDictionaryGml33
- the asDictionaryGml33 to setpublic Set<String> stereotypes()
stereotypes
in interface Info
Info.stereotypes()
public String aliasName()
InfoImpl
aliasName
in interface Info
aliasName
in class InfoImpl
InfoImpl.aliasName()
public String documentation()
documentation
in interface Info
documentation
in class InfoImpl
InfoImpl.documentation()
public String fullName()
Info
fullName
in interface Info
fullName
in class ClassInfoImpl
PackageInfoImpl.fullName()
public String id()
id
in interface Info
Info.id()
public GenericModel model()
model
in interface Info
Info.model()
public String name()
name
in interface Info
Info.name()
public Options options()
options
in interface Info
Info.options()
public ShapeChangeResult result()
result
in interface Info
Info.result()
public void setAliasName(String aliasName)
aliasName
- public void setDocumentation(String documentation)
documentation
- public void setId(String id)
id
- public void setModel(GenericModel model)
model
- public void setName(String name)
name
- public void setOptions(Options options)
options
- public void setResult(ShapeChangeResult result)
result
- public void setStereotypes(Set<String> stereotypeSet)
stereotypeSet
- public void setStereotype(String stereotype)
stereotype
- public void setTaggedValues(HashMap<String,String> taggedValues, boolean updateFields)
taggedValues
- updateFields
- true if class fields should be updated based upon information
from given tagged values, else falsepublic boolean hasNilReason()
hasNilReason
in interface ClassInfo
ClassInfo.hasNilReason()
public PackageInfo pkg()
pkg
in interface ClassInfo
ClassInfo.pkg()
public boolean isAbstract()
isAbstract
in interface ClassInfo
ClassInfo.isAbstract()
public boolean isLeaf()
isLeaf
in interface ClassInfo
ClassInfo.isLeaf()
public AssociationInfo isAssocClass()
isAssocClass
in interface ClassInfo
ClassInfo.isAssocClass()
public HashSet<String> supertypes()
ClassInfo
supertypes
in interface ClassInfo
ClassInfo.supertypes()
public HashSet<String> subtypes()
NOTE: does NOT return a shallow copy, thus modifications of the returned set will modify the subtype information for this class
subtypes
in interface ClassInfo
ClassInfo.subtypes()
public boolean hasSupertypes()
public boolean hasConstraints()
public boolean hasSubtypes()
public ClassInfo baseClass()
baseClass
in interface ClassInfo
ClassInfo.baseClass()
public TreeMap<StructuredNumber,PropertyInfo> properties()
properties
in interface ClassInfo
ClassInfo.properties()
public Vector<Constraint> constraints()
constraints
in interface ClassInfo
ClassInfo.constraints()
public PropertyInfo property(String name)
property
in interface ClassInfo
de.interactive_instruments.ShapeChange.Model.ClassInfo#property(java.
lang.String)
public OperationInfo operation(String name, String[] types)
operation
in interface ClassInfo
de.interactive_instruments.ShapeChange.Model.ClassInfo#operation(java
.lang.String, java.lang.String[])
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.- See Also:
Info.taggedValue(java.lang.String)
public HashMap<String,String> taggedValues()
taggedValues
in interface Info
null
Info.taggedValues()
public HashMap<String,String> taggedValues(String tagList)
Info
taggedValues
in interface Info
Info.taggedValues(java.lang.String)
public String xmlSchemaType()
ClassInfoImpl
xmlSchemaType
in interface ClassInfo
xmlSchemaType
in class ClassInfoImpl
ClassInfoImpl.xmlSchemaType()
public boolean includeByValuePropertyType()
ClassInfoImpl
includeByValuePropertyType
in interface ClassInfo
includeByValuePropertyType
in class ClassInfoImpl
ClassInfoImpl.includeByValuePropertyType()
public boolean includePropertyType()
ClassInfoImpl
includePropertyType
in interface ClassInfo
includePropertyType
in class ClassInfoImpl
ClassInfoImpl.includePropertyType()
public boolean isCollection()
ClassInfoImpl
isCollection
in interface ClassInfo
isCollection
in class ClassInfoImpl
ClassInfoImpl.isCollection()
public boolean asDictionary()
ClassInfoImpl
asDictionary
in interface ClassInfo
asDictionary
in class ClassInfoImpl
ClassInfoImpl.asDictionary()
public boolean asDictionaryGml33()
ClassInfoImpl
asDictionaryGml33
in interface ClassInfo
asDictionaryGml33
in class ClassInfoImpl
ClassInfoImpl.asDictionaryGml33()
public boolean asGroup()
ClassInfoImpl
asGroup
in interface ClassInfo
asGroup
in class ClassInfoImpl
ClassInfoImpl.asGroup()
public boolean asCharacterString()
ClassInfoImpl
asCharacterString
in interface ClassInfo
asCharacterString
in class ClassInfoImpl
ClassInfoImpl.asCharacterString()
public boolean suppressed()
ClassInfoImpl
suppressed
in interface ClassInfo
suppressed
in class ClassInfoImpl
ClassInfoImpl.suppressed()
public String toString(String indent)
public void setCategory(int category)
category
- public void addProperty(GenericPropertyInfo newProperty, GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
newProperty
- duplicateHandling
- public StructuredNumber getNextSequenceNumber()
public void addConstraints(Vector<Constraint> newConstraints)
public void updateSubtypeId(String currentId, String newId)
public void updateSupertypeId(String currentId, String newId)
currentId
- newId
- public GenericClassInfo createCopy(String copyId, String copyName, int copyCategory)
public void removeByStructuredNumber(StructuredNumber sn)
property.sequenceNumber().equals(sn)
.
sn
- public void addPropertiesAtTop(List<GenericPropertyInfo> newProps, GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
newProps
- duplicateHandling
- public GenericPropertyInfo propertyByName(String name)
name
-
null
if no such
property exists.public void addPropertiesInSequence(List<GenericPropertyInfo> newProps, GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
newProps
- duplicateHandling
- public void addPropertiesAtBottom(List<GenericPropertyInfo> newProps, GenericModel.PropertyCopyDuplicatBehaviorIndicator duplicateHandling)
newProps
- duplicateHandling
- public String message(int mnr)
MessageSource
message
in interface MessageSource
public void setTaggedValue(String tvName, String tvValue, boolean updateFields)
tvName
- tvValue
- updateFields
- true if class fields should be updated based upon information
from given tagged value, else false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |