public abstract class MapperContextBase extends XMLFragment implements MapperContext
| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
contextNode
The QName of the XML element that is the container of context information.
|
CONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, HIDE_COMMON_ACCURACY, idQName, NO_POSITION, OrderComparator, OrderComparator2, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER| Constructor and Description |
|---|
MapperContextBase(DTSContainer dts,
MapperBase parent,
net.sf.saxon.s9api.XdmNode node)
Instantiates a new mapper context base.
|
MapperContextBase(MapperContextBase other)
Creates a new context as a copy or clone of the context supplied as a parameter
The new context will have null as parent instance.
|
MapperContextBase(XBRLContext ctx,
MapperBase parent)
Creates a new MapperContext from the content of an XBRLContext.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MapperContextBase |
clone()
Clone.
|
boolean |
equals(java.lang.Object other)
Evaluates c-equality of two contexts according to the XBRL 2.1 spec
The context IDs may be different and are not compared
|
void |
fixUpSegmentAndScenario()
Fix up segment and scenario.
|
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
|
XBRLEntity |
getEntity()
Gets the entity.
|
MapperBase |
getMapper()
Gets the mapper.
|
MapperPeriod |
getPeriod()
Gets the period.
|
XBRLScenario |
getScenario()
Gets the scenario.
|
XBRLContext |
getXBRLContext()
Gets the XBRL context.
|
int |
hashCode()
Hash code.
|
void |
setPeriod(MapperPeriod period)
Sets the new period for this context.
|
void |
setScenario(XBRLScenario scenario)
Sets the new scenario for this context.
|
addAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clear, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getElementsHashCode, getFragment, getFriendlyName, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParent, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticContext, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, isXdmDocumentAttached, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, removeXMLChild, resetElements, resetHash, resolve_equal2, resolveHRef, resolveHRef, s_equal2, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setId, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualgetContainer, getId, getOrGenerateId, setIdpublic static final javax.xml.namespace.QName contextNode
public MapperContextBase(XBRLContext ctx, MapperBase parent)
ctx - the ctxparent - the parentpublic MapperContextBase(DTSContainer dts, MapperBase parent, net.sf.saxon.s9api.XdmNode node)
dts - the DTSparent - the parent mappernode - the source nodepublic MapperContextBase(MapperContextBase other)
other - the context to clonepublic abstract MapperContextBase clone()
MapperContextclone in interface MapperContextclone in class XMLFragmentpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode in interface MapperContextgenerateNode 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 relatividedXBRLSerializationException - the XBRL serialization exceptionpublic int hashCode()
MapperContexthashCode in interface MapperContexthashCode in class XMLFragmentpublic boolean equals(java.lang.Object other)
equals in interface MapperContextequals in class XMLFragmentother - the otherpublic XBRLEntity getEntity()
getEntity in interface MapperContextpublic XBRLContext getXBRLContext()
getXBRLContext in interface MapperContextpublic MapperPeriod getPeriod()
getPeriod in interface MapperContextpublic XBRLScenario getScenario()
getScenario in interface MapperContextpublic void setScenario(XBRLScenario scenario)
setScenario in interface MapperContextscenario - the new scenariopublic void setPeriod(MapperPeriod period)
setPeriod in interface MapperContextperiod - the new periodpublic MapperBase getMapper()
getMapper in interface MapperContextpublic void fixUpSegmentAndScenario()
MapperContextfixUpSegmentAndScenario in interface MapperContext