public class PointingElement
extends CompositeDataset
Constructor and Description |
---|
PointingElement()
This class stores pointing metadata of a pointing block plus any kind of children of a pointing block.
|
PointingElement(PointingElement org)
Read a pointing metadata from another pointing metadata.
|
PointingElement(java.lang.String metaName,
java.lang.String metaValue)
Creates a pointing matadata with the given name and value.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(PointingElement attribute)
Add an attribute to this pointing metadata.
|
void |
addChild(PointingElement child)
Add a child to this element
This is translated into xml as
|
CompositeDataset |
asDataset() |
PointingElement |
copy() |
void |
copyFrom(PointingElement org)
copy all attributes, children and value from another pointing metadata into this one.
|
boolean |
equals(PointingElement other) |
PointingElement |
getAttribute(java.lang.String attributeName)
Get the attribute of the given name or null if it does not exist
|
PointingElement[] |
getAttributes()
Get all attributes of this pointing metadata
|
PointingElement |
getChild(java.lang.String childName)
Get the child of the given name or null if it does not exist
|
PointingElement[] |
getChildren()
Get all the children of this element
|
java.lang.String |
getDescription() |
static java.lang.String |
getFirstLevelTextContent(org.w3c.dom.Node node) |
java.lang.String |
getName()
Get the name of this element
|
java.lang.String |
getValue()
Get the value of this element
|
boolean |
hasAttributtes() |
boolean |
hasChildren() |
static PointingElement |
readFrom(org.w3c.dom.Node node)
Read this element from an XML node
|
void |
regenerate(PointingElement org) |
void |
removeAttribute(PointingElement attribute)
Remove an attribute from this pointing metadata.
|
void |
removeAttribute(java.lang.String key) |
void |
setDescription(java.lang.String arg0) |
void |
setValue(java.lang.String newValue)
Set the value of this element
|
java.lang.String |
toString() |
static StringParameter |
toStringParameter(PointingElement mt) |
java.lang.String |
toXml(int indent)
Write a XML representation of this element
|
boolean |
validate() |
public PointingElement()
public PointingElement(PointingElement org)
org
- public PointingElement(java.lang.String metaName, java.lang.String metaValue)
metaName
- metaValue
- public void regenerate(PointingElement org)
public void copyFrom(PointingElement org)
org
- public PointingElement copy()
public static StringParameter toStringParameter(PointingElement mt)
public void addAttribute(PointingElement attribute)
attribute
- public void removeAttribute(PointingElement attribute)
attribute
- public void removeAttribute(java.lang.String key)
public PointingElement[] getAttributes()
public void addChild(PointingElement child)
child
- public PointingElement[] getChildren()
public java.lang.String getName()
public boolean hasChildren()
public boolean hasAttributtes()
public java.lang.String getValue()
public void setValue(java.lang.String newValue)
newValue
- public java.lang.String toXml(int indent)
indent
- The initial indent to be applied to the XMLpublic PointingElement getAttribute(java.lang.String attributeName)
attributeName
- public PointingElement getChild(java.lang.String childName)
childName
- public java.lang.String toString()
public boolean equals(PointingElement other)
public java.lang.String getDescription()
public void setDescription(java.lang.String arg0)
public CompositeDataset asDataset()
public static PointingElement readFrom(org.w3c.dom.Node node)
node
- public static java.lang.String getFirstLevelTextContent(org.w3c.dom.Node node)
public boolean validate()