|
XBRLAPIA Java API for XBRL |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Builder
Methods exposed by the fragment builder.
| Method Summary | |
|---|---|
void |
appendAttributeDecl(String eName,
String aName,
String type,
String valueDefault,
String value)
Append an attribute DTD declaration |
void |
appendComment(String text)
Append a comment node. |
void |
appendElement(String namespaceURI,
String lName,
String qName)
Insert a new element without attributes. |
void |
appendElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
Append an element node. |
void |
appendElementDecl(String name,
String model)
Append an element DTD declaration. |
void |
appendExternalEntityDecl(String name,
String publicId,
String systemId)
Append an external entity DTD declarations |
void |
appendInternalEntityDecl(String name,
String value)
Append an internal entity DTD declaration. |
void |
appendMetadataElement(String eName,
HashMap<String,String> attributes)
Appends a child element to the root metadata element. |
void |
appendNotationDecl(String name,
String publicId,
String systemId)
Append a notation declaration. |
void |
appendProcessingInstruction(String target,
String data)
Append a processing instruction node |
void |
appendText(String text)
Append a text node. |
void |
appendUnparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
Append an unparsed entity declaration. |
void |
endElement(String namespaceURI,
String lName,
String qName)
Update the insertion point for new content when reaching the end of an element. |
Element |
getData()
Get the Document object used to build the fragment. |
Element |
getInsertionPoint()
Get the insertion point for new content. |
String |
getMetaAttribute(String name)
Get a metadata attribute. |
Element |
getMetadata()
Get the metadata DOM document. |
boolean |
isNewFragment()
Returns true iff the builder has not yet added an element to the fragment. |
void |
removeMetaAttribute(String name)
Remove a metadata attribute. |
void |
removeMetadataElement(String eName,
HashMap<String,String> attributes)
Removes a child element from the metadata root element by specifying the name of the child and the value of the element's text content and/or the value of a named attribute. |
void |
setMetaAttribute(String name,
String value)
Set a metadata attribute. |
| Method Detail |
|---|
Element getData()
Element getMetadata()
Element getInsertionPoint()
boolean isNewFragment()
void appendText(String text)
throws XBRLException
text - The node to be appended.
XBRLException - if the node cannot be appended.
void appendProcessingInstruction(String target,
String data)
throws XBRLException
target - The processing target application identifier.data - The data defining what is to be done.
XBRLException - if the node cannot be appended.
void appendComment(String text)
throws XBRLException
text - The data constituting the content of the comment.
XBRLException - if the node cannot be appended.
void appendElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
throws XBRLException
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.
XBRLException - if the node cannot be appended.
void appendElement(String namespaceURI,
String lName,
String qName)
throws XBRLException
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.
XBRLException - if the node cannot be appended.
void endElement(String namespaceURI,
String lName,
String qName)
throws XBRLException
namespaceURI - The namespace URI of the element that is ending.lName - The local name of the element that is ending.qName - The QName of the element that is ending.
XBRLException - if the current insertion point is not an
element node or if the new (parent) insertion point is not an element node.
void appendNotationDecl(String name,
String publicId,
String systemId)
throws XBRLException
XBRLException
void appendUnparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
throws XBRLException
XBRLException
void appendElementDecl(String name,
String model)
throws XBRLException
XBRLException
void appendInternalEntityDecl(String name,
String value)
throws XBRLException
XBRLException
void appendExternalEntityDecl(String name,
String publicId,
String systemId)
throws XBRLException
XBRLException
void appendAttributeDecl(String eName,
String aName,
String type,
String valueDefault,
String value)
throws XBRLException
XBRLException
void setMetaAttribute(String name,
String value)
name - The name of the attribute.value - The value of the attribute.String getMetaAttribute(String name)
name - The name of the attribute.
void removeMetaAttribute(String name)
name - The name of the attribute.
void appendMetadataElement(String eName,
HashMap<String,String> attributes)
throws XBRLException
eName - Name of the element to be added (no namespaces are used).attributes - A hashmap from attribute name keys to attribute values.
XBRLException - if the metadata element cannot be appended.
void removeMetadataElement(String eName,
HashMap<String,String> attributes)
throws XBRLException
eName - Name of the element to be added (no namespaces are used).attributes - A hashmap from attribute name keys to attribute values.
XBRLException - if the metadata element cannot be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||