wt.tools.metamodel
Class ClassProperty
java.lang.Object
wt.tools.metamodel.ModelElement
wt.tools.metamodel.ClassMember
wt.tools.metamodel.ClassProperty
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- Attribute, Role
- public abstract class ClassProperty
- extends ClassMember
Fields inherited from class wt.tools.metamodel.ModelElement |
customizations, DEBUG, documentation, LINE_SEPARATOR, name, nextID, properties, RESOURCE, source, stereotype, store, supportedAPI, TRACE, uid |
Methods inherited from class wt.tools.metamodel.ClassMember |
clone, getCodeType, getContainingClass, getCustomization, getOwner, getType, getTypePackage, getUnqualifiedType, getVisibility, isAbstract, isArray, isConstant, isDependency, isFinal, isPrivateVisibility, isStatic, setAbstract, setDefaults, setFinal, setOwner, setPackageType, setStatic, setType, setType, setVisibility, typeCleanup |
Methods inherited from class wt.tools.metamodel.ModelElement |
ensureDeferredLoaded, getBoolean, getBoolean, getCustomization, getCustomizations, getDocumentation, getElementCode, getName, getOriginalSource, getProperty, getProperty, getProperty, getProperty, getSource, getSourceId, getStereotype, getSupportedAPI, getUid, initialize, initialize, isDeprecated, loadFromStoreDeferred, setBoolean, setDocumentation, setName, setProperty, setSource, setStereotype, setStore, setSupportedAPI, setUid, store, storeForPackage, toString, transferProperty, writeToStore |
initValue
protected String initValue
derived
protected boolean derived
derivedFrom
private String derivedFrom
persistent
protected boolean persistent
bound
protected boolean bound
constrained
protected boolean constrained
changeable
protected ChangeableKind changeable
required
protected boolean required
writeVisibility
protected Visibility writeVisibility
length
protected int length
lowerLimit
protected String lowerLimit
upperLimit
protected String upperLimit
primitiveType
protected String primitiveType
beforeClassInit
protected boolean beforeClassInit
stringCase
protected CaseKind stringCase
keys
protected com.objectspace.jgl.Array keys
constrainedType
protected Boolean constrainedType
ClassProperty
protected ClassProperty()
ClassProperty
ClassProperty(String theUid,
ClassClass theOwner)
addKey
public void addKey(Key newMember)
copyTo
public void copyTo(ClassProperty newOne)
getAccessType
public String getAccessType()
getArraySize
public abstract int getArraySize()
getChangeable
public ChangeableKind getChangeable()
getDerivedFrom
public String getDerivedFrom()
getInitValue
public String getInitValue()
getKeys
public Enumeration getKeys()
getLength
public int getLength()
getLowerLimit
public String getLowerLimit()
getOriginalMember
public ClassMember getOriginalMember()
- Return the originally modeled ClassProperty from the hierarchy.
If ClassProperty is not an override, it will return itself.
- Specified by:
getOriginalMember
in class ClassMember
getOriginalMember
protected ClassMember getOriginalMember(ClassProperty beginProperty,
ClassProperty previousProperty,
int depth)
- Return the originally modeled ClassProperty from the hierarchy.
If ClassProperty is not an override, it will return itself.
getPrimitiveType
public String getPrimitiveType()
getStringCase
public CaseKind getStringCase()
getUpperLimit
public String getUpperLimit()
getWriteVisibility
public Visibility getWriteVisibility()
isBeforeClassInit
public boolean isBeforeClassInit()
isBidirectional
public abstract boolean isBidirectional()
isBound
public boolean isBound()
isComposite
public abstract boolean isComposite()
isConstrained
public boolean isConstrained()
isConstrainedType
public boolean isConstrainedType()
- Return true if this ClassProperty is redefining the type for a
ClassProperty that was defined higher in the hierarchy.
For example, it will return true if this same named ClassProperty
is found to have been previously defined in the class hierarchy.
isCovariant
public boolean isCovariant()
- Return true if this ClassProperty is overriding a concrete ClassProperty
that was defined higher in the hierarchy.
isDerived
public boolean isDerived()
isMobile
public boolean isMobile()
isNamed
public boolean isNamed()
isOverride
public boolean isOverride()
- Return true if this ClassProperty is overriding a concrete ClassProperty
that was defined higher in the hierarchy.
For example, it will return true if this same named ClassProperty
is found to have been previously implemented in the class hierarchy.
- Specified by:
isOverride
in class ClassMember
isPersistent
public boolean isPersistent()
isReadOnly
public boolean isReadOnly()
isRequired
public boolean isRequired()
keyCount
public int keyCount()
loadCustomizations
protected void loadCustomizations()
throws WTException
- Overrides:
loadCustomizations
in class ModelElement
- Throws:
WTException
loadFromStore
protected void loadFromStore()
throws WTException
- Overrides:
loadFromStore
in class ClassMember
- Throws:
WTException
makeAttribute
public abstract Attribute makeAttribute()
setConstrained
public void setConstrained(boolean theConstrained)
setConstrainedType
public void setConstrainedType(boolean isConstrainedType)
setDerivedFrom
public void setDerivedFrom(String derivedFrom)
setInitValue
public void setInitValue(String theInitValue)
setPersistent
public void setPersistent(boolean thePersistent)
setWriteVisibility
public void setWriteVisibility(Visibility theAccess)
writeToStore
protected void writeToStore()
- Overrides:
writeToStore
in class ClassMember
getCodeAccessType
public String getCodeAccessType()