|
||||||||||
| 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.mapper.instance.MapperPeriodBase
public abstract class MapperPeriodBase
| Field Summary | |
|---|---|
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 |
| 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 | |
|---|---|
MapperPeriodBase(DTSContainer dts)
|
|
MapperPeriodBase(DTSContainer dts,
net.sf.saxon.s9api.XdmNode node)
|
|
MapperPeriodBase(MapperPeriodBase other)
Creates an new period as a copy of the current period. |
|
MapperPeriodBase(XBRLPeriod period)
|
|
| Method Summary | |
|---|---|
abstract MapperPeriodBase |
clone()
|
boolean |
equals(java.lang.Object other)
Sets a new XPathFunctionResolver for this object |
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 |
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 Tthis method may be overwriten by other classes in the hierarchy |
java.util.GregorianCalendar |
getGregorianCalendarDate(int type)
Returns the value of the date for the type requested. |
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()
|
int |
hashCode()
|
boolean |
isDuration()
|
boolean |
isForever()
|
boolean |
isInstant()
|
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 |
toString()
Returns the XML representation of this object as an String |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public MapperPeriodBase(DTSContainer dts)
dts - node -
public MapperPeriodBase(DTSContainer dts,
net.sf.saxon.s9api.XdmNode node)
dts - node - public MapperPeriodBase(MapperPeriodBase other)
other - XBRLPeriodpublic MapperPeriodBase(XBRLPeriod period)
period - | Method Detail |
|---|
public abstract MapperPeriodBase clone()
clone in interface MapperPeriodclone in class XMLFragment
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode in interface MapperPeriodgenerateNode 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
XBRLSerializationExceptionpublic 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 MapperPeriod
public java.lang.String getDate(int type,
boolean operate)
getDate in interface MapperPeriodtype - code indicating what to obtain. DATE_INSTANT, DATE_START or DATE_END
public java.lang.String getRawDate(int type,
boolean operate)
getRawDate in interface MapperPeriodtype - code indicating what to obtain. DATE_INSTANT, DATE_START or DATE_END
public java.util.GregorianCalendar getGregorianCalendarDate(int type)
getGregorianCalendarDate in interface MapperPeriodtype - one of the constants below
public java.util.GregorianCalendar getRawGregorianCalendarDate(int type)
getRawGregorianCalendarDate in interface MapperPeriodtype - one of the constants below
public 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 string
XBRLValidationExceptionpublic java.util.Date getRawDateUtil(int code)
getRawDateUtil in interface MapperPeriodcode - this is the field, DATE_END, DATE_INSTANT, DATE_START
public java.lang.String toString()
XMLFragment
toString in interface MapperPeriodtoString in class XMLFragmentpublic java.util.Iterator<XMLFragment> getElements()
XMLFragment
getElements in interface MapperPeriodgetElements in class XMLFragmentpublic XBRLPeriod getXBRLPeriod()
getXBRLPeriod in interface MapperPeriodpublic boolean equals(java.lang.Object other)
XMLFragment
equals in interface MapperPeriodequals in class XMLFragmentpublic int hashCode()
hashCode in interface MapperPeriodhashCode in class XMLFragment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||