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_ENDConstant to refer to the END date or datetime of this period. | 
| static int | DATE_INSTANTConstant to refer to the INSTANT date or datetime of this period. | 
| static int | DATE_STARTConstant to refer to the START date or datetime of this period. | 
| static javax.xml.namespace.QName | periodNodeConstant 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, xEqualaddAttribute, 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, setTypeAnnotationatomize, 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, replacetoStringpublic 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()
XMLFragmentclone in interface MapperPeriodclone in class XMLFragmentpublic abstract MapperPeriodBase clone(DTSContainer dts)
XMLFragmentclone in interface MapperPeriodclone in class XMLFragmentdts - the new dtspublic XBRLItem.PeriodType getPeriodType()
getPeriodType in interface MapperPeriodpublic boolean isInstant()
isInstant in interface MapperPeriodpublic boolean isDuration()
isDuration in interface MapperPeriodpublic boolean isMacroPeriod()
isMacroPeriod in interface MapperPeriodpublic boolean isForever()
isForever in interface MapperPeriodpublic java.lang.String getDate(int type,
                                boolean operate)
getDate in interface MapperPeriodtype - 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 MapperPeriodtype - code indicating what to obtain. DATE_INSTANT, DATE_START or DATE_ENDoperate - the operatepublic java.util.GregorianCalendar getGregorianCalendarDate(int type)
getGregorianCalendarDate in interface MapperPeriodtype - one of the constants belowpublic java.util.GregorianCalendar getRawGregorianCalendarDate(int type)
getRawGregorianCalendarDate in interface MapperPeriodtype - one of the constants belowpublic void setDate(int type,
                    java.lang.String strDate)
             throws XBRLValidationException
setDate in interface MapperPeriodtype - 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 MapperPeriodcode - this is the field, DATE_END, DATE_INSTANT, DATE_STARTpublic java.lang.String toString2()
public java.util.Iterator<XMLFragment> getElements()
XMLFragmentgetElements in interface MapperPeriodgetElements in class XMLFragmentpublic XBRLPeriod getXBRLPeriod()
getXBRLPeriod in interface MapperPeriodpublic boolean equals(java.lang.Object other)
XMLFragmentequals in interface MapperPeriodequals in interface net.sf.saxon.om.NodeInfoequals in class XMLFragmentother - the otherpublic int hashCode()
XMLFragmenthashCode in interface MapperPeriodhashCode in interface net.sf.saxon.om.NodeInfohashCode in class XMLFragmentpublic final boolean hasChildNodes()
hasChildNodes in interface net.sf.saxon.om.NodeInfohasChildNodes in class net.sf.saxon.tree.linked.NodeImplpublic 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.NodeImplpublic final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild in class net.sf.saxon.tree.linked.NodeImplCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa