|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.taxonomy.XMLElementDefinition
public class XMLElementDefinition
Common elements to both Tuples and Items
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
abstract_
The [Abstract] property |
static int |
ALL
|
static javax.xml.namespace.QName |
block
The [Block] property |
static int |
EMPTY
|
static int |
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
|
static int |
RESTRICTION
|
static int |
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
A locator element pointing to this concept |
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Constructor Summary | |
|---|---|
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,
net.sf.saxon.s9api.XdmNode node)
Constructor used when the concept comes from a NodeInfo |
|
XMLElementDefinition(XMLElementDefinition other)
Copy constructor |
|
| Method Summary | |
|---|---|
void |
clear()
Frees-up used memory This method should not be invoqued on live objects in the DTS. |
boolean |
equals(java.lang.Object other)
Sets a new XPathFunctionResolver for this object |
XBRLLocator |
generateLocatorToNode(boolean relativize,
java.net.URI base)
|
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Serializes to a jdom Element the representation of the properties of this Information Item This method should be called from classes derived from this class |
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> |
getChildren()
Access to the [children] property |
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. |
java.lang.String |
getFixed()
Access to the [Fixed] property |
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form that users can understand. |
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Returns a string description that represents the element content in a form that users can understand. |
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 |
java.lang.String |
getName()
Access to the [Name] property |
boolean |
getNillable()
Return the value of the [nillable] property |
XBRLTaxonomy |
getParent()
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.validate.SimpleContentValidator |
getSimpleContentValidator()
Returns a SimpleContentValidator instance that is able to validate the element content. |
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()
|
int |
hashCode()
|
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. |
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 |
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. |
void |
setParent(XBRLTaxonomy newParent)
Sets the [Parent] property of this concept |
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 |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ihr.xbrl.om.exLinks.XBRLRelationshipPoint |
|---|
addFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationship |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public XMLElementDefinition(XBRLTaxonomy parent,
net.sf.saxon.s9api.XdmNode node)
parent - Parent taxonomynode - the node info with the element definition
XBRLValidationException
public 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 null
XBRLValidationExceptionpublic XMLElementDefinition(XMLElementDefinition other)
other - | Method Detail |
|---|
public XBRLXSDTypeDefinition setType(XBRLXSDTypeDefinition type)
type - new XBRLXSDTypeDefinition or null
public void clear()
throws java.lang.Throwable
XMLFragmentThis method should not be invoqued on live objects in the DTS. It is automatically invoqued by the API when an object is no longer used and referenced by other objects. It is save not to call it directly.
clear in class XMLFragmentjava.lang.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 getParent()
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic void setParent(XBRLTaxonomy newParent)
public java.lang.String getName()
public java.lang.String setName(java.lang.String newName)
newName - as string or null to reset the name
public XBRLXSDTypeDefinition getType()
public com.saxonica.validate.SimpleContentValidator getSimpleContentValidator()
public void setId(java.lang.String id)
throws XBRLInconsistentDTSException
setId in class XMLFragmentid - the new ID
XBRLValidationException - if the id is used by another item definition in the DTS
XBRLInconsistentDTSException - if the id is not lexicographically validpublic javax.xml.namespace.QName getSubstitutionGroup()
public javax.xml.namespace.QName setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup)
substitutionGroup - QName to set, null to reset
public boolean getNillable()
public java.lang.Boolean setNillable(java.lang.Boolean nillable)
nillable -
@Deprecated public boolean getAbstract()
Deprecated. Use isAbstract() instead.
public boolean isAbstract()
public java.lang.Boolean setAbstract(java.lang.Boolean abstract_)
abstract_ -
public java.lang.String getFixed()
public java.lang.String setFixed(java.lang.String value)
value - new value or null to reset
public int getFinal()
public java.lang.Integer setFinal(java.lang.Integer newValue)
newValue - the new value of the final attribute. See constants defined in this object
public static int getFinal(java.lang.String str)
str -
public static java.lang.String getFinal(int _final)
_final - int
public int getBlock()
public java.lang.Integer setBlock(java.lang.Integer newValue)
newValue - Integer constant or null to reset
public static int getBlock(java.lang.String str)
str - any of "#all" "extension" "restriction" "substitution"
public static java.lang.String getBlock(int block)
block - integer
public java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XMLFragmentpublic java.util.Iterator<XMLFragment> getChildren()
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode in class XMLFragmentrelativize - boolean indicating if URIs should be relativized to the base URI (see next argument)base - the URI to which some attributes of this object should be relativided
XBRLSerializationException
public XBRLLocator generateLocatorToNode(boolean relativize,
java.net.URI base)
throws java.net.URISyntaxException
base - relativize -
java.net.URISyntaxExceptionpublic int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object other)
XMLFragment
equals in class XMLFragmentpublic net.sf.saxon.value.QNameValue getValueKey()
getValueKey in interface XBRLValueKeypublic 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 -
public java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragment
public java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XMLFragmentThis function accepts flags that are defined as constants in XMLFragment in order to modify the output.
getFriendlyName in class XMLFragmentmodifiers - integer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||