public abstract class NldrMetadataRecordExporter
extends java.lang.Object
| Constructor and Description |
|---|
NldrMetadataRecordExporter(java.lang.String xml)
Constructor that loads the given record.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List |
getAssetNodes()
Gets the assetNodes attribute of the NldrMetadataRecord object
|
protected static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log
files and output to standout:
|
abstract java.lang.String |
getId()
Gets the id attribute of the NldrMetadataRecord object
|
java.lang.String |
getTextAtPath(java.lang.String path)
Gets the textAtPath attribute of the NldrMetadataRecord object
|
java.lang.String |
getXml()
Gets the xml attribute of the NldrMetadataRecord object
|
org.dom4j.Node |
getXmlNode()
Gets the xmlNode attribute of the NldrMetadataRecord object
|
java.lang.String |
getXmlStripped()
Gets the xml stripped of the XML declaration and DTD declaration.
|
static java.lang.String |
makeXPath(java.lang.String s)
Expands xpath into namespace-aware version, hanlding attributes and
attribute/value specifiers.
|
protected static void |
pp(org.dom4j.Node node)
Description of the Method
|
protected void |
prtlnErr(java.lang.String s)
Output a line of text to error out, with datestamp.
|
java.util.List |
selectNodes(java.lang.String xpath)
Select Nodes for provided xpath
|
org.dom4j.Node |
selectSingleNode(java.lang.String xpath)
Select Single node for provided xpath
|
static void |
setDebug(boolean db)
Sets the debug attribute of the object
|
void |
setTextAtPath(java.lang.String xpath,
java.lang.String value)
Sets the textAtPath attribute of the NldrMetadataRecord object
|
java.lang.String |
toString()
Get a String representation of this XML.
|
public NldrMetadataRecordExporter(java.lang.String xml)
throws org.dom4j.DocumentException
xml - The XML to start withorg.dom4j.DocumentException - If error parsing the XMLpublic abstract java.lang.String getId()
public abstract java.util.List getAssetNodes()
public java.lang.String getTextAtPath(java.lang.String path)
path - NOT YET DOCUMENTEDpublic void setTextAtPath(java.lang.String xpath,
java.lang.String value)
xpath - xpath of elementvalue - text to setpublic java.util.List selectNodes(java.lang.String xpath)
xpath - xpathpublic org.dom4j.Node selectSingleNode(java.lang.String xpath)
xpath - xpathpublic static java.lang.String makeXPath(java.lang.String s)
s - xpath as a qualifed stringpublic org.dom4j.Node getXmlNode()
public java.lang.String getXml()
public java.lang.String getXmlStripped()
public java.lang.String toString()
toString in class java.lang.Objectprotected static final java.lang.String getDateStamp()
protected static final void pp(org.dom4j.Node node)
node - Description of the Parameterprotected final void prtlnErr(java.lang.String s)
s - The text that will be output to error out.public static void setDebug(boolean db)
db - The new debug value