|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlElement
Interface for all types of elements in XBRL environment.
This element is a NODE in a DOM.
Copyright 2006 J2R BV, The Netherlands.
Part of Licensed Materials.
www.batavia-xbrl.com
| Method Summary | |
|---|---|
void |
addAttribute(XmlAttribute prefixNameValue)
add the attribute with its fully qualified name as key |
void |
addChild(XmlElement child)
add the child to the collection of children |
void |
addChildren(java.util.List potentialNewChildren)
|
void |
addComment(Comment comment)
|
void |
addMessage(com.j2r.xbrl.validation.MessageElementImpl msg)
|
void |
addNameSpace(java.lang.String namePrefix,
java.lang.String URI)
Add the NameSpaceImpl with the given URI to the NameSpaces this XbrlElementImpl knows off under the given namePrefix. |
void |
clearMessages()
|
void |
fromXml(com.batavia.jdom.Element element)
read the xbrl content of this element from the jdom Element. delagate to the children XbrlElementImpl only has knowledge on its own value member. |
XmlAttribute |
getAttribute(FullyQualifiedName qName)
get the attribute with the given FullyQualifiedName if found, else return null |
XmlAttribute |
getAttribute(FullyQualifiedName qName,
java.lang.String defaultValue)
get the attribute with the given FullyQualifiedName. |
Set |
getAttributeSet()
|
XmlElement |
getChild(FullyQualifiedName qName)
Get the child with the given FullyQualifiedName |
Sequence |
getChildren()
Get children Sequence. |
java.util.List |
getChildren(FullyQualifiedName qName)
|
NameSpace |
getDefaultNameSpace()
Get the namespace that was added without a prefixName; if not here, check the parent (if not null or equal to this). |
java.lang.String |
getDocumentHref()
Each element is contained by a document. the document href indicates the location for that document. |
java.lang.String |
getErrorMessage()
Each element can contain a error message that indicates errors thatw ere discovered during xbrl validation |
FullyQualifiedName |
getFullyQualifiedNameValue()
If no prefix in the value, then only the name is filled |
java.util.Map |
getMappedChildren()
|
java.util.List |
getMessages()
|
FullyQualifiedName |
getName()
Get the FullyQualifiedName |
NameSpace |
getNameSpace(java.lang.String namePrefix)
Get the namespace that is associated with the given prefix; if not here, check the parent (if not null or equal to this). |
java.util.Map |
getNameSpacePrefixes()
|
java.util.Map |
getNameSpaces()
Get children Sequence. |
XmlElement |
getPointedElement(java.lang.String xpointer)
Get the element that is indicated with the given xpointer. |
XmlAttribute |
getValidXmlBase()
Get the ValidXmlBase value for this element. |
java.lang.String |
getValue()
get the value |
NameSpace |
getXmlElementNameSpace()
Get the NameSpace the element is in. |
XmlElement |
getXmlRoot()
get the root (farest parent) for this |
boolean |
isValid()
returns false only when validated by its parent in a validation call AND when a problem was detected |
void |
moveChild(XmlElement child)
Add the child to the collection of children, removing it from it's former parent. |
void |
removeAttribute(XmlAttribute attribute)
remove the attribute from the collection of attributes |
void |
removeChild(XmlElement child)
remove the child from the collection of children |
java.lang.String |
resolvePointedValue(java.lang.String xpointerOptionalAttribute)
|
XmlParticle |
resolvePointedXmlParticle(java.lang.String xpointerOptionalAttribute)
|
void |
setAttributeValue(FullyQualifiedName qName,
java.lang.String value)
|
void |
setChildren(java.util.List newChildren,
FullyQualifiedName qName)
remove all xmlelements with given qname aand set the children as the collection of children for the XmlElements with given qname. |
void |
setDocumentHref(java.lang.String href)
|
void |
setErrorMessage(java.lang.String errorMessage)
Each element can contain a error message that indicates errors thatw ere discovered during xbrl validation |
void |
setInit(boolean init)
|
void |
setName(FullyQualifiedName name)
SetImpl the FullyQualifiedName. |
void |
setTargetNameSpace(NameSpace targetNameSpace)
Set the namespace this element and its children contribute to. |
void |
setValue(java.lang.String value)
Set the value |
com.batavia.jdom.Element |
toXml()
|
void |
toXml(org.xml.sax.ContentHandler out)
Write this object's XML contents to the given contenthandler without start or enddocument. |
void |
toXmlStream(java.io.OutputStream out)
Write this object's XML contents to the given stream. |
java.lang.String |
toXmlString()
Convert this object to a string representation of the XML contents. |
java.lang.StringBuffer |
toXstringBuffer()
|
boolean |
validate(ValidationDocument messagesList)
Validate this xbrl part (of the instance and/or its supporting discoverable taxonomy set) and add messages on any problem to the given XbrlValidationMessagesImpl collection. |
| Methods inherited from interface com.batavia.xml.XmlParticle |
|---|
destroy, getBaseUri, getParent, getPrefix, getTargetNameSpace, isBoolean, isNumber, p_equal, resolveNamespacePrefix, setParent, toXstring |
| Methods inherited from interface com.batavia.xml.ComparablePart |
|---|
c_equal, identical, s_equal, u_equal, v_equal, x_equal |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.relaxng.datatype.ValidationContext |
|---|
isNotation, isUnparsedEntity |
| Methods inherited from interface com.batavia.xml.IdKeeper |
|---|
addIdHolder, getHolder, removeIdHolder |
| Method Detail |
|---|
java.lang.String getErrorMessage()
void clearMessages()
void setErrorMessage(java.lang.String errorMessage)
errorMessage - String the error message on this elementvoid setTargetNameSpace(NameSpace targetNameSpace)
targetNameSpace - The targetNameSpace to set.void addAttribute(XmlAttribute prefixNameValue)
prefixNameValue - XmlAttributevoid moveChild(XmlElement child)
child - void addChild(XmlElement child)
child - XbrlElementvoid fromXml(com.batavia.jdom.Element element)
void addNameSpace(java.lang.String namePrefix,
java.lang.String URI)
namePrefix - short id for the namespace in the context of this xbrl element and its children.URI - unique identification for the namespaceXmlAttribute getAttribute(FullyQualifiedName qName)
qName - FullyQualifiedName
XmlAttribute getAttribute(FullyQualifiedName qName,
java.lang.String defaultValue)
defaultValue - StringqName - FullyQualifiedName
Set getAttributeSet()
XmlElement getChild(FullyQualifiedName qName)
qName - FullyQualifiedName
java.util.Map getNameSpaces()
java.util.Map getNameSpacePrefixes()
NameSpace getDefaultNameSpace()
java.lang.String getDocumentHref()
FullyQualifiedName getFullyQualifiedNameValue()
FullyQualifiedName getName()
NameSpace getNameSpace(java.lang.String namePrefix)
getNameSpace in interface XmlParticlenamePrefix - prefix of a name for which the namespace is requested.
XmlElement getPointedElement(java.lang.String xpointer)
getPointedElement in interface IdKeeperxpointer - String with the xpointer value
XmlAttribute getValidXmlBase()
java.lang.String getValue()
NameSpace getXmlElementNameSpace()
void removeAttribute(XmlAttribute attribute)
attribute - XmlAttributevoid removeChild(XmlElement child)
child - XbrlElementvoid setName(FullyQualifiedName name)
name - The name to set.void setValue(java.lang.String value)
value - String
java.lang.String toXmlString()
throws XbrlException
XbrlException
void toXmlStream(java.io.OutputStream out)
throws XbrlException
XbrlException
void toXml(org.xml.sax.ContentHandler out)
throws XbrlException
XbrlExceptionboolean validate(ValidationDocument messagesList)
msgs - The messages that indicate the problems with the instance and or its supporting
taxonomy set
java.util.List getChildren(FullyQualifiedName qName)
void addComment(Comment comment)
void setAttributeValue(FullyQualifiedName qName,
java.lang.String value)
void setDocumentHref(java.lang.String href)
java.lang.String resolvePointedValue(java.lang.String xpointerOptionalAttribute)
throws XbrlException
XbrlException
XmlParticle resolvePointedXmlParticle(java.lang.String xpointerOptionalAttribute)
throws XbrlException
XbrlExceptionjava.lang.StringBuffer toXstringBuffer()
XmlElement getXmlRoot()
java.util.Map getMappedChildren()
boolean isValid()
void addMessage(com.j2r.xbrl.validation.MessageElementImpl msg)
java.util.List getMessages()
Sequence getChildren()
void addChildren(java.util.List potentialNewChildren)
void setChildren(java.util.List newChildren,
FullyQualifiedName qName)
children - List with XmlElement objectscom.batavia.jdom.Element toXml()
void setInit(boolean init)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||