public abstract class MapperPeriodBase extends XMLFragment implements MapperPeriod
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
Modifier and Type | Field and Description |
---|---|
static int |
DATE_END
Constant to refer to the END date or datetime of this period.
|
static int |
DATE_INSTANT
Constant to refer to the INSTANT date or datetime of this period.
|
static int |
DATE_START
Constant to refer to the START date or datetime of this period.
|
static javax.xml.namespace.QName |
periodNode
Constant xbrli:period used during serialization of periods.
|
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 |
---|
MapperPeriodBase(DTSContainer dts)
Instantiates a new mapper period base.
|
MapperPeriodBase(XBRLPeriod period)
Instantiates a new mapper period base.
|
Modifier and Type | Method and Description |
---|---|
abstract MapperPeriodBase |
clone()
Clone.
|
abstract MapperPeriodBase |
clone(DTSContainer dts)
Clone.
|
boolean |
equals(java.lang.Object other)
Equals.
|
java.lang.String |
getDate(int type,
boolean operate)
String representation of the date in the period. adjusted according to XBRL specification rules.
|
java.util.Iterator<XMLFragment> |
getElements()
For complex type resources this returns an iterator with all children XML fragments
This method may be overwriten by other classes in the hierarchy.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
java.util.GregorianCalendar |
getGregorianCalendarDate(int type)
Returns the value of the date for the type requested.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
XBRLItem.PeriodType |
getPeriodType()
Returns XBRLItem.DURATION or XBRLItem.INSTANT depending on the context period information.
|
java.lang.String |
getRawDate(int type,
boolean operate)
String representation of the date in the period.
|
java.util.Date |
getRawDateUtil(int code)
Returns the raw date (the one specified by syntax) in the context.
|
java.util.GregorianCalendar |
getRawGregorianCalendarDate(int type)
Returns the value of the date for the type requested.
|
XBRLPeriod |
getXBRLPeriod()
Gets the XBRL period.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
boolean |
isDuration()
Checks if is duration.
|
boolean |
isForever()
Checks if is forever.
|
boolean |
isInstant()
Checks if is instant.
|
boolean |
isMacroPeriod()
Returns true only if the period content is a string of text that can be evaluated as a macro.
|
void |
setDate(int type,
java.lang.String strDate)
Sets the value of the specified field.
|
java.lang.String |
toString2() |
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, clear, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generateNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributes, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getFirstChildNoComment, getFragment, getFriendlyName, getFriendlyName, 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, getParentDocument, 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, setId, 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
toString
public static final javax.xml.namespace.QName periodNode
public static final int DATE_INSTANT
public static final int DATE_START
public static final int DATE_END
public MapperPeriodBase(DTSContainer dts)
dts
- the dtspublic MapperPeriodBase(XBRLPeriod period)
period
- the periodpublic abstract MapperPeriodBase clone()
XMLFragment
clone
in interface MapperPeriod
clone
in class XMLFragment
public abstract MapperPeriodBase clone(DTSContainer dts)
XMLFragment
clone
in interface MapperPeriod
clone
in class XMLFragment
dts
- the new dtspublic XBRLItem.PeriodType getPeriodType()
getPeriodType
in interface MapperPeriod
public boolean isInstant()
isInstant
in interface MapperPeriod
public boolean isDuration()
isDuration
in interface MapperPeriod
public boolean isMacroPeriod()
isMacroPeriod
in interface MapperPeriod
public boolean isForever()
isForever
in interface MapperPeriod
public java.lang.String getDate(int type, boolean operate)
getDate
in interface MapperPeriod
type
- code indicating what to obtain. DATE_INSTANT, DATE_START or DATE_ENDoperate
- the operatepublic java.lang.String getRawDate(int type, boolean operate)
getRawDate
in interface MapperPeriod
type
- code indicating what to obtain. DATE_INSTANT, DATE_START or DATE_ENDoperate
- the operatepublic java.util.GregorianCalendar getGregorianCalendarDate(int type)
getGregorianCalendarDate
in interface MapperPeriod
type
- one of the constants belowpublic java.util.GregorianCalendar getRawGregorianCalendarDate(int type)
getRawGregorianCalendarDate
in interface MapperPeriod
type
- one of the constants belowpublic void setDate(int type, java.lang.String strDate) throws XBRLValidationException
setDate
in interface MapperPeriod
type
- this is the field, DATE_END, DATE_INSTANT, DATE_STARTstrDate
- iso8601 date stringXBRLValidationException
- the XBRL validation exceptionpublic java.util.Date getRawDateUtil(int code)
getRawDateUtil
in interface MapperPeriod
code
- this is the field, DATE_END, DATE_INSTANT, DATE_STARTpublic java.lang.String toString2()
public java.util.Iterator<XMLFragment> getElements()
XMLFragment
getElements
in interface MapperPeriod
getElements
in class XMLFragment
public XBRLPeriod getXBRLPeriod()
getXBRLPeriod
in interface MapperPeriod
public boolean equals(java.lang.Object other)
XMLFragment
equals
in interface MapperPeriod
equals
in interface net.sf.saxon.om.NodeInfo
equals
in class XMLFragment
other
- the otherpublic int hashCode()
XMLFragment
hashCode
in interface MapperPeriod
hashCode
in interface net.sf.saxon.om.NodeInfo
hashCode
in class XMLFragment
public 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