public class MapperFact extends XMLFragment implements HasMapperFacts
Modifier and Type | Class and Description |
---|---|
static class |
MapperFact.Type
The Enum Type.
|
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
Modifier and Type | Field and Description |
---|---|
static int |
ALL
The Constant ALL.
|
static javax.xml.namespace.QName |
groupDocNode |
static javax.xml.namespace.QName |
itemDocNode |
static int |
PREV
The Constant PREV.
|
static int |
SINGLE
The Constant SINGLE.
|
static javax.xml.namespace.QName |
tupleDocNode |
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 |
---|
MapperFact(MapperBase mapperBase)
Instantiates a new mapper xbrlMap/instance/facts/fact node.
|
MapperFact(MapperBase mapperBase,
MapperFact.Type type)
Instantiates a new mapper xbrlMap/instance/facts/fact node.
|
MapperFact(MapperBase mapperBase,
MapperFact.Type type,
HasMapperFacts parent,
XBRLDataSource source,
MapperContext context,
java.lang.String mapIdentifier,
javax.xml.namespace.QName concept,
XBRLUnit unit,
int multi)
Instantiates a new fact.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildToIndex(MapperFact e)
Called during the SAX parse process to add child to factsContent
|
void |
addFact(MapperFact newFact)
Adds a new Fact to the end of the Facts container.
|
void |
addFactArray(MapperFact[] newFacts)
Adds a set of new facts to the end of this group fact.
|
void |
addFactAt(MapperFact newFact,
int pos)
Adds a new Fact at the position indicated by pos.
|
void |
delFact(MapperFact fact)
Removes a fact from the container.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.Iterator<MapperFact> |
getChildrenFacts()
Access to an iterator over the children facts of this object.
|
int |
getChildrenFactsCount()
Returns the number of facts.
|
javax.xml.namespace.QName |
getConcept()
The concept definition in the taxonomy that corresponds to this fact in the
template.
|
XMLElementDefinition |
getConceptElement()
Gets the concept definition QName.
|
MapperContext |
getContext()
Gets the MapperContext node.
|
java.lang.String |
getContextRef()
Gets the contextRef property.
|
java.util.Collection<XBRLFact> |
getFacts(XBRLFactsList cf,
int index,
XBRLValidationReport mapReport)
Gets the facts.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
java.lang.String |
getMapIdentifier()
Gets the mapIdentifier property.
|
HasMapperFacts |
getMapperParent()
Access to the parent element of a Fact.
|
int |
getMulti()
Gets the multi property.
|
int |
getNumberOfChildren() |
int |
getNumberOfValues()
Gets the number of source values.
|
MapperSection |
getSection()
Gets the MapperSection node.
|
java.lang.String |
getSectionRef()
Gets the sectionRef property.
|
XBRLDataSource |
getSource()
Gets the XBRLDataSource.
|
java.lang.String |
getSourceRef()
Gets the sourceRef property.
|
net.sf.saxon.s9api.XdmValue |
getSubFacts()
Gets child facts.
|
MapperFact.Type |
getType()
Gets the type property.
|
XBRLUnit |
getUnit()
Gets the unit.
|
java.lang.String |
getUnitRef()
Gets the unitRef property.
|
ListMapperFacts |
getVFacts()
Gets the v facts.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
void |
registerFact(MapperFact fact)
Registers a new fact has been added to the container.
|
void |
setConcept(javax.xml.namespace.QName concept)
Sets the concept.
|
void |
setConcept(XMLElementDefinition concept)
Sets the concept definition in the taxonomy.
|
void |
setContext(MapperContext newMapperContext)
Replaces context by a new context.
|
void |
setMapIdentifier(java.lang.String mapIdentifier)
Sets the mapIdentifier property.
|
void |
setMapperParent(HasMapperFacts mapperParent)
Sets the mapper parent node.
|
void |
setMapperParent(MapperBase mapperBase)
Sets the mapper parent node.
|
void |
setMulti(int multi)
Sets the multi property.
|
void |
setSection(MapperSection mapperSection)
Replaces the MapperSection node by a new one.
|
void |
setSource(XBRLDataSource source)
Sets the XBRLDataSource.
|
void |
setUnit(XBRLUnit unit)
Replaces unit by a new unit.
|
void |
unregisterFact(MapperFact fact)
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, clear, clone, clone, 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, 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
public static final int ALL
public static final int SINGLE
public static final int PREV
public static final javax.xml.namespace.QName itemDocNode
public static final javax.xml.namespace.QName tupleDocNode
public static final javax.xml.namespace.QName groupDocNode
public MapperFact(MapperBase mapperBase)
mapperBase
- the MapperBasepublic MapperFact(MapperBase mapperBase, MapperFact.Type type)
mapperBase
- the MapperBasetype
- the MapperFact.Type typepublic MapperFact(MapperBase mapperBase, MapperFact.Type type, HasMapperFacts parent, XBRLDataSource source, MapperContext context, java.lang.String mapIdentifier, javax.xml.namespace.QName concept, XBRLUnit unit, int multi)
mapperBase
- the mapper basetype
- the typeparent
- the parentsource
- the sourcecontext
- the contextmapIdentifier
- the map identifierconcept
- the conceptunit
- the unitmulti
- the multipublic java.lang.String getMapIdentifier()
public void setMapIdentifier(java.lang.String mapIdentifier)
mapIdentifier
- the new map identifierpublic MapperContext getContext()
public java.lang.String getContextRef()
public void setContext(MapperContext newMapperContext)
newMapperContext
- the new contextpublic XBRLUnit getUnit()
public java.lang.String getUnitRef()
public void setUnit(XBRLUnit unit)
unit
- the new unitpublic MapperSection getSection()
public java.lang.String getSectionRef()
public void setSection(MapperSection mapperSection)
mapperSection
- MapperSectionpublic java.lang.String getSourceRef()
public XBRLDataSource getSource()
public void setSource(XBRLDataSource source) throws MapConfigurationFileException
source
- the new sourceMapConfigurationFileException
- the map configuration file exceptionpublic int getMulti()
public int getNumberOfValues()
public void setMulti(int multi)
multi
- the new multipublic javax.xml.namespace.QName getConcept()
public void setConcept(XMLElementDefinition concept)
concept
- XMLElementDefinitionpublic XMLElementDefinition getConceptElement()
public void setConcept(javax.xml.namespace.QName concept)
concept
- the new conceptpublic MapperFact.Type getType()
public net.sf.saxon.s9api.XdmValue getSubFacts()
public java.util.Collection<XBRLFact> getFacts(XBRLFactsList cf, int index, XBRLValidationReport mapReport) throws MapException
cf
- the cfindex
- the indexmapReport
- the optional mapper reportMapException
- the map exceptionpublic int hashCode()
XMLFragment
hashCode
in interface HasMapperFacts
hashCode
in interface net.sf.saxon.om.NodeInfo
hashCode
in class XMLFragment
public boolean equals(java.lang.Object obj)
XMLFragment
equals
in interface HasMapperFacts
equals
in interface net.sf.saxon.om.NodeInfo
equals
in class XMLFragment
obj
- the otherpublic ListMapperFacts getVFacts()
public 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 setMapperParent(HasMapperFacts mapperParent)
mapperParent
- the new mapper parentpublic void setMapperParent(MapperBase mapperBase)
mapperBase
- the new mapper parentpublic void addFact(MapperFact newFact) throws MapConfigurationFileException
HasMapperFacts
This method does not updates the taxonomy URLs.
addFact
in interface HasMapperFacts
newFact
- the new fact to be addedMapConfigurationFileException
- the map configuration file exceptionpublic void addChildToIndex(MapperFact e)
HasMapperFacts
addChildToIndex
in interface HasMapperFacts
public void addFactArray(MapperFact[] newFacts) throws MapConfigurationFileException
addFact(MapperFact)
for each fact alternatively.newFacts
- the array of factsMapConfigurationFileException
- the map configuration file exceptionpublic void addFactAt(MapperFact newFact, int pos) throws MapConfigurationFileException
HasMapperFacts
addFactAt
in interface HasMapperFacts
newFact
- Fact to be addedpos
- integer. Zero basedMapConfigurationFileException
- the map configuration file exceptionpublic void delFact(MapperFact fact)
HasMapperFacts
delFact
in interface HasMapperFacts
fact
- Fact to removepublic void registerFact(MapperFact fact) throws MapConfigurationFileException
HasMapperFacts
registerFact
in interface HasMapperFacts
fact
- the factMapConfigurationFileException
- the map configuration file exceptionpublic void unregisterFact(MapperFact fact)
HasMapperFacts
HasMapperFacts.registerFact(MapperFact)
but in this case for removing the information stored.unregisterFact
in interface HasMapperFacts
fact
- the factpublic 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