|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bigllc.retsiq.metadata.MetadataTableMap
public abstract class MetadataTableMap
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
map
|
protected java.lang.String |
nameKey
|
protected MetadataTableMap |
parent
|
| Constructor Summary | |
|---|---|
MetadataTableMap(java.lang.String nameKey,
java.util.Map<java.lang.String,java.lang.String> map)
|
|
| Method Summary | ||
|---|---|---|
void |
addChild(MetadataTableMap child)
|
|
|
find(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String path)
Convenience method to search for node based on path. |
|
java.lang.String |
get(java.lang.String column)
|
|
abstract java.lang.String |
getAttributeName()
|
|
MetadataTableMap |
getChild(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String name)
|
|
abstract java.lang.String |
getChildDate(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
|
|
abstract java.util.List<? extends MetadataTableMap> |
getChildren(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
|
|
abstract java.util.Map<java.lang.String,? extends MetadataTableMap> |
getChildrenLookup(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
|
|
com.bigllc.retsiq.api.RETSConstants.MetadataType[] |
getChildTypes()
|
|
abstract java.lang.String |
getChildVersion(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
|
|
int |
getDepth()
Get the depth of this node in the metadata tree. |
|
java.util.List<java.lang.String> |
getDisplayKeys()
|
|
java.lang.String |
getFullPath()
|
|
java.lang.String |
getFullPathName()
|
|
java.util.List<java.lang.String> |
getKeys()
|
|
java.util.Map<java.lang.String,java.lang.String> |
getMap()
|
|
abstract com.bigllc.retsiq.api.RETSConstants.MetadataType |
getMetadataType()
|
|
java.lang.String |
getName()
|
|
java.lang.String |
getNameKey()
|
|
MetadataTableMap |
getParent()
|
|
java.util.Stack<MetadataTableMap> |
getPathStack()
Get a stack of this node and all the parent node up to the system node. |
|
java.util.Stack<MetadataTableMap> |
getReversePathStack()
As with getPathStack but with the node order reversed. |
|
MetadataTableMap |
getRoot()
|
|
MetadataSystem |
getSystem()
|
|
boolean |
hasDuplicateChildren(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
Check if there are child nodes with the same key. |
|
boolean |
hasEmptyAttribute(java.lang.String column)
Returns true if the given column is not set, or is an empty or whitespace only string in the fields attribute map. |
|
boolean |
isChildOf(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
Is the current node a child of the supplied type. |
|
void |
removeChild(MetadataTableMap child)
Remove the child node specified and also remove it from the map if it is the same instance. |
|
void |
removeChild(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String name)
Remove the child by type and name. |
|
abstract void |
setChildDate(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String date)
|
|
void |
setChildren(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.util.List<? extends MetadataTableMap> children)
Set the children nodes of a specific metadata type for this node. |
|
protected abstract void |
setChildrenList(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.util.List<? extends MetadataTableMap> children)
This method should be implemented to set the underlying list to the one passed. |
|
abstract void |
setChildVersion(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String version)
|
|
void |
setParent(MetadataTableMap parent)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MetadataTableMap parent
protected java.lang.String nameKey
protected java.util.Map<java.lang.String,java.lang.String> map
| Constructor Detail |
|---|
public MetadataTableMap(java.lang.String nameKey,
java.util.Map<java.lang.String,java.lang.String> map)
| Method Detail |
|---|
public java.util.Map<java.lang.String,java.lang.String> getMap()
public java.lang.String get(java.lang.String column)
public boolean hasEmptyAttribute(java.lang.String column)
public java.util.List<java.lang.String> getKeys()
public java.util.List<java.lang.String> getDisplayKeys()
public abstract com.bigllc.retsiq.api.RETSConstants.MetadataType getMetadataType()
public abstract java.lang.String getAttributeName()
public java.lang.String getName()
public java.lang.String getNameKey()
public MetadataTableMap getParent()
public void setParent(MetadataTableMap parent)
public abstract java.lang.String getChildDate(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
public abstract void setChildDate(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String date)
public abstract java.lang.String getChildVersion(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
public abstract void setChildVersion(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String version)
public MetadataTableMap getRoot()
public MetadataSystem getSystem()
public <T extends MetadataTableMap> T find(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String path)
type - the type of node to be retrievedpath - the absolute or relative path to return
public abstract java.util.List<? extends MetadataTableMap> getChildren(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
protected abstract void setChildrenList(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.util.List<? extends MetadataTableMap> children)
type - the metadata type of the listchildren - the list containing the children nodes.
public final void setChildren(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.util.List<? extends MetadataTableMap> children)
type - the metadata type of the listchildren - the list containing the children nodes.public abstract java.util.Map<java.lang.String,? extends MetadataTableMap> getChildrenLookup(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
public MetadataTableMap getChild(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String name)
public void addChild(MetadataTableMap child)
public void removeChild(MetadataTableMap child)
child - the child node to remove
public void removeChild(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
java.lang.String name)
public boolean hasDuplicateChildren(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
public boolean isChildOf(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
type - the type to test against
public com.bigllc.retsiq.api.RETSConstants.MetadataType[] getChildTypes()
public java.lang.String getFullPath()
public java.lang.String getFullPathName()
public java.util.Stack<MetadataTableMap> getPathStack()
public java.util.Stack<MetadataTableMap> getReversePathStack()
public int getDepth()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||