public class MapperFacts extends XMLFragment implements HasMapperFacts
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
mapperFactsQName
The Constant mapperFactsQName.
|
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 |
---|
MapperFacts(DTSContainer dts,
MapperBase mapperBase)
Instantiates a new mapper xbrlMap/instance/facts node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildToIndex(MapperFact e)
Called during the SAX parse process to add child to factsContent
|
void |
addFact(MapperFact newMapperFact)
Adds a MapperFact node.
|
void |
addFactAt(MapperFact newMapperFact,
int pos)
Adds a MapperFact node at the given pos.
|
void |
clear()
Frees-up used memory
This method should not be invoqued on live objects in the DTS.
|
void |
delFact(MapperFact mapperFact)
Deletes a MapperFact node.
|
java.util.Iterator<MapperFact> |
getChildrenFacts()
Access to an iterator over the children facts of this object.
|
int |
getChildrenFactsCount()
Returns the number of facts.
|
MapperFact |
getFactFromMapIdentifier(java.lang.String mapIdentifier)
Gets the fact from map identifier.
|
java.util.List<MapperFact> |
getFactsList()
Access to all mapperFacts.
|
java.util.Map<java.lang.String,MapperFact> |
getFactsMap()
Gets the facts map.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
java.util.Set<java.lang.String> |
getMapIdentifiersSet()
Gets the map identifiers set.
|
HasMapperFacts |
getMapperParent()
Access to the parent element of a Fact.
|
int |
getNumberOfChildren() |
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
MapperFact |
processAddNodeFact(ClsDataForNewNode c,
java.util.Map<java.lang.String,java.lang.String> contextMap,
java.util.Map<java.lang.String,java.lang.String> unitMap)
Process add node fact.
|
void |
recursiveReadFacts(net.sf.saxon.s9api.XdmValue lstFacts,
java.util.List<MapperFact> facts,
HasMapperFacts mapperParent,
java.util.List<ClsDataForNewNode> vDuplicateIdentifierNodes,
java.util.Map<java.lang.String,java.lang.String> contextMap,
java.util.Map<java.lang.String,java.lang.String> unitMap)
Recursive read facts.
|
void |
registerFact(MapperFact mapperFact)
Registers a new fact has been added to the container.
|
void |
unregisterFact(MapperFact mapperFact)
Same as
HasMapperFacts.registerFact(MapperFact) but in this case for removing the information stored. |
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, clone, clone, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equals, 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, getElements, 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
equals
public static final javax.xml.namespace.QName mapperFactsQName
public MapperFacts(DTSContainer dts, MapperBase mapperBase)
dts
- the DTSmapperBase
- the mapper basepublic void clear() throws java.lang.Throwable
XMLFragment
This 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 XMLFragment
java.lang.Throwable
- the throwablepublic int hashCode()
XMLFragment
hashCode
in interface HasMapperFacts
hashCode
in interface net.sf.saxon.om.NodeInfo
hashCode
in class XMLFragment
public void addFact(MapperFact newMapperFact) throws MapConfigurationFileException
addFact
in interface HasMapperFacts
newMapperFact
- the new mapper factMapConfigurationFileException
- the map configuration file exceptionpublic void addFactAt(MapperFact newMapperFact, int pos) throws MapConfigurationFileException
addFactAt
in interface HasMapperFacts
newMapperFact
- the new mapper factpos
- the posMapConfigurationFileException
- the map configuration file exceptionpublic void delFact(MapperFact mapperFact)
delFact
in interface HasMapperFacts
mapperFact
- the mapper factpublic java.util.Iterator<MapperFact> getChildrenFacts()
HasMapperFacts
getChildrenFacts
in interface HasMapperFacts
public int getChildrenFactsCount()
HasMapperFacts
getChildrenFactsCount
in interface HasMapperFacts
public HasMapperFacts getMapperParent()
HasMapperFacts
getMapperParent
in interface HasMapperFacts
public void registerFact(MapperFact mapperFact) throws MapConfigurationFileException
HasMapperFacts
registerFact
in interface HasMapperFacts
mapperFact
- the factMapConfigurationFileException
- the map configuration file exceptionpublic void unregisterFact(MapperFact mapperFact)
HasMapperFacts
HasMapperFacts.registerFact(MapperFact)
but in this case for removing the information stored.unregisterFact
in interface HasMapperFacts
mapperFact
- the factpublic java.util.List<MapperFact> getFactsList()
public java.util.Set<java.lang.String> getMapIdentifiersSet()
public java.util.Map<java.lang.String,MapperFact> getFactsMap()
public MapperFact getFactFromMapIdentifier(java.lang.String mapIdentifier)
mapIdentifier
- the map identifierpublic void recursiveReadFacts(net.sf.saxon.s9api.XdmValue lstFacts, java.util.List<MapperFact> facts, HasMapperFacts mapperParent, java.util.List<ClsDataForNewNode> vDuplicateIdentifierNodes, java.util.Map<java.lang.String,java.lang.String> contextMap, java.util.Map<java.lang.String,java.lang.String> unitMap) throws MapConfigurationFileException
lstFacts
- the lst factsfacts
- the factsmapperParent
- the parentvDuplicateIdentifierNodes
- the v duplicate identifier nodescontextMap
- map old context ids with new context idsMapConfigurationFileException
- the map configuration file exceptionpublic MapperFact processAddNodeFact(ClsDataForNewNode c, java.util.Map<java.lang.String,java.lang.String> contextMap, java.util.Map<java.lang.String,java.lang.String> unitMap) throws MapConfigurationFileException
c
- the ccontextMap
- the context mapMapConfigurationFileException
- the map configuration file exceptionpublic void addChildToIndex(MapperFact e)
HasMapperFacts
addChildToIndex
in interface HasMapperFacts
e
- 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