public class XBRLAttribute
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.AnyURIValue anyURIValue)
Creates a new XBRLAttribute from a saxonica AnyURIValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.om.AtomicSequence atomicSequence,
net.sf.saxon.type.SimpleType listType)
Creates a new XBRLAttribute from a saxonica AtomicValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.AtomicValue atomicValue)
Creates a new XBRLAttribute from a saxonica AtomicValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.BooleanValue booleanValue)
Creates a new XBRLAttribute from a saxonica BooleanValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.DateValue dateValue)
Creates a new XBRLAttribute from a saxonica DateValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.DecimalValue decimalValue)
Creates a new XBRLAttribute from a saxonica DecimalValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.DoubleValue doubleValue)
Creates a new XBRLAttribute from a saxonica DoubleValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.QNameValue qnameValue)
Creates a new XBRLAttribute from a saxonica QNameValue.
|
XBRLAttribute(javax.xml.namespace.QName atName,
java.lang.String value)
Creates an attribute node.
|
XBRLAttribute(javax.xml.namespace.QName atName,
net.sf.saxon.value.StringValue stringValue)
Creates an attribute node.
|
XBRLAttribute(javax.xml.namespace.QName atName,
java.net.URI value)
Instantiates a new XBRL attribute.
|
XBRLAttribute(XBRLAttribute other)
Creates a new XBRLAttribute that is a clone of this attribute.
|
XBRLAttribute(XMLFragment parent,
javax.xml.namespace.QName atName,
java.lang.String value,
net.sf.saxon.type.SimpleType atSimpleType)
Instantiates a new XBRL attribute.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addAttribute(XMLFragment elem,
net.sf.saxon.om.NodeName nameCode,
net.sf.saxon.type.SimpleType type,
net.sf.saxon.om.GroundedValue attrValue)
Adds the attribute.
|
static boolean |
addAttribute(XMLFragment elem,
net.sf.saxon.om.NodeName nameCode,
net.sf.saxon.type.SimpleType type,
java.lang.String attrValue)
Adds the attribute.
|
static boolean |
addAttribute(XMLFragment elem,
javax.xml.namespace.QName attrName,
javax.xml.namespace.QName qnValue)
Adds the attribute.
|
static boolean |
addAttribute(XMLFragment elem,
net.sf.saxon.type.SimpleType attrType,
javax.xml.namespace.QName attrNodeName,
net.sf.saxon.om.GroundedValue gValue)
Adds the attribute to the target element.
|
static boolean |
addAttribute(XMLFragment elem,
net.sf.saxon.type.SimpleType attrType,
javax.xml.namespace.QName attrNodeName,
java.lang.String attrValue)
Adds the attribute.
|
static boolean |
addAttribute(XMLFragment elem,
net.sf.saxon.type.SimpleType attrType,
java.lang.String localPart,
net.sf.saxon.om.GroundedValue attrValue,
java.lang.String prefix,
java.lang.String namespaceURI)
Adds the attribute.
|
static boolean |
addAttribute(XMLFragment elem,
net.sf.saxon.type.SimpleType attrType,
java.lang.String localPart,
java.lang.String attrValue,
java.lang.String prefix,
java.lang.String namespaceURI)
Adds the attribute.
|
static boolean |
addAttribute(XMLFragment elem,
java.lang.String attrName,
javax.xml.namespace.QName qnValue)
Adds the attribute.
|
XBRLAttribute |
clone()
Clone.
|
boolean |
equals(java.lang.Object other)
Compare two attributes for equality
Parent is not considered in equality just the node name and the values.
|
java.lang.String |
getFriendlyName()
Gets the friendly name.
|
javax.xml.namespace.QName |
getNodeName()
Gets the node name.
|
XMLFragment |
getParent()
Gets the parent.
|
net.sf.saxon.type.SimpleType |
getSimpleType()
Gets the simple type.
|
java.lang.String |
getStringValue()
Gets the string value.
|
net.sf.saxon.om.GroundedValue |
getValue()
Gets the value.
|
net.sf.saxon.s9api.XdmValue |
getXdmValue()
Gets the attribute value as an XdmValue.
|
int |
hashCode()
Hash code.
|
static boolean |
removeAttribute(XMLFragment elem,
java.lang.String attrName,
java.lang.String attrNamespace)
Removes the attribute.
|
void |
setParent(XMLFragment parent)
Sets the parent.
|
void |
setValue(net.sf.saxon.value.AtomicValue value)
Sets the value for this attribute as AtomicValue.
|
void |
setValue(java.lang.String value)
Sets the value for this attribute as String.
|
java.lang.String |
toString()
To string.
|
public XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.AnyURIValue anyURIValue)
atName
- QNameanyURIValue
- AnyURIValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.AtomicValue atomicValue)
atName
- QNameatomicValue
- AtomicValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.om.AtomicSequence atomicSequence, net.sf.saxon.type.SimpleType listType)
atName
- QNameatomicSequence
- the atomic sequencelistType
- must be a listTypepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.BooleanValue booleanValue)
atName
- QNamebooleanValue
- BooleanValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.DateValue dateValue)
atName
- QNamedateValue
- DateValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.DecimalValue decimalValue)
atName
- QNamedecimalValue
- DecimalValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.DoubleValue doubleValue)
atName
- QNamedoubleValue
- DoubleValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.QNameValue qnameValue)
atName
- QNameqnameValue
- QNameValuepublic XBRLAttribute(javax.xml.namespace.QName atName, net.sf.saxon.value.StringValue stringValue)
atName
- QNamestringValue
- the string valuepublic XBRLAttribute(javax.xml.namespace.QName atName, java.lang.String value)
atName
- QNamevalue
- Valuepublic XBRLAttribute(javax.xml.namespace.QName atName, java.net.URI value)
atName
- the at namevalue
- the valuepublic XBRLAttribute(XMLFragment parent, javax.xml.namespace.QName atName, java.lang.String value, net.sf.saxon.type.SimpleType atSimpleType)
parent
- the parentatName
- the at namevalue
- the valueatSimpleType
- the at simple typepublic XBRLAttribute(XBRLAttribute other)
other
- the otherpublic static boolean addAttribute(XMLFragment elem, net.sf.saxon.om.NodeName nameCode, net.sf.saxon.type.SimpleType type, java.lang.String attrValue)
elem
- the elemnameCode
- the name codetype
- the typeattrValue
- the attr valuepublic static boolean addAttribute(XMLFragment elem, net.sf.saxon.om.NodeName nameCode, net.sf.saxon.type.SimpleType type, net.sf.saxon.om.GroundedValue attrValue)
elem
- the elemnameCode
- the name codetype
- the typeattrValue
- the attr valuepublic static boolean addAttribute(XMLFragment elem, net.sf.saxon.type.SimpleType attrType, javax.xml.namespace.QName attrNodeName, java.lang.String attrValue)
elem
- the elemattrType
- the attr typeattrNodeName
- the attr node nameattrValue
- the attr valuepublic static boolean addAttribute(XMLFragment elem, net.sf.saxon.type.SimpleType attrType, javax.xml.namespace.QName attrNodeName, net.sf.saxon.om.GroundedValue gValue)
elem
- the element to add the attribute toattrType
- the attribute typeattrNodeName
- the attribute node namegValue
- the attribute valuepublic static boolean addAttribute(XMLFragment elem, net.sf.saxon.type.SimpleType attrType, java.lang.String localPart, java.lang.String attrValue, java.lang.String prefix, java.lang.String namespaceURI)
elem
- the elemattrType
- the attr typelocalPart
- the local partattrValue
- the attr valueprefix
- the prefixnamespaceURI
- the namespace URIpublic static boolean addAttribute(XMLFragment elem, net.sf.saxon.type.SimpleType attrType, java.lang.String localPart, net.sf.saxon.om.GroundedValue attrValue, java.lang.String prefix, java.lang.String namespaceURI)
elem
- the elemattrType
- the attr typelocalPart
- the local partattrValue
- the attr valueprefix
- the prefixnamespaceURI
- the namespace URIpublic static boolean addAttribute(XMLFragment elem, java.lang.String attrName, javax.xml.namespace.QName qnValue)
elem
- the elemattrName
- the attr nameqnValue
- the qn valuepublic static boolean addAttribute(XMLFragment elem, javax.xml.namespace.QName attrName, javax.xml.namespace.QName qnValue)
elem
- the elemattrName
- the attr nameqnValue
- the qn valuepublic static boolean removeAttribute(XMLFragment elem, java.lang.String attrName, java.lang.String attrNamespace)
elem
- the elemattrName
- the attr nameattrNamespace
- the attr namespacepublic XBRLAttribute clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the otherpublic java.lang.String getFriendlyName()
public javax.xml.namespace.QName getNodeName()
public XMLFragment getParent()
public net.sf.saxon.type.SimpleType getSimpleType()
public java.lang.String getStringValue()
public net.sf.saxon.om.GroundedValue getValue()
public net.sf.saxon.s9api.XdmValue getXdmValue()
public int hashCode()
hashCode
in class java.lang.Object
public void setParent(XMLFragment parent)
parent
- the new parentpublic void setValue(net.sf.saxon.value.AtomicValue value)
value
- the new AtomicValue valuepublic void setValue(java.lang.String value)
value
- the new String valuepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa