wt.tools.metamodel
Class ClassMember

java.lang.Object
  extended bywt.tools.metamodel.ModelElement
      extended bywt.tools.metamodel.ClassMember
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ClassProperty, Operation

public abstract class ClassMember
extends ModelElement


Field Summary
protected  Visibility access
           
protected  boolean isAbstract
           
protected  boolean isFinal
           
protected  boolean isStatic
           
protected  ClassMember originalMember
           
protected  ClassClass owner
           
protected  String type
           
protected  String 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 ClassMember()
           
protected ClassMember(String theUid)
           
(package private) ClassMember(String theUid, ClassClass theOwner)
           
 
Method Summary
 Object clone()
           
 String getCodeType()
           
 ClassClass getContainingClass()
           
 String getCustomization(String item, String defaultValue)
           
abstract  ClassMember getOriginalMember()
          Return the originally modeled member from the hierarchy.
 ClassClass getOwner()
           
 String getType()
           
 String getTypePackage()
           
 String getUnqualifiedType()
           
 Visibility getVisibility()
           
 boolean isAbstract()
           
 boolean isArray()
           
 boolean isConstant()
           
 boolean isDependency()
           
 boolean isFinal()
           
abstract  boolean isOverride()
          Return true if this member is an overriding implementation, of an implementation that was defined higher in the hierarchy.
 boolean isPrivateVisibility()
           
 boolean isStatic()
           
protected  void loadFromStore()
           
 void setAbstract(boolean theAbstract)
           
protected  void setDefaults()
           
 void setFinal(boolean theFinal)
           
(package private)  void setOwner(ClassClass theOwner)
           
 void setPackageType(String newPackageType)
           
 void setStatic(boolean theStatic)
           
 void setType(String newType)
           
 void setType(String newType, String newTypePackage)
           
 void setVisibility(Visibility theAccess)
           
protected  String typeCleanup(String type)
           
protected  void writeToStore()
           
 
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, loadCustomizations, 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

access

protected Visibility access

type

protected String type

typePackage

protected String typePackage

isStatic

protected boolean isStatic

isFinal

protected boolean isFinal

isAbstract

protected boolean isAbstract

owner

protected ClassClass owner

originalMember

protected ClassMember originalMember
Constructor Detail

ClassMember

protected ClassMember()

ClassMember

protected ClassMember(String theUid)

ClassMember

ClassMember(String theUid,
            ClassClass theOwner)
Method Detail

clone

public Object clone()

getCustomization

public String getCustomization(String item,
                               String defaultValue)
Overrides:
getCustomization in class ModelElement

getOriginalMember

public abstract ClassMember getOriginalMember()
Return the originally modeled member from the hierarchy. If this member is not an override, it will return itself.


getOwner

public ClassClass getOwner()

getContainingClass

public ClassClass getContainingClass()

getType

public String getType()

getTypePackage

public String getTypePackage()

getUnqualifiedType

public String getUnqualifiedType()

getVisibility

public Visibility getVisibility()

isAbstract

public boolean isAbstract()

isArray

public boolean isArray()

isConstant

public boolean isConstant()

isDependency

public boolean isDependency()

isFinal

public boolean isFinal()

isOverride

public abstract boolean isOverride()
Return true if this member is an overriding implementation, of an implementation that was defined higher in the hierarchy.


isPrivateVisibility

public boolean isPrivateVisibility()

isStatic

public boolean isStatic()

loadFromStore

protected void loadFromStore()
                      throws WTException
Overrides:
loadFromStore in class ModelElement
Throws:
WTException

setAbstract

public final void setAbstract(boolean theAbstract)

setDefaults

protected void setDefaults()
Overrides:
setDefaults in class ModelElement

setFinal

public void setFinal(boolean theFinal)

setOwner

void setOwner(ClassClass theOwner)

setPackageType

public void setPackageType(String newPackageType)

setStatic

public void setStatic(boolean theStatic)

setType

public void setType(String newType)

setType

public void setType(String newType,
                    String newTypePackage)

setVisibility

public void setVisibility(Visibility theAccess)

typeCleanup

protected String typeCleanup(String type)

writeToStore

protected void writeToStore()
Overrides:
writeToStore in class ModelElement

getCodeType

public String getCodeType()