wt.tools.metamodel
Class Attribute
java.lang.Object
wt.tools.metamodel.ModelElement
wt.tools.metamodel.ClassMember
wt.tools.metamodel.ClassProperty
wt.tools.metamodel.Attribute
- All Implemented Interfaces:
- Cloneable
- public class Attribute
- extends ClassProperty
Fields inherited from class wt.tools.metamodel.ClassProperty |
beforeClassInit, bound, changeable, constrained, constrainedType, derived, initValue, keys, length, lowerLimit, persistent, primitiveType, required, stringCase, upperLimit, writeVisibility |
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.ClassProperty |
addKey, copyTo, getAccessType, getChangeable, getCodeAccessType, getDerivedFrom, getInitValue, getKeys, getLength, getLowerLimit, getOriginalMember, getOriginalMember, getPrimitiveType, getStringCase, getUpperLimit, getWriteVisibility, isBeforeClassInit, isBound, isConstrained, isConstrainedType, isCovariant, isDerived, isMobile, isNamed, isOverride, isPersistent, isReadOnly, isRequired, keyCount, loadCustomizations, loadFromStore, setConstrained, setConstrainedType, setDerivedFrom, setInitValue, setPersistent, setWriteVisibility, writeToStore |
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, setFinal, setOwner, setPackageType, setStatic, setType, setType, setVisibility |
Methods inherited from class wt.tools.metamodel.ModelElement |
ensureDeferredLoaded, getBoolean, getBoolean, getCustomization, getCustomizations, getDocumentation, 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 |
arraySize
protected int arraySize
Attribute
protected Attribute()
Attribute
Attribute(String theUid,
ClassClass theOwner)
throws WTException
getArraySize
public int getArraySize()
- Specified by:
getArraySize
in class ClassProperty
getElementCode
protected String getElementCode()
- Specified by:
getElementCode
in class ModelElement
isBidirectional
public boolean isBidirectional()
- Specified by:
isBidirectional
in class ClassProperty
isComposite
public boolean isComposite()
- Specified by:
isComposite
in class ClassProperty
make
public static Attribute make(String newName)
makeAttribute
public Attribute makeAttribute()
- Specified by:
makeAttribute
in class ClassProperty
makeConstant
public static Attribute makeConstant(String newName)
setArraySize
public void setArraySize(int size)
setDefaults
protected void setDefaults()
- Overrides:
setDefaults
in class ClassMember
typeCleanup
protected String typeCleanup(String type)
- Overrides:
typeCleanup
in class ClassMember