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, 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, replacepublic 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()
XMLFragmenthashCode in interface HasMapperFactshashCode in interface net.sf.saxon.om.NodeInfohashCode in class XMLFragmentpublic boolean equals(java.lang.Object obj)
XMLFragmentequals in interface HasMapperFactsequals in interface net.sf.saxon.om.NodeInfoequals in class XMLFragmentobj - the otherpublic ListMapperFacts getVFacts()
public java.util.Iterator<MapperFact> getChildrenFacts()
HasMapperFactsgetChildrenFacts in interface HasMapperFactspublic int getChildrenFactsCount()
HasMapperFactsgetChildrenFactsCount in interface HasMapperFactspublic HasMapperFacts getMapperParent()
HasMapperFactsgetMapperParent in interface HasMapperFactspublic void setMapperParent(HasMapperFacts mapperParent)
mapperParent - the new mapper parentpublic void setMapperParent(MapperBase mapperBase)
mapperBase - the new mapper parentpublic void addFact(MapperFact newFact) throws MapConfigurationFileException
HasMapperFactsThis method does not updates the taxonomy URLs.
addFact in interface HasMapperFactsnewFact - the new fact to be addedMapConfigurationFileException - the map configuration file exceptionpublic void addChildToIndex(MapperFact e)
HasMapperFactsaddChildToIndex in interface HasMapperFactspublic 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
HasMapperFactsaddFactAt in interface HasMapperFactsnewFact - Fact to be addedpos - integer. Zero basedMapConfigurationFileException - the map configuration file exceptionpublic void delFact(MapperFact fact)
HasMapperFactsdelFact in interface HasMapperFactsfact - Fact to removepublic void registerFact(MapperFact fact) throws MapConfigurationFileException
HasMapperFactsregisterFact in interface HasMapperFactsfact - the factMapConfigurationFileException - the map configuration file exceptionpublic void unregisterFact(MapperFact fact)
HasMapperFactsHasMapperFacts.registerFact(MapperFact) but in this case for removing the information stored.unregisterFact in interface HasMapperFactsfact - the factpublic 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