|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XML
| Method Summary | |
|---|---|
void |
appendMetadataElement(String eName,
Map<String,String> attributes)
Appends a child element to the root metadata element. |
boolean |
equals(Object o1)
Override the Object equals method to base equality on the fragment index. |
Builder |
getBuilder()
Get the fragment builder. |
Document |
getDocumentNode()
Get the XML DOM Document for the fragment data. |
String |
getIndex()
Get the index of the XML resource. |
String |
getMetaAttribute(String name)
Get a fragment metadata attribute. |
Element |
getMetadataRootElement()
Get the root element of the fragment metadata. |
Store |
getStore()
Get the data store that manages this fragment. |
String |
getType()
Get the Fragment type. |
int |
hashCode()
Override the Object hashCode method to provide for equality comparisons that are based on the fragment index. |
boolean |
hasMetaAttribute(String name)
|
boolean |
isa(Class<?> targetClass)
|
boolean |
isa(String superType)
|
void |
removeMetaAttribute(String name)
Removes 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. |
String |
serialize()
|
void |
serialize(File file)
Serializes the XML to the specified file. |
void |
serialize(OutputStream outputStream)
Serializes the XML to the specified output stream. |
void |
setBuilder(Builder builder)
Set the builder that constructs the fragment XML during parsing. |
void |
setIndex(String index)
Set the fragment index. |
void |
setMetaAttribute(String name,
String value)
Set a fragment metadata attribute. |
void |
setResource(Element rootElement)
Closes down the fragment builder and sets the data and metadata resources for the fragment. |
void |
setStore(Store store)
Set the data store that manages this fragment. |
void |
updateInStore()
Updates the data store to reflect the current state of this XML object. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
int hashCode()
hashCode in class Object
boolean equals(Object o1)
throws ClassCastException
equals in class ObjectClassCastException - if the object that the fragment
being compared to does not cast to a fragment.
boolean isa(String superType)
throws XBRLException
superType - The specified fragment type to test against.
XBRLExceptionisa(Class)
boolean isa(Class<?> targetClass)
throws XBRLException
targetClass - The specified XML resource subclass to test against.
XBRLException
void setResource(Element rootElement)
throws XBRLException
rootElement - The fragment data.
XBRLException - If the builder cannot be shut down or if the
resource cannot be set or is null.Document getDocumentNode()
Element getMetadataRootElement()
void setStore(Store store)
throws XBRLException
store - The data store.
XBRLException - if the data store has already been set.
void setBuilder(Builder builder)
throws XBRLException
builder - The builder object used to construct the fragment XML.
XBRLException - if the builder cannot be set or is null.Store getStore()
Builder getBuilder()
String getType()
String getIndex()
void setIndex(String index)
throws XBRLException
an - XBRLException if the index is null or an empty string.
XBRLException
void setMetaAttribute(String name,
String value)
throws XBRLException
name - the name of the attributevalue - the value to give to the metadata attribute
XBRLExceptionString getMetaAttribute(String name)
name - the name of the attribute.
boolean hasMetaAttribute(String name)
name - the name of the attribute.
void removeMetaAttribute(String name)
throws XBRLException
name - The name of the attribute to remove
XBRLException
void appendMetadataElement(String eName,
Map<String,String> attributes)
throws XBRLException
eName - Name of the element to be added (no namespaces are used).attributes - A map from attribute name keys to attribute values.
XBRLException.
XBRLException
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 no deletion happens.
void serialize(File file)
throws XBRLException
file - The specified output file.
XBRLException
void serialize(OutputStream outputStream)
throws XBRLException
outputStream - The specified output stream.
XBRLException
String serialize()
throws XBRLException
XBRLException
void updateInStore()
throws XBRLException
XBRLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||