|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.xbrlcomposer.DTS
| Field Summary | |
static java.lang.String |
CompositeNamespace
CompositeNamespace is the namespace for the elements and attributes specific to DTSImpl composite documents |
static java.lang.String |
CompositePrefix
CompositeNamespace prefix |
static java.lang.String |
XBRL20LinkNamespace
|
static java.lang.String |
XBRL20Namespace
|
static java.lang.String |
XBRL21LinkNamespace
XBRLLinkNamespace is the namespace for the XBRL Link elements |
static java.lang.String |
XBRL21Namespace
XBRLNamespace is the namespace for the XBRL Instance elements |
static java.lang.String |
XLinkNamespace
XLinkNamespace is the namespace for the XLink |
static java.lang.String |
XLinkPrefix
XLinkNamespace prefix |
static java.lang.String |
XMLNamespace
XMLNamespace is the namespace for the XLink elements |
static java.lang.String |
XMLSchemaNamespace
XMLSchemaNamespace is the namespace for the elements and attributes specific to XML Schema |
static java.lang.String |
XMLSchemaPrefix
XMLSchemaNamespace prefix |
| Constructor Summary | |
DTS()
DTSImpl constructor with no inputs. |
|
DTS(java.io.File file)
DTSImpl constructor taking the URL of a serialised DTSImpl as an input point documents. |
|
DTS(java.lang.String[] startingURLs)
DTSImpl constructor taking an array of string URL's of starting point documents. |
|
| Method Summary | |
void |
addFileToDTS()
Add a file element to the DTSImpl to contain a new file in the DTSImpl. |
void |
appendComment(java.lang.String data)
Append a comment to the composite document. |
void |
appendProcessingInstruction(java.lang.String target,
java.lang.String data)
Append a processing instruction to the composite document |
void |
appendText(java.lang.String text)
Append a text node to the composite document |
void |
augmentDTSDocuments(java.util.List newStartingURLs)
Augment a DTSImpl with additional documents |
void |
augmentDTSDocuments(java.lang.String[] newStartingURLs)
Augment a DTSImpl with additional documents |
void |
decompose(java.io.File cacheRoot)
Decomposes the DTSImpl into the original files in a taxonomy cache. |
void |
finishedWithAnElement()
Step up to element's parent having finished with the element. |
void |
finishFileInDTS()
Finish processing a file in the DTSImpl |
org.w3c.dom.Document |
getDocument()
Get the document DOM object representing the DTSImpl as an XML object |
org.xml.sax.EntityResolver |
getEntityResolver()
Get the resolver for the DTSImpl |
java.util.HashMap |
getIndex()
Get the index map for the DTSImpl |
org.w3c.dom.Element |
getIndexedFragment(java.lang.String key)
Get an XML fragment in the DTSImpl given its index |
org.w3c.dom.Element |
getRoot()
Get the root element |
void |
getRoot(org.w3c.dom.Element root)
Set the root element |
java.net.URI |
getTargetNamespaceURI()
Get the targetNamespaceURI for the schema being processed |
void |
handleElementEnd(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
Called by the SAX content handler to wrap up the processing of elements. |
void |
handleElementStart(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Called by the SAX content handler Identify elements requiring specific treatment and handle appropriately, otherwise just insert the element at the current location in the composite document. |
boolean |
isParsingXBRLInstance()
Get the value of the boolean indicating that an XBRL instance is being parsed |
void |
loadDTSDocuments()
Loads the documents identified as part of the DTSImpl. |
static void |
main(java.lang.String[] argv)
Class entry point for execution. |
void |
processExtendedLink()
Process the arcs in an extended link. |
void |
saveToFile(java.io.File file)
Save the DTSImpl DOM object to an XML file. |
void |
saveToFile(java.io.OutputStream outputStream)
Save the DTSImpl DOM object to an XML file. |
void |
saveToFile(java.lang.String filename)
Save the DTSImpl DOM object to an XML file. |
boolean |
selectBoolean(java.lang.String xPath,
org.w3c.dom.Element element)
Evaluate an XPath expression against an element in the DTSImpl DOM |
org.w3c.dom.Node |
selectNode(java.lang.String xPath,
org.w3c.dom.Element element)
Evaluate an XPath expression against an element in the DTSImpl DOM |
org.w3c.dom.xpath.XPathResult |
selectNodes(java.lang.String xPath,
org.w3c.dom.Element element)
Evaluate an XPath expression against an element in the DTSImpl DOM |
org.w3c.dom.xpath.XPathResult |
selectNodesSnapshot(java.lang.String xPath,
org.w3c.dom.Element element)
Evaluate an XPath expression against an element in the DTSImpl DOM |
double |
selectNumber(java.lang.String xPath,
org.w3c.dom.Element element)
Evaluate an XPath expression against an element in the DTSImpl DOM |
java.lang.String |
selectString(java.lang.String xPath,
org.w3c.dom.Element element)
Evaluate an XPath expression against an element in the DTSImpl DOM |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Set the resolver for the DTSImpl |
void |
setIndexedFragment(java.lang.String key,
org.w3c.dom.Element fragment)
Set a fragment in the DTSImpl Note that this does not check that the key is unique or that the fragment is part of the DTSImpl XML DOM object. |
void |
setParsingXBRLInstance(boolean parsing)
Set the boolean indicating that an XBRL instance is being parsed |
void |
setStartingPoints(java.util.List startingDocuments)
Set the starting points for DTSImpl discovery using a linked list |
void |
setStartingPoints(java.lang.String[] startingDocuments)
Set the starting points for DTSImpl discovery using a linked list |
void |
setTargetNamespaceURI(java.net.URI targetNamespaceURI)
Set the targetNamespaceURI for the schema being processed |
java.lang.String |
toString()
Returns the string representation of the DTSImpl |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String XMLNamespace
public static final java.lang.String XLinkNamespace
public static final java.lang.String XBRL21Namespace
public static final java.lang.String XBRL20Namespace
public static final java.lang.String XBRL21LinkNamespace
public static final java.lang.String XBRL20LinkNamespace
public static final java.lang.String CompositeNamespace
public static final java.lang.String XMLSchemaNamespace
public static final java.lang.String XLinkPrefix
public static final java.lang.String XMLSchemaPrefix
public static final java.lang.String CompositePrefix
| Constructor Detail |
public DTS()
throws DTSException
setStartingPoints(java.util.List).
DTSException
public DTS(java.lang.String[] startingURLs)
throws DTSException
startingURLs - An array of strings, each of which is a URL for a DTSImpl
discovery starting point.
DTSException
public DTS(java.io.File file)
throws DTSException
file - the DTSImpl file
DTSException| Method Detail |
public static void main(java.lang.String[] argv)
throws DTSException
argv - array of command line arguments
DTSException
public java.util.HashMap getIndex()
throws DTSException
DTSException
public org.xml.sax.EntityResolver getEntityResolver()
throws DTSException
DTSException
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
throws DTSException
resolver - A custom entity resolver implementation
DTSException
public void setIndexedFragment(java.lang.String key,
org.w3c.dom.Element fragment)
throws DTSException
key - Index value for an indexed XML fragment in the DTSImplfragment - XML fragment in the DTSImpl DOM
DTSException
public org.w3c.dom.Element getIndexedFragment(java.lang.String key)
throws DTSException
key - Index value for an indexed XML fragment in the DTSImpl
DTSException
public org.w3c.dom.Document getDocument()
throws DTSException
DTSException
public java.net.URI getTargetNamespaceURI()
throws DTSException
DTSException
public void setTargetNamespaceURI(java.net.URI targetNamespaceURI)
throws DTSException
DTSException
public void setParsingXBRLInstance(boolean parsing)
throws DTSException
parsing - Indicates whether an XBRL instance is being parsed or not.
DTSException
public boolean isParsingXBRLInstance()
throws DTSException
DTSException
public org.w3c.dom.Element getRoot()
throws DTSException
DTSException
public void getRoot(org.w3c.dom.Element root)
throws DTSException
root - the root element for the dts
DTSException
public void setStartingPoints(java.util.List startingDocuments)
throws DTSException
startingDocuments - A list of starting point document URLs for DTSImpl discovery
DTSException
public void setStartingPoints(java.lang.String[] startingDocuments)
throws DTSException
startingDocuments - A string array of starting point document URLs for DTSImpl
discovery
DTSException
public void loadDTSDocuments()
throws DTSException
DTSException
public void augmentDTSDocuments(java.lang.String[] newStartingURLs)
throws DTSException
DTSException
public void augmentDTSDocuments(java.util.List newStartingURLs)
throws DTSException
DTSException
public void addFileToDTS()
throws DTSException
DTSException
public void finishFileInDTS()
throws DTSException
DTSException
public void processExtendedLink()
throws DTSException
DTSException
public void finishedWithAnElement()
throws DTSException
DTSException
public void handleElementStart(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws DTSException
namespaceURI - The namespace of the element found by the SAX parser.lName - The local name of the element found by the SAX parser.qName - The QName of the element found by the SAX parser.attrs - The set of attributes found by the SAX parser.
DTSException
public void handleElementEnd(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
throws DTSException
namespaceURI - The namespace of the element found by the SAX parser.sName - The local name of the element found by the SAX parser.qName - The QName of the element found by the SAX parser.
DTSException
public void appendText(java.lang.String text)
throws DTSException
text - The text to be appended to the current element.
DTSException
public void appendProcessingInstruction(java.lang.String target,
java.lang.String data)
throws DTSException
target - The processing target application identifier.data - The data defining what is to be done.
DTSException
public void appendComment(java.lang.String data)
throws DTSException
data - The data constituting the content of the comment.
DTSException
public void saveToFile(java.lang.String filename)
throws DTSException
filename - The name of the file to be used to store the DTSImpl XML file.
DTSException
public void saveToFile(java.io.File file)
throws DTSException
file - The file object documenting the file to be created.
DTSException
public void saveToFile(java.io.OutputStream outputStream)
throws DTSException
outputStream - The output stream that the serialized DTSImpl is sent to.
DTSException
public boolean selectBoolean(java.lang.String xPath,
org.w3c.dom.Element element)
throws DTSException
xPath - String XPath expression to evaluate against the specified
elementelement - The element used as the context node for XPath evaluation
DTSException
public java.lang.String selectString(java.lang.String xPath,
org.w3c.dom.Element element)
throws DTSException
xPath - String XPath expression to evaluate against the specified
elementelement - The element used as the context node for XPath evaluation
DTSException
public double selectNumber(java.lang.String xPath,
org.w3c.dom.Element element)
throws DTSException
xPath - String XPath expression to evaluate against the specified
elementelement - The element used as the context node for XPath evaluation
DTSException
public org.w3c.dom.Node selectNode(java.lang.String xPath,
org.w3c.dom.Element element)
throws DTSException
xPath - String XPath expression to evaluate against the specified
elementelement - The element used as the context node for XPath evaluation
DTSException
public org.w3c.dom.xpath.XPathResult selectNodes(java.lang.String xPath,
org.w3c.dom.Element element)
throws DTSException
xPath - String XPath expression to evaluate against the specified
elementelement - The element used as the context node for XPath evaluation
DTSException
public org.w3c.dom.xpath.XPathResult selectNodesSnapshot(java.lang.String xPath,
org.w3c.dom.Element element)
throws DTSException
xPath - String XPath expression to evaluate against the specified
elementelement - The element used as the context node for XPath evaluation
DTSExceptionpublic java.lang.String toString()
public void decompose(java.io.File cacheRoot)
throws DTSException
cacheRoot - The directory under which the files are written.
DTSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||