public class Section
extends java.lang.Object
Mapping sections are groups of facts that belongs to a section this allows for the following features:
| Constructor and Description |
|---|
Section(java.lang.String id,
java.util.Collection<java.lang.String> files)
Instantiates a new section.
|
Section(java.lang.String id,
java.lang.String file)
Instantiates a new section.
|
Section(java.lang.String id,
java.lang.String[] files)
Instantiates a new section.
|
Section(net.sf.saxon.s9api.XdmNode node)
Instantiates a new section.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFact(Fact d)
Adds the fact.
|
void |
addFilesTo(XBRLInstance instance)
Adds referenced files to the instance document.
|
boolean |
equals(java.lang.Object obj) |
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Generate node.
|
Anchor |
getAnchor()
Gets the anchor.
|
java.lang.String |
getDocumentation()
Gets the documentation.
|
java.util.Iterator<java.lang.String> |
getFiles()
Gets the files.
|
java.lang.String |
getId()
Returns the section identifier.
|
java.lang.String |
getRuleIdentifier()
Gets the rule identifier.
|
int |
hashCode() |
boolean |
hasRule()
Returns true if this section has a rule.
|
void |
setAnchor(Anchor anchor)
Sets this section anchor .
|
void |
setAnchor(java.lang.String sectionLink,
javax.xml.namespace.QName sectionElement)
Sets the anchor.
|
void |
setDocumentation(java.lang.String documentation)
Sets the documentation.
|
void |
setId(java.lang.String id)
Sets the id of this section. if null, the section id is reset to the next automatically generated section id as the section id
must exist.
|
void |
setRuleIdentifier(java.lang.String ruleIdentifier)
Sets the rule identifier.
|
public Section(net.sf.saxon.s9api.XdmNode node)
throws MapConfigurationFileException
node - the nodeMapConfigurationFileException - the map configuration file exceptionpublic Section(java.lang.String id,
java.lang.String file)
id - the idfile - the filepublic Section(java.lang.String id,
java.lang.String[] files)
id - the idfiles - the filespublic Section(java.lang.String id,
java.util.Collection<java.lang.String> files)
id - the idfiles - the filespublic java.lang.String getId()
public void addFact(Fact d)
d - the dpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
relativize - the relativizebase - the baseXBRLSerializationException - the XBRL serialization exceptionpublic boolean hasRule()
public java.lang.String getRuleIdentifier()
public void setRuleIdentifier(java.lang.String ruleIdentifier)
ruleIdentifier - the ruleIdentifier to setpublic void addFilesTo(XBRLInstance instance) throws MapException
instance - the instanceMapException - the map exceptionpublic void setId(java.lang.String id)
id - the id to setpublic java.lang.String getDocumentation()
public void setDocumentation(java.lang.String documentation)
documentation - the new documentationpublic void setAnchor(java.lang.String sectionLink,
javax.xml.namespace.QName sectionElement)
sectionLink - the section linksectionElement - the section elementpublic void setAnchor(Anchor anchor)
anchor - the new anchorpublic Anchor getAnchor()
public java.util.Iterator<java.lang.String> getFiles()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object