de.interactive_instruments.ShapeChange.Model
Interface ClassInfo

All Superinterfaces:
Info
All Known Implementing Classes:
ClassInfoEA, ClassInfoGSIP, ClassInfoImpl, ClassInfoXmi10, GenericClassInfo

public interface ClassInfo
extends Info

Information about a UML class.


Method Summary
 boolean asCharacterString()
           
 boolean asDictionary()
           
 boolean asDictionaryGml33()
           
 boolean asGroup()
           
 ClassInfo baseClass()
           
 int category()
           
 boolean checkSupertypes(int cat)
           
 Vector<Constraint> constraints()
           
 List<ImageMetadata> getDiagrams()
           
 boolean hasConstraint(String name)
           
 boolean hasNilReason()
           
 boolean includeByValuePropertyType()
           
 boolean includePropertyType()
           
 boolean inSchema(PackageInfo pi)
           
 boolean isAbstract()
           
 AssociationInfo isAssocClass()
           
 boolean isCollection()
           
 boolean isKindOf(String supertype)
           
 boolean isLeaf()
           
 boolean isSubtype(ClassInfo ci)
           
 boolean isUnionDirect()
          Special case of a <> with two properties (value and reasons) that can be mapped to a native nil/void/null mechanism in some implementation environments, e.g.
 OperationInfo operation(String name, String[] types)
           
 PackageInfo pkg()
           
 boolean processed(int t)
           
 void processed(int t, boolean p)
           
 TreeMap<StructuredNumber,PropertyInfo> properties()
           
 PropertyInfo property(String name)
          Note: a ClassInfo does not keep track of non-navigable properties.
 String qname()
           
 void setDiagrams(List<ImageMetadata> diagrams)
           
 HashSet<String> subtypes()
           
 HashSet<String> supertypes()
          Provides the ids of all base classes of this class.
 boolean suppressed()
           
 ClassInfo unsuppressedSupertype(boolean permitAbstract)
           
 String xmlSchemaType()
           
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
aliasName, definition, description, documentation, encodingRule, fullName, id, matches, model, name, options, postprocessAfterLoadingAndValidate, result, stereotype, stereotypes, taggedValue, taggedValues, taggedValues
 

Method Detail

xmlSchemaType

String xmlSchemaType()

includePropertyType

boolean includePropertyType()

includeByValuePropertyType

boolean includeByValuePropertyType()

isCollection

boolean isCollection()

asDictionary

boolean asDictionary()

asGroup

boolean asGroup()

asCharacterString

boolean asCharacterString()

hasNilReason

boolean hasNilReason()

pkg

PackageInfo pkg()

isAbstract

boolean isAbstract()

isLeaf

boolean isLeaf()

isAssocClass

AssociationInfo isAssocClass()

supertypes

HashSet<String> supertypes()
Provides the ids of all base classes of this class.

Returns:
Set of ids of the base classes of this class.

subtypes

HashSet<String> subtypes()
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).

inSchema

boolean inSchema(PackageInfo pi)

baseClass

ClassInfo baseClass()

qname

String qname()

processed

boolean processed(int t)

processed

void processed(int t,
               boolean p)

category

int category()

checkSupertypes

boolean checkSupertypes(int cat)

properties

TreeMap<StructuredNumber,PropertyInfo> properties()

constraints

Vector<Constraint> constraints()

hasConstraint

boolean hasConstraint(String name)

property

PropertyInfo property(String name)
Note: a ClassInfo does not keep track of non-navigable properties. Such properties occur in directed associations and are only referenced there.

Parameters:
name -
Returns:

operation

OperationInfo operation(String name,
                        String[] types)

isSubtype

boolean isSubtype(ClassInfo ci)

isKindOf

boolean isKindOf(String supertype)

suppressed

boolean suppressed()

unsuppressedSupertype

ClassInfo unsuppressedSupertype(boolean permitAbstract)

asDictionaryGml33

boolean asDictionaryGml33()

isUnionDirect

boolean isUnionDirect()
Special case of a <> with two properties (value and reasons) that can be mapped to a native nil/void/null mechanism in some implementation environments, e.g. XML Schema

Returns:

getDiagrams

List<ImageMetadata> getDiagrams()
Returns:
metadata about the diagrams relevant for this class, null if no diagrams are available

setDiagrams

void setDiagrams(List<ImageMetadata> diagrams)
Parameters:
diagrams - metadata about the diagrams relevant for this class


Copyright © 2015. All rights reserved.