| Modifier and Type | Class and Description |
|---|---|
static class |
Fact.Type
The Enum Type.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL
The Constant ALL.
|
static int |
PREV
The Constant PREV.
|
static int |
SINGLE
The Constant SINGLE.
|
| Constructor and Description |
|---|
Fact(Fact.Type type,
HasFacts parent,
XBRLDataSource source,
MapperContext context,
java.lang.String mapIdentifier,
XMLElementDefinition concept,
XBRLUnit unit,
int multi)
Instantiates a new fact.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFact(Fact newFact)
Adds a new Fact to the end of the Facts container.
|
void |
addFactAt(Fact newFact,
int pos)
Adds a new Fact at the position indicated by pos.
|
void |
delFact(Fact fact)
Removes a fact from the container.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.Iterator<Fact> |
getChildrenFacts()
Access to an iterator over the children facts of this object.
|
XMLElementDefinition |
getConcept()
The concept definition in the taxonomy that corresponds to this fact in the
template.
|
MapperContext |
getContext()
Gets the context.
|
java.util.Collection<XBRLFact> |
getFacts(XBRLFactsList cf,
int index)
Gets the facts.
|
java.lang.String |
getMapIdentifier()
Gets the map identifier.
|
int |
getMulti()
Gets the multi.
|
int |
getNumberOfValues()
Gets the number of values.
|
HasFacts |
getParent()
Access to the parent of this template Fact.
|
Section |
getSection()
Gets the section.
|
XBRLDataSource |
getSource()
Gets the source.
|
Fact.Type |
getType()
Gets the type.
|
XBRLUnit |
getUnit()
Gets the unit.
|
net.sf.saxon.value.AtomicValue |
getValue(int index)
Gets the value.
|
int |
hashCode()
Hash code.
|
void |
registerFact(Fact fact)
Registers a new fact has been added to the container.
|
void |
setSection(Section section)
Sets the section.
|
void |
unregisterFact(Fact fact)
Same as
HasFacts.registerFact(Fact) but in this case for removing the information stored. |
public static final int ALL
public static final int SINGLE
public static final int PREV
public Fact(Fact.Type type, HasFacts parent, XBRLDataSource source, MapperContext context, java.lang.String mapIdentifier, XMLElementDefinition concept, XBRLUnit unit, int multi)
type - the typeparent - the parentsource - the sourcecontext - the contextmapIdentifier - the map identifierconcept - the conceptunit - the unitmulti - the multipublic int getMulti()
public MapperContext getContext()
public XBRLDataSource getSource()
public java.lang.String getMapIdentifier()
public XMLElementDefinition getConcept()
public XBRLUnit getUnit()
public HasFacts getParent()
public Fact.Type getType()
public int getNumberOfValues()
public net.sf.saxon.value.AtomicValue getValue(int index)
throws MapException
index - the indexMapException - the map exceptionpublic java.util.Collection<XBRLFact> getFacts(XBRLFactsList cf, int index) throws MapException
cf - the cfindex - the indexMapException - the map exceptionpublic java.util.Iterator<Fact> getChildrenFacts()
HasFactsgetChildrenFacts in interface HasFactspublic void addFact(Fact newFact)
HasFactsThis method does not updates the taxonomy URLs.
public void addFactAt(Fact newFact, int pos)
HasFactspublic void delFact(Fact fact)
HasFactspublic void registerFact(Fact fact)
HasFactsregisterFact in interface HasFactsfact - the factpublic void unregisterFact(Fact fact)
HasFactsHasFacts.registerFact(Fact) but in this case for removing the information stored.unregisterFact in interface HasFactsfact - the factpublic void setSection(Section section)
section - the new sectionpublic Section getSection()
public int hashCode()
HasFacts