public abstract class ClassInfoImpl extends InfoImpl implements ClassInfo
Modifier and Type | Field and Description |
---|---|
protected int |
category
Category of the class according to ISO 19136 (and ShapeChange extensions)
|
protected List<ImageMetadata> |
diagrams |
protected File |
linkedDocument |
protected Profiles |
profiles |
descriptors, stereotypesCache, taggedValuesCache
Constructor and Description |
---|
ClassInfoImpl() |
Modifier and Type | Method and Description |
---|---|
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 <
|
int |
category()
Return the category of the class.
|
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.
|
String |
encodingRule(String platform)
Return the encoding rule relevant on the class, given the platform
WARNING: This method is intended to be "final", but not actually declared
as such.
|
void |
establishCategory()
Establish category.
|
void |
fixIfCategoryIsUnknown()
Fix the category of a class, which from its stereotypes alone has not
been assigned UNKONWN.
|
String |
fullName()
Fully qualified UML name (Package1::...
|
String |
fullNameInSchema()
Fully qualified UML name (Package1::...
|
List<ImageMetadata> |
getDiagrams() |
File |
getLinkedDocument() |
boolean |
hasConstraint(String name)
Find out whether this class owns a constraint of the given name.
|
boolean |
hasNilReason()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
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 |
inSchema(PackageInfo pi)
Check whether the class and the package pi are part of the same schema (=
XML namespace).
|
boolean |
isCollection()
This predicate determines if the class is a collection.
|
boolean |
isKindOf(String supertype)
Determine if this type is of the given kind, i.e. if one of its (direct
or indirect) supertypes has a name that equals the given one.
|
boolean |
isSubtype(ClassInfo ci)
Determine whether this type is a direct or indirect subtype of the
argument type.
|
boolean |
isUnionDirect()
Special case of a <
|
String |
language()
NOTE: this method is not final since several XXXInfoImpl classes override
it
|
String |
ns()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
String |
nsabr()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
PropertyInfo |
ownedProperty(String name)
Look up the property with the given name in the properties owned by this
class.
|
void |
postprocessAfterLoadingAndValidate()
Postprocess the class to execute any actions that require that the
complete model has been loaded.
|
Profiles |
profiles()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
SortedSet<PropertyInfo> |
propertiesAll()
Get a set of all navigable properties (attributes and association roles)
that belong to this class or one of the types in its supertype hierarchy.
|
String |
qname()
Return the namespace-prefixed class name.
|
void |
setDiagrams(List<ImageMetadata> diagrams) |
void |
setLinkedDocument(File linkedDocument) |
SortedSet<ClassInfo> |
subtypesInCompleteHierarchy()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
SortedSet<ClassInfo> |
supertypesInCompleteHierarchy()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
boolean |
suppressed()
Determine whether this is a 'suppressed' class.
|
ClassInfo |
unsuppressedSupertype(boolean permitAbstract)
Find the next direct or indirect superclass of this class which is not
suppressed.
|
String |
xmlSchemaType()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
aliasName, compareTo, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, descriptorSource, descriptorValues, 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
baseClass, constraints, isAbstract, isAssocClass, isLeaf, operation, pkg, properties, property, subtypes, supertypes
aliasName, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, documentation, examples, globalIdentifier, id, legalBasis, matches, model, name, options, primaryCode, removeTaggedValue, result, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage, validateStereotypesCache, validateTaggedValuesCache
compareTo
protected int category
protected List<ImageMetadata> diagrams
protected File linkedDocument
protected Profiles profiles
public String language()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
language
in interface Info
language
in class InfoImpl
null
if no language
information is provided in the schema.InfoImpl.language()
public String nsabr()
public String ns()
public String encodingRule(String platform)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
encodingRule
in interface Info
encodingRule
in class InfoImpl
public String xmlSchemaType()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
xmlSchemaType
in interface ClassInfo
null
is returned.public boolean includeByValuePropertyType()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
includeByValuePropertyType
in interface ClassInfo
public boolean includePropertyType()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
includePropertyType
in interface ClassInfo
public boolean isCollection()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
isCollection
in interface ClassInfo
public boolean asDictionary()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
asDictionary
in interface ClassInfo
public boolean asDictionaryGml33()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
asDictionaryGml33
in interface ClassInfo
public boolean asGroup()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public boolean asCharacterString()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
asCharacterString
in interface ClassInfo
public void establishCategory() throws ShapeChangeAbortException
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
ShapeChangeAbortException
public int category()
ClassInfo
public void fixIfCategoryIsUnknown()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public boolean inSchema(PackageInfo pi)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public String qname()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public SortedSet<PropertyInfo> propertiesAll()
ClassInfo
propertiesAll
in interface ClassInfo
null
.public boolean checkSupertypes(int cat)
ClassInfo
checkSupertypes
in interface ClassInfo
public boolean isSubtype(ClassInfo ci)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public boolean isKindOf(String supertype)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public boolean suppressed()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
suppressed
in interface ClassInfo
public ClassInfo unsuppressedSupertype(boolean permitAbstract)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
unsuppressedSupertype
in interface ClassInfo
public boolean hasConstraint(String name)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
hasConstraint
in interface ClassInfo
public String fullName()
Info
public String fullNameInSchema()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
fullNameInSchema
in interface Info
public void postprocessAfterLoadingAndValidate()
postprocessAfterLoadingAndValidate
in interface Info
postprocessAfterLoadingAndValidate
in class InfoImpl
public boolean isUnionDirect()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
isUnionDirect
in interface ClassInfo
public List<ImageMetadata> getDiagrams()
getDiagrams
in interface ClassInfo
null
if no diagrams are availablepublic void setDiagrams(List<ImageMetadata> diagrams)
setDiagrams
in interface ClassInfo
diagrams
- metadata about the diagrams relevant for this classpublic File getLinkedDocument()
getLinkedDocument
in interface ClassInfo
null
public void setLinkedDocument(File linkedDocument)
setLinkedDocument
in interface ClassInfo
linkedDocument
- a .docx file that is linked to this class; can be
null
public boolean hasNilReason()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
hasNilReason
in interface ClassInfo
true
if the class has a property (not inherited from
a supertype) for which
PropertyInfo.implementedByNilReason()
is
true
, else false
.public SortedSet<ClassInfo> subtypesInCompleteHierarchy()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
subtypesInCompleteHierarchy
in interface ClassInfo
null
public SortedSet<ClassInfo> supertypesInCompleteHierarchy()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
supertypesInCompleteHierarchy
in interface ClassInfo
null
public Profiles profiles()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public PropertyInfo ownedProperty(String name)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
ownedProperty
in interface ClassInfo
null
if no such
property exists.Copyright © 2018. All rights reserved.