|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.xml.nldr.NldrMetadataRecordExporter
public abstract class NldrMetadataRecordExporter
Reads XML records and converts to an exported form (i.e., "containing citableUrls"). NLDR metadata records may involve mulitple-namespaces and may conttain "assets" (primary content in the NLDR).
| Constructor Summary | |
|---|---|
NldrMetadataRecordExporter(String xml)
Constructor that loads the given record. |
|
| Method Summary | |
|---|---|
abstract List |
getAssetNodes()
Gets the assetNodes attribute of the NldrMetadataRecord object |
protected static String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout: |
abstract String |
getId()
Gets the id attribute of the NldrMetadataRecord object |
String |
getTextAtPath(String path)
Gets the textAtPath attribute of the NldrMetadataRecord object |
String |
getXml()
Gets the xml attribute of the NldrMetadataRecord object |
Node |
getXmlNode()
Gets the xmlNode attribute of the NldrMetadataRecord object |
String |
getXmlStripped()
Gets the xml stripped of the XML declaration and DTD declaration. |
static String |
makeXPath(String s)
Expands xpath into namespace-aware version, hanlding attributes and attribute/value specifiers. |
protected static void |
pp(Node node)
Description of the Method |
protected void |
prtlnErr(String s)
Output a line of text to error out, with datestamp. |
List |
selectNodes(String xpath)
Select Nodes for provided xpath |
Node |
selectSingleNode(String xpath)
Select Single node for provided xpath |
static void |
setDebug(boolean db)
Sets the debug attribute of the object |
void |
setTextAtPath(String xpath,
String value)
Sets the textAtPath attribute of the NldrMetadataRecord object |
String |
toString()
Get a String representation of this XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NldrMetadataRecordExporter(String xml)
throws DocumentException
xml - The XML to start with
DocumentException - If error parsing the XML| Method Detail |
|---|
public abstract String getId()
public abstract List getAssetNodes()
public String getTextAtPath(String path)
path - NOT YET DOCUMENTED
public void setTextAtPath(String xpath,
String value)
xpath - xpath of elementvalue - text to setpublic List selectNodes(String xpath)
xpath - xpath
public Node selectSingleNode(String xpath)
xpath - xpath
public static String makeXPath(String s)
s - xpath as a qualifed string
public Node getXmlNode()
public String getXml()
public String getXmlStripped()
public String toString()
toString in class Objectprotected static final String getDateStamp()
protected static final void pp(Node node)
node - Description of the Parameterprotected final void prtlnErr(String s)
s - The text that will be output to error out.public static void setDebug(boolean db)
db - The new debug value
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||