@Deprecated public abstract class OMEXMLNode extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
basePackage
Deprecated.
Base package of this node.
|
protected static Hashtable |
classHash
Deprecated.
Table of existing classes for known node types.
|
protected static Hashtable |
constructorHash
Deprecated.
Table of existing constructor signatures corresponding to known
OMEXMLNode subclasses.
|
protected Element |
element
Deprecated.
Associated DOM element for this node.
|
protected static String |
idPrefix
Deprecated.
Prefix used for generated internal ID values.
|
protected static String |
LEGACY_VERSION
Deprecated.
|
protected static Hashtable |
nextIds
Deprecated.
Next free ID numbers for generating internal ID attribute values.
|
protected static String[] |
NODE_PACKAGES
Deprecated.
|
protected static Hashtable |
nodeHash
Deprecated.
Table of existing nodes corresponding to known elements.
|
Constructor and Description |
---|
OMEXMLNode(Element element)
Deprecated.
Constructs an OME-XML node with the given associated DOM element.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearCaches()
Deprecated.
Clears the cached nodes and resets node indices.
|
protected void |
createReference(OMEXMLNode node)
Deprecated.
Creates a reference element beneath this node.
|
boolean |
equals(Object obj)
Deprecated.
Tests whether two OME-XML nodes are equal.
|
protected Element |
getAncestorElement(String name)
Deprecated.
Gets the first ancestor DOM element with the specified name.
|
protected OMEXMLNode |
getAncestorNode(String name)
Deprecated.
Gets an OME-XML node representing the
first ancestor element with the given name.
|
String |
getAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name.
|
protected String[] |
getAttributeNames()
Deprecated.
Gets a list of all DOM element attribute names.
|
protected String[] |
getAttributeValues()
Deprecated.
Gets a list of all DOM element attribute values.
|
protected OMEXMLNode |
getAttrReferencedNode(String nodeType,
String attrName)
Deprecated.
Gets an OME-XML node of the given type representing the first
element referenced by an attribute with the given name.
|
protected int |
getAttrReferringCount(String name,
String attrName)
Deprecated.
Gets the number of elements of a certain type (with the given name)
that reference this OME-XML node using an attribute.
|
protected Vector |
getAttrReferringNodes(String name,
String attrName)
Deprecated.
Gets a list of nodes of a certain type (with the given name)
that refer to this OME-XML node using an attribute.
|
protected Boolean |
getBooleanAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name
as a Boolean, or null if the value is not a boolean.
|
protected Boolean |
getBooleanCData(String name)
Deprecated.
Gets the given child node's character data as a Boolean,
or null if the value is not a boolean.
|
String |
getCData()
Deprecated.
Gets the node's character data.
|
protected String |
getCData(String name)
Deprecated.
Gets the given child node's character data.
|
protected int |
getChildCount(String name)
Deprecated.
Gets the number of child elements with the given name.
|
OMEXMLNode |
getChildNode(String name)
Deprecated.
Gets an OME-XML node representing the first child with the given name.
|
protected OMEXMLNode |
getChildNode(String name,
int index)
Deprecated.
Gets the index-th OME-XML node child with the given name.
|
protected OMEXMLNode |
getChildNode(String nodeType,
String name)
Deprecated.
Gets an OME-XML node of the specified type
representing the first child with the given name.
|
Vector |
getChildNodes()
Deprecated.
NB: This method exists only for legacy reasons,
and usage is discouraged.
|
Vector |
getChildNodes(String name)
Deprecated.
Gets a list of OME-XML node children with the given name.
|
Element |
getDOMElement()
Deprecated.
Gets the DOM element backing this OME-XML node.
|
protected Double |
getDoubleAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name
as a Double, or null if the value is not a double.
|
protected Double |
getDoubleCData(String name)
Deprecated.
Gets the given child node's character data as a Double,
or null if the value is not a double.
|
String |
getElementName()
Deprecated.
Gets the name of the DOM element.
|
protected Float |
getFloatAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name
as a Float, or null if the value is not a float.
|
protected Float |
getFloatCData(String name)
Deprecated.
Gets the given child node's character data as a Float,
or null if the value is not a float.
|
static String |
getIDPrefix()
Deprecated.
Gets the prefix used when generating internal ID values.
|
protected Integer |
getIntegerAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name
as an Integer, or null if the value is not an integer.
|
protected Integer |
getIntegerCData(String name)
Deprecated.
Gets the given child node's character data as a Integer,
or null if the value is not an integer.
|
protected Long |
getLongAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name
as a Long, or null if the value is not a long.
|
protected Long |
getLongCData(String name)
Deprecated.
Gets the given child node's character data as a Long,
or null if the value is not a long.
|
protected OMEXMLNode |
getNode(Element el)
Deprecated.
Gets the OME-XML node corresponding to the specified DOM element.
|
String |
getNodeID()
Deprecated.
Gets the ID for this node, or null if none.
|
protected OMEXMLNode |
getReferencedNode(String nodeType,
String refName)
Deprecated.
Gets an OME-XML node of the given type representing the first
element referenced by a child element with the given name.
|
protected Vector |
getReferencedNodes(String nodeType,
String refName)
Deprecated.
Gets a list of all OME-XML nodes of the given type representing
the elements referenced by the child elements with the given name.
|
protected int |
getReferringCount(String name)
Deprecated.
Gets the number of elements of a certain type (with the given name)
that reference this OME-XML node using a *Ref child element.
|
protected int |
getReferringCount(String name,
String refName)
Deprecated.
Gets the number of elements of a certain type (with the given name)
that reference this OME-XML node using a child element with name refName.
|
protected Vector |
getReferringNodes(String name)
Deprecated.
Gets a list of nodes of a certain type (with the given name)
that reference this OME-XML node using a *Ref child element.
|
protected Vector |
getReferringNodes(String name,
String refName)
Deprecated.
Gets a list of nodes of a certain type (with the given name)
that refer to this OME-XML node using a child element with name refName.
|
protected String |
getStringAttribute(String name)
Deprecated.
Gets the value of the DOM element's attribute with the given name.
|
protected String |
getStringCData(String name)
Deprecated.
Gets the given child node's character data.
|
String |
getVersion()
Deprecated.
Gets the OME-XML schema version ("2003-FC", "2007-06", etc.)
for the current OME-XML hierarchy.
|
abstract boolean |
hasID()
Deprecated.
Gets whether this type of node should have an ID.
|
boolean |
isLegacy()
Deprecated.
Gets whether the current OME-XML hierarchy is a legacy version.
|
String |
makeID(String nodeType)
Deprecated.
Gets the next available internal ID for use
within this OME-XML node's tree structure.
|
protected void |
setAttribute(String name,
Object value)
Deprecated.
Sets the value of the DOM element's attribute with the
given name to the specified Object's string representation.
|
void |
setAttribute(String name,
String value)
Deprecated.
Sets the value of the DOM element's attribute with the given name
to the specified value.
|
protected void |
setAttrReferencedNode(OMEXMLNode node,
String attrName)
Deprecated.
Sets the OME-XML referenced by the attribute with the given name.
|
void |
setCData(String value)
Deprecated.
Sets the node's character data.
|
protected void |
setCData(String name,
Object value)
Deprecated.
Sets the given child node's character data
to the specified Object's string representation,
creating the child node if necessary.
|
protected void |
setCData(String name,
String value)
Deprecated.
Sets the given child node's character data to the specified value,
creating the child node if necessary.
|
static void |
setIDPrefix(String prefix)
Deprecated.
Sets the prefix used when generating internal ID values.
|
void |
setNodeID(String id)
Deprecated.
Sets the ID for this node.
|
String |
toString()
Deprecated.
Gets a string representation of this node.
|
protected static final String[] NODE_PACKAGES
protected static final String LEGACY_VERSION
protected static Hashtable nextIds
protected static String idPrefix
protected static Hashtable nodeHash
protected static Hashtable classHash
protected static Hashtable constructorHash
protected Element element
protected String basePackage
public OMEXMLNode(Element element)
public static String getIDPrefix()
public static void setIDPrefix(String prefix)
public static void clearCaches()
public Element getDOMElement()
public String getElementName()
public abstract boolean hasID()
public String getNodeID()
public void setNodeID(String id)
public String makeID(String nodeType)
public String getCData()
public void setCData(String value)
public boolean isLegacy()
public String getVersion()
protected int getChildCount(String name)
public OMEXMLNode getChildNode(String name)
protected OMEXMLNode getChildNode(String nodeType, String name)
public Vector getChildNodes(String name)
protected OMEXMLNode getChildNode(String name, int index)
protected OMEXMLNode getAncestorNode(String name)
protected OMEXMLNode getReferencedNode(String nodeType, String refName)
protected Vector getReferencedNodes(String nodeType, String refName)
protected OMEXMLNode getAttrReferencedNode(String nodeType, String attrName)
protected void setAttrReferencedNode(OMEXMLNode node, String attrName)
protected int getReferringCount(String name)
protected int getReferringCount(String name, String refName)
protected Vector getReferringNodes(String name)
protected Vector getReferringNodes(String name, String refName)
protected int getAttrReferringCount(String name, String attrName)
protected Vector getAttrReferringNodes(String name, String attrName)
protected void createReference(OMEXMLNode node)
protected String getCData(String name)
protected String getStringCData(String name)
getCData(String)
protected void setCData(String name, String value)
protected void setCData(String name, Object value)
protected Boolean getBooleanCData(String name)
protected Double getDoubleCData(String name)
protected Float getFloatCData(String name)
protected Integer getIntegerCData(String name)
protected Long getLongCData(String name)
protected String[] getAttributeNames()
protected String[] getAttributeValues()
public void setAttribute(String name, String value)
protected void setAttribute(String name, Object value)
public String getAttribute(String name)
protected Boolean getBooleanAttribute(String name)
protected Double getDoubleAttribute(String name)
protected Float getFloatAttribute(String name)
protected Integer getIntegerAttribute(String name)
protected Long getLongAttribute(String name)
protected String getStringAttribute(String name)
protected OMEXMLNode getNode(Element el)
protected Element getAncestorElement(String name)
public boolean equals(Object obj)
public String toString()
public Vector getChildNodes()
Copyright © 2014 Open Microscopy Environment