public class XMLElementDefinition extends XMLFragment implements XBRLValueKey
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
abstract_
The [Abstract] property.
|
static int |
ALL
The Constant ALL.
|
static javax.xml.namespace.QName |
block
The [Block] property.
|
static javax.xml.namespace.QName |
elementDocNode
The element doc node.
|
static int |
EMPTY
The Constant EMPTY.
|
static int |
EXTENSION
The Constant EXTENSION.
|
static javax.xml.namespace.QName |
final_
The [Final] property.
|
static javax.xml.namespace.QName |
fixed
The [Fixed] property.
|
static javax.xml.namespace.QName |
name
The [Name] property.
|
static javax.xml.namespace.QName |
nillable
The [Nillable] property.
|
static XMLElementDefinition |
nullConcept
The Constant nullConcept.
|
static int |
RESTRICTION
The Constant RESTRICTION.
|
static int |
SUBSTITUTION
The Constant SUBSTITUTION.
|
static javax.xml.namespace.QName |
substitutionGroup
The [Substitution Group] property.
|
static javax.xml.namespace.QName |
type
The [Type] property. can be null if this element is in the substitution group of another element that has a type
|
static int |
UNDEFINED
The Constant UNDEFINED.
|
ADD_NAMESPACE_INHERIT, baseQName, CONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, FACT_VALUE, HIDE_COMMON_ACCURACY, idQName, langQName, nil, NO_POSITION, OrderComparator, OrderComparator2, OrderComparatorReverse, PERIOD_BOP, PERIOD_TYPE, PERIOD_VALUE, RELATIONSHIP_TYPE, RESOURCE_TYPE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER
Constructor and Description |
---|
XMLElementDefinition(DTSContainer dts)
Constructor used when Element Declarations are created while parsing
XML.
|
XMLElementDefinition(XBRLTaxonomy parent,
java.lang.String name,
XBRLXSDTypeDefinition type,
javax.xml.namespace.QName substitutionGroup,
java.lang.Boolean _abstract,
java.lang.Boolean nillable,
int block,
int _final,
java.lang.String fixed)
Constructor to programatically create an element definition.
|
XMLElementDefinition(XBRLTaxonomy parent,
XMLFragment node)
Constructor used when the concept comes from a NodeInfo.
|
XMLElementDefinition(XMLFragment node)
Constructor used when the concept comes from a NodeInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
boolean |
equals(java.lang.Object other)
Equals.
|
XMLElementDefinition |
generateNode()
Generate node.
|
boolean |
getAbstract()
Deprecated.
|
java.util.Iterator<XBRLAttribute> |
getAttributes()
Access to the [Attributes] property.
|
int |
getBlock()
Access to the [Block] property.
|
static java.lang.String |
getBlock(int block)
Returns a string representation of the value of the block attribute
suitable to be used as the value of the block attribute in an element
definition in a schema.
|
static int |
getBlock(java.lang.String str)
Converts the string representation of Block to a integer codification.
|
java.util.Iterator<XMLFragment> |
getChildrenType()
Access to the [children] property.
|
com.saxonica.ee.validate.ContentValidator |
getContentValidator()
Returns a ContentValidator instance that is able to validate the element content.
|
int |
getFinal()
Access to the [Final] property.
|
static java.lang.String |
getFinal(int _final)
Returns a string representation of the value of the block attribute
suitable to be used as the value of the block attribute in an element
definition in a schema.
|
static int |
getFinal(java.lang.String str)
Converts the string representation of the final token into a code.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
java.lang.String |
getFixed()
Access to the [Fixed] property.
|
java.lang.String |
getFriendlyName()
Gets the friendly name.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Gets the friendly name.
|
java.util.Collection<? extends XMLElementDefinition> |
getInSubstitutionGroup()
Returns a collection of elements that are in the substitution group of this element or has this
element in the substitution group hierarchy.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
java.lang.String |
getName()
Access to the [Name] property.
|
boolean |
getNillable()
Return the value of the [nillable] property.
|
int |
getNumberOfChildren() |
XBRLTaxonomy |
getParentDocument()
Access to the [Parent] property.
|
javax.xml.namespace.QName |
getQName()
Access to the QName property (Not in the infoset)
The QName property is a QName with taxonomy targetNamespace and
local name equal to the element declaration name
There is no setQName method in this object.
|
com.saxonica.ee.validate.SimpleContentValidator |
getSimpleContentValidator()
Deprecated.
|
javax.xml.namespace.QName |
getSubstitutionGroup()
Acces to the [Substitution Group] property.
|
java.util.Collection<XMLElementDefinition> |
getSubstitutionGroupHierarchy()
Returns a collection of XMLElementDefinition elements representing the substitution group
hierarchy tree for this concept definition.
|
XBRLXSDTypeDefinition |
getType()
Access to the [Type] property
Returns null if the element has no type definition or if the
type is locally defined
The returned object is a wrapper of the XSD type definition.
|
net.sf.saxon.value.QNameValue |
getValueKey()
Gets the value key.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
boolean |
isAbstract()
Return the value of the [Abstract] property.
|
boolean |
isInSubstitutionGroup(XMLElementDefinition element)
Returns true if the element received as a parameter is in this element's substitution group.
|
boolean |
isTotal(XBRLRoleType role)
Returns true if the role passed in is defined as a total role.
|
java.lang.Boolean |
setAbstract(java.lang.Boolean abstract_)
Sets the value of the [Abstract] property.
|
java.lang.Integer |
setBlock(java.lang.Integer newValue)
Sets the value of the [Block] property or resets it if newValue is null.
|
void |
setElementDeclaration(com.saxonica.ee.schema.ElementDecl sc)
Sets the element declaration.
|
java.lang.Integer |
setFinal(java.lang.Integer newValue)
Set the value of the [Final] property or resets it if newValue is null.
|
java.lang.String |
setFixed(java.lang.String value)
Sets the value of the [Fixed] property.
|
void |
setId(java.lang.String id)
Sets the ID for the concept definition.
|
java.lang.String |
setName(java.lang.String newName)
Sets the [Name] property to the value indicated.
|
java.lang.Boolean |
setNillable(java.lang.Boolean nillable)
Sets the value of the [Nillable] property.
|
javax.xml.namespace.QName |
setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup)
Sets or reset the value of the [substitutionGroup] property
|
XBRLXSDTypeDefinition |
setType(XBRLXSDTypeDefinition type)
Sets the item type to the type specified in the XBRLXSDTypeDefinition object or unset
the type definition if the attribute value is null.
|
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildArray, addChildAt, addChildNode, addChildNodeArray, addChildNodeAt, addChildNodeInBatch, addComment, addFromRelationship, addNamespace, addNamespace, addPropertyChangeListener, addToRelationship, changeBase, checkBase, childExists, clone, clone, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getId, getInScopeNamespaces, getLang, getLastChildNoComment, getNamePool, getNamespaceBinding, getNamespaceURI, getNextSiblingNoComment, getNodeName, getNthElement, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParentXBRL, getPrefix, getPrefixes, getPropertyChangeListeners, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPath, getXPathFromXPointer, getXPathNamespaceContext, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerXPath2Scheme, initialise, internalToString, isAttribute, isChangeHashEnabled, isDead, isEmpty, isHashDependsOnAtribute, isNamespaceDefined, isNil, moveNamespacesUp, objEquals, objHashCode, reindex, removeChild, removeChildNode, removeFromRelationship, removeNamespace, removePropertyChangeListener, removeToRelationship, replace, replaceChild, replaceStringValue, resetElements, resolveHRef, s_equal2_xp2, s_equal2_xp2, s_equal2, s_equal2, s_equal2, s_equal2, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setRawParentXBRL, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, valueEquals, xEqual
addAttribute, addNamespace, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getRoot, getSchemaType, getSystemId, getTypeAnnotation, getURIForPrefix, gsetAttributeCollection, isId, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, setLocation, setNameCode, setNamespaceList, setSystemId, setTypeAnnotation
atomize, compareOrder, comparePosition, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getSuccessorElement, getURI, head, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, replace
public static final javax.xml.namespace.QName elementDocNode
public static final javax.xml.namespace.QName name
public static final javax.xml.namespace.QName type
public static final javax.xml.namespace.QName substitutionGroup
public static final javax.xml.namespace.QName nillable
public static final javax.xml.namespace.QName abstract_
public static final int UNDEFINED
public static final int EMPTY
public static final int ALL
public static final int EXTENSION
public static final int RESTRICTION
public static final int SUBSTITUTION
public static final javax.xml.namespace.QName block
public static final javax.xml.namespace.QName fixed
public static final javax.xml.namespace.QName final_
public static final XMLElementDefinition nullConcept
public XMLElementDefinition(XMLFragment node)
node
- the node info with the element definitionpublic XMLElementDefinition(XBRLTaxonomy parent, XMLFragment node)
parent
- Parent taxonomynode
- the node info with the element definitionpublic XMLElementDefinition(XBRLTaxonomy parent, java.lang.String name, XBRLXSDTypeDefinition type, javax.xml.namespace.QName substitutionGroup, java.lang.Boolean _abstract, java.lang.Boolean nillable, int block, int _final, java.lang.String fixed)
parent
- the parent taxonomy (schema)name
- String the new element name, cannot be nulltype
- XBRLXSDTypeDefinition the type definition for this new element, may be nullsubstitutionGroup
- QName the substitution group, may also be null_abstract
- Boolean true if the element definition is abstractnillable
- Boolean true if the xsi:nill is permitted null here means nillable is false.block
- int indicating the block value (see XSD Infoset) {UNDEFINED | EMPTY | ALL | EXTENSION | RESTRICTION | SUBSTITUTION}_final
- int indicating final for (see XSD Infoset) {UNDEFINED | EMPTY | ALL | EXTENSION | RESTRICTION | SUBSTITUTION}fixed
- String fixed value, can be nullpublic XMLElementDefinition(DTSContainer dts)
dts
- the dtspublic void setElementDeclaration(com.saxonica.ee.schema.ElementDecl sc)
sc
- the new element declarationpublic XBRLXSDTypeDefinition setType(XBRLXSDTypeDefinition type)
type
- new XBRLXSDTypeDefinition or nullpublic void clear() throws java.lang.Throwable
clear
in class XMLFragment
java.lang.Throwable
- the throwablepublic javax.xml.namespace.QName getQName()
The QName property is a QName with taxonomy targetNamespace and local name equal to the element declaration name
There is no setQName method in this object. Use setName and/or setParent instead
public XBRLTaxonomy getParentDocument()
getParentDocument
in class XMLFragment
public java.lang.String getName()
public java.lang.String setName(java.lang.String newName)
newName
- as string or null to reset the namepublic XBRLXSDTypeDefinition getType()
public com.saxonica.ee.validate.ContentValidator getContentValidator()
@Deprecated public com.saxonica.ee.validate.SimpleContentValidator getSimpleContentValidator()
getContentValidator()
public void setId(java.lang.String id) throws XBRLInconsistentDTSException
setId
in class XMLFragment
id
- the new idXBRLInconsistentDTSException
- the XBRL inconsistent dts exceptionpublic javax.xml.namespace.QName getSubstitutionGroup()
public javax.xml.namespace.QName setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup)
substitutionGroup
- QName to set, null to resetpublic boolean getNillable()
xsi:nil="true"
then this method returns true.XMLFragment.isNil()
public java.lang.Boolean setNillable(java.lang.Boolean nillable)
nillable
- the nillable@Deprecated public boolean getAbstract()
Deprecated. Use isAbstract()
instead.
public boolean isAbstract()
public java.lang.Boolean setAbstract(java.lang.Boolean abstract_)
abstract_
- the abstract_public java.lang.String getFixed()
public java.lang.String setFixed(java.lang.String value)
value
- new value or null to resetpublic int getFinal()
public java.lang.Integer setFinal(java.lang.Integer newValue)
newValue
- the new value of the final attribute. See constants defined in this objectpublic static int getFinal(java.lang.String str)
str
- the strpublic static java.lang.String getFinal(int _final)
_final
- intpublic int getBlock()
public java.lang.Integer setBlock(java.lang.Integer newValue)
newValue
- Integer constant or null to resetpublic static int getBlock(java.lang.String str)
str
- any of "#all" "extension" "restriction" "substitution"public static java.lang.String getBlock(int block)
block
- integerpublic java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes
in class XMLFragment
XMLFragment.getAllAttributes()
public java.util.Iterator<XMLFragment> getChildrenType()
public XMLElementDefinition generateNode() throws XBRLSerializationException
generateNode
in class XMLFragment
XBRLSerializationException
- the XBRL serialization exceptionpublic int hashCode()
hashCode
in interface net.sf.saxon.om.NodeInfo
hashCode
in class XMLFragment
public boolean equals(java.lang.Object other)
equals
in interface net.sf.saxon.om.NodeInfo
equals
in class XMLFragment
other
- the otherpublic net.sf.saxon.value.QNameValue getValueKey()
getValueKey
in interface XBRLValueKey
public java.util.Collection<? extends XMLElementDefinition> getInSubstitutionGroup()
public java.util.Collection<XMLElementDefinition> getSubstitutionGroupHierarchy()
public boolean isInSubstitutionGroup(XMLElementDefinition element)
Returns true if the element received as a parameter is in this element's substitution group. This means, the parameter element can substitute this element
element
- the elementpublic java.lang.String getFriendlyName()
getFriendlyName
in class XMLFragment
public java.lang.String getFriendlyName(int modifiers, LabelsProvider lp)
getFriendlyName
in class XMLFragment
modifiers
- the modifierslp
- the lppublic boolean isTotal(XBRLRoleType role)
role
- the role the calculation arc will be search on. if null, the relationship will be scanned on any role in the DTSpublic final boolean hasChildNodes()
hasChildNodes
in interface net.sf.saxon.om.NodeInfo
hasChildNodes
in class net.sf.saxon.tree.linked.NodeImpl
public final int getNumberOfChildren()
public final net.sf.saxon.tree.linked.NodeImpl getFirstChild()
getFirstChild
in interface net.sf.saxon.tree.util.SteppingNode<net.sf.saxon.tree.linked.NodeImpl>
getFirstChild
in class net.sf.saxon.tree.linked.NodeImpl
public final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild
in class net.sf.saxon.tree.linked.NodeImpl
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa