wt.tools.metamodel
Class Attribute

java.lang.Object
  extended bywt.tools.metamodel.ModelElement
      extended bywt.tools.metamodel.ClassMember
          extended bywt.tools.metamodel.ClassProperty
              extended bywt.tools.metamodel.Attribute
All Implemented Interfaces:
Cloneable

public class Attribute
extends ClassProperty


Field Summary
protected  int arraySize
           
 
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.ClassMember
access, isAbstract, isFinal, isStatic, originalMember, owner, type, typePackage
 
Fields inherited from class wt.tools.metamodel.ModelElement
customizations, DEBUG, documentation, LINE_SEPARATOR, name, nextID, properties, RESOURCE, source, stereotype, store, supportedAPI, TRACE, uid
 
Constructor Summary
protected Attribute()
           
(package private) Attribute(String theUid, ClassClass theOwner)
           
 
Method Summary
 int getArraySize()
           
protected  String getElementCode()
           
 boolean isBidirectional()
           
 boolean isComposite()
           
static Attribute make(String newName)
           
 Attribute makeAttribute()
           
static Attribute makeConstant(String newName)
           
 void setArraySize(int size)
           
protected  void setDefaults()
           
protected  String typeCleanup(String type)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

arraySize

protected int arraySize
Constructor Detail

Attribute

protected Attribute()

Attribute

Attribute(String theUid,
          ClassClass theOwner)
    throws WTException
Method Detail

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