|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.portico.shared.model.OCMetadata
public class OCMetadata
This class contains metadata information about a FOM object class
Field Summary | |
---|---|
private Map<Integer,ACMetadata> |
attributes
|
private Set<OCMetadata> |
children
|
private int |
handle
|
private ObjectModel |
model
|
private String |
name
|
private OCMetadata |
parent
|
private String |
qualifiedName
|
private static long |
serialVersionUID
|
private String |
vsafeQualifiedName
|
Constructor Summary | |
---|---|
OCMetadata(String name,
int handle)
NOTE: This constructor should generally not be used. |
Method Summary | |
---|---|
boolean |
addAttribute(ACMetadata attribute)
Adds the given attribute to this object class. |
protected void |
cleave()
This method will cause this object class to remove any links between it and the object model to which it is currently attached. |
Set<ACMetadata> |
getAllAttributes()
Return a set of all available attributes for this class (inherited included) |
ACMetadata |
getAttribute(int handle)
Get the available attribute (inherited included) of this class for the given handle. |
int |
getAttributeHandle(String name)
Return the handle of the contained attribute of the given name. |
String |
getAttributeName(int handle)
Return the name of the contained attribute of the given handle. |
Set<OCMetadata> |
getChildTypes()
Returns a set of all the direct child types of this one. |
ACMetadata |
getDeclaredAttribute(int handle)
Get the locally declared attribute (not inherited) of the given handle and return it. |
Set<ACMetadata> |
getDeclaredAttributes()
Return a set of all the attributes contained directly within this class (no inherited ones) |
int |
getHandle()
Get the handle for this class |
String |
getLocalName()
Get the local portion of the object class name. |
ObjectModel |
getModel()
|
OCMetadata |
getParent()
Return the parent of this object class |
String |
getQualifiedName()
Return the fully-qualified name of this object class. |
String |
getVersionSafeQualifiedName()
Gets the qualified name WITHOUT ObjectRoot or HLAobjectRoot prefixed at the front. |
boolean |
hasAttribute(int handle)
Returns true if this class contains an attribute of the given handle. |
OCInstance |
newInstance()
Creates a new instance of this type with an ACInstance for each attribute. |
ACMetadata |
removeAttribute(int handle)
Remove and return the local attribute of the given handle (not inherited). |
void |
setModel(ObjectModel model)
|
void |
setParent(OCMetadata oc)
Set the parent of this class |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String name
private int handle
private OCMetadata parent
private Map<Integer,ACMetadata> attributes
private Set<OCMetadata> children
private ObjectModel model
private String qualifiedName
private String vsafeQualifiedName
Constructor Detail |
---|
public OCMetadata(String name, int handle)
ObjectModel
.
Method Detail |
---|
public Set<OCMetadata> getChildTypes()
public OCInstance newInstance()
ACInstance
for each attribute. The
returned instance will not have a handle or a name.
protected void cleave()
public boolean addAttribute(ACMetadata attribute)
public ACMetadata removeAttribute(int handle)
public Set<ACMetadata> getDeclaredAttributes()
public Set<ACMetadata> getAllAttributes()
public ACMetadata getDeclaredAttribute(int handle)
public ACMetadata getAttribute(int handle)
public int getAttributeHandle(String name)
public String getAttributeName(int handle)
public boolean hasAttribute(int handle)
true
if this class contains an attribute of the given handle.
public int getHandle()
public String getLocalName()
public String getQualifiedName()
public String getVersionSafeQualifiedName()
public OCMetadata getParent()
public void setParent(OCMetadata oc)
public ObjectModel getModel()
public void setModel(ObjectModel model)
public String toString()
toString
in class Object
|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |