wt.tools.metamodel
Class Key

java.lang.Object
  extended bywt.tools.metamodel.ModelElement
      extended bywt.tools.metamodel.Key
All Implemented Interfaces:
Cloneable

public class Key
extends ModelElement


Field Summary
protected  Visibility access
           
protected  ClassProperty owner
           
protected  String type
           
 
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 Key()
           
protected Key(String theUid)
           
(package private) Key(String theUid, ClassProperty theOwner)
           
 
Method Summary
protected  String getElementCode()
           
 ClassProperty getOwner()
           
 String getType()
           
 Visibility getVisibility()
           
 boolean isArray()
           
 boolean isPrivateVisibility()
           
protected  void loadFromStore()
           
protected  void setDefaults()
           
(package private)  void setOwner(ClassProperty theOwner)
           
 void setType(String newType)
           
 void setVisibility(Visibility theAccess)
           
protected  String typeCleanup(String type)
           
protected  void writeToStore()
           
 
Methods inherited from class wt.tools.metamodel.ModelElement
ensureDeferredLoaded, getBoolean, getBoolean, getCustomization, getCustomization, getCustomizations, getDocumentation, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

access

protected Visibility access

type

protected String type

owner

protected ClassProperty owner
Constructor Detail

Key

protected Key()

Key

protected Key(String theUid)

Key

Key(String theUid,
    ClassProperty theOwner)
throws WTException
Method Detail

getElementCode

protected String getElementCode()
Specified by:
getElementCode in class ModelElement

getOwner

public ClassProperty getOwner()

getType

public String getType()

getVisibility

public Visibility getVisibility()

isArray

public boolean isArray()

isPrivateVisibility

public boolean isPrivateVisibility()

loadFromStore

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

setDefaults

protected void setDefaults()
Overrides:
setDefaults in class ModelElement

setOwner

void setOwner(ClassProperty theOwner)

setType

public void setType(String newType)

setVisibility

public void setVisibility(Visibility theAccess)

typeCleanup

protected String typeCleanup(String type)

writeToStore

protected void writeToStore()
Overrides:
writeToStore in class ModelElement