public class EFMProcessor extends java.lang.Object implements XBRLPlugInProcessor, LicensedProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEI_2008_NS
Namespace for the dei taxonomy. this is commonly used so it is declared here.
|
static java.lang.String |
DEI_2009_NS
Namespace for the dei taxonomy. this is commonly used so it is declared here.
|
static java.lang.String |
DEI_2011_NS
Namespace for the dei taxonomy. this is commonly used so it is declared here.
|
static java.lang.String |
DEI_2012_NS
Namespace for the dei taxonomy. this is commonly used so it is declared here.
|
static java.lang.String |
EdgarTaxonomiesFile
XML file that contains a description of all files that can be used for SEC filing.
|
static java.lang.String |
EFM_PARAMETER_RESOLVER
The EFM_PARAMETER_RESOLVER property contains an instance of a class that implements the EFMParameterResolver
interface.
|
static java.lang.String |
EFM_VERSION
The EFM_VERSION property indicates the version of the Edgar Filer Manual document
to be used.
|
static java.lang.String |
EFM_VERSION_18_111122
The EFM_VERSION_18_111122 property indicates the processor will use EFM rules in the version 18_111122 of
the EFM document.
|
static java.lang.String |
EFM_VERSION_18_120228
The EFM_VERSION_18_120228 property indicates the processor will use EFM rules in the version 18_120228 of
the EFM document.
|
static java.lang.String |
NONNUM_NS
Namespace for non-numeric. created by XBRL International in the light of harmonizing the content
of the US-GAAP taxonomy and the IFRS taxonomy.
|
static java.lang.String |
PROCESSORNAME
The Constant PROCESSORNAME.
|
static java.lang.String |
US_GAAP
Namespace for US_GAAP.
|
static java.lang.String |
US_TYPES_2008_NS
Namespace for us-types.
|
static java.lang.String |
US_TYPES_2009_NS
Namespace for us-types.
|
static java.lang.String |
US_TYPES_2011_NS
Namespace for us-types.
|
static java.lang.String |
US_TYPES_2012_NS
Namespace for us-types.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
void |
configure(java.util.Properties properties)
Configure.
|
static EFMProcessor |
create(DTSContainer dts)
Obtains the instance of the EFMProcessor that has been registered for this DTS.
|
DTSContainer |
getContainer()
Gets the container.
|
java.lang.String[] |
getDEIVersions()
Depending on the value of the EFM_VERSION, this method returns different sets of
namespaces to searc for.
|
java.lang.String |
getDescription()
Gets the description.
|
static java.lang.String |
getDescriptionStatic()
Obtains the description of this processor regardless of the instance.
|
java.lang.String |
getEFMLang(XMLFragment f)
Returns the value or default value of the xml:lang attribute on the XMLFragment passed in as a parameter.
|
java.lang.String |
getEnglishStandardLanguage(XMLFragment f)
Access to the "English Standard Language" label as defined in the EFM.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.Object |
getParameterValue(java.lang.String parameterName)
Returns the value assigned to the parameter indicated in the name. or null if no value
has been assigned or if there is no a parameter resolver assigned to this processor.
|
java.lang.String |
getRegistrantName(java.lang.String identifier)
The parameter is a CIK identifier.
|
boolean |
isDefaultParameterValue(java.lang.String parameterName,
java.lang.Object parameterValue)
returns true if the value inParameterObj is the default value for the parameter indicated in param.
|
boolean |
isDerivedFromDomainItemType(XBRLItem item,
boolean inStandardTaxonomy)
Checks if is derived from domain item type.
|
boolean |
isHidden()
Checks if is hidden.
|
boolean |
isInternalAndShallNotBeUsed(java.net.URI hRef)
Returns true if the document indicated in the URI shall not
be directly referenced by company files .
|
boolean |
isLicensed()
Checks if is licensed.
|
boolean |
isStandard(java.net.URI hRef)
Validates the URI passed in as parameter is one of the standard taxonomy schemas.
|
boolean |
isStandardNamespaceURI(java.lang.String uriRef)
Validates the URI passed in as parameter is one of the standard taxonomy schemas.
|
static boolean |
isXMLWhiteSpace(char ch)
Checks if is XML white space.
|
static void |
registerProcessorStatic()
Register processor static.
|
XBRLValidationReport |
validate()
Validate.
|
XBRLValidationReport |
validate(XBRLDocument xDocument)
Validate.
|
XBRLValidationReport |
validateAtMostOneAll(XMLElementDefinition elDef)
Validate at most one all.
|
XBRLValidationReport |
validateCalculationAndPresentation(XBRLItem fromItem,
XBRLItem toItem)
6.14.5 If an instance contains non-empty facts for the source and target of an effective calculation relationship,
then at least one effective presentation relationship that the source and target appear in (because of 6.12.3)
must be either (a) a relationship with each other or (b) two relationships with any other elements that share a
single extended link role.
|
void |
validateEFMURI(java.net.URI hRef)
Validates the URI from an xlink:href attribute.
|
XBRLValidationReport |
validateOneLabelPerRoleAndLang(XMLFragment f)
Validate one label per role and lang.
|
XBRLValidationReport |
validatePresentationNetworks(XMLFragment elDef)
Validates EFM rule 6.12.3 An element used in an instance must participate in at least
one effective presentation relationship in the DTS of that instance.
|
XBRLValidationReport |
validatePresentationPreferredLabels(XMLFragment elDef,
java.util.HashSet<XMLFragment> processed)
Validates EFM rule 6.12.3 An element used in an instance must participate in at least
one effective presentation relationship in the DTS of that instance.
|
XBRLValidationReport |
validateTextIsProperHTML(java.lang.String stringValue,
XBRLFact fact,
XBRLResource res)
Validate text is proper html.
|
XBRLValidationReport |
validateTextIsProperHTML(XBRLFact fact)
Validate text is proper html.
|
XBRLValidationReport |
validateTextIsProperHTML(XBRLResource res)
Validate text is proper html.
|
public static final java.lang.String PROCESSORNAME
public static final java.lang.String DEI_2012_NS
public static final java.lang.String DEI_2011_NS
public static final java.lang.String DEI_2009_NS
public static final java.lang.String DEI_2008_NS
public static final java.lang.String NONNUM_NS
public static final java.lang.String US_TYPES_2012_NS
public static final java.lang.String US_TYPES_2011_NS
public static final java.lang.String US_TYPES_2009_NS
public static final java.lang.String US_TYPES_2008_NS
public static final java.lang.String US_GAAP
public static final java.lang.String EdgarTaxonomiesFile
public static final java.lang.String EFM_VERSION
The value of the EFM_VERSION constant is "http://www.reportingstandard.com/properties/efm-version".
The default value for the property it refers to is EFM_VERSION_18 which is the lastest release.
public static final java.lang.String EFM_PARAMETER_RESOLVER
public static final java.lang.String EFM_VERSION_18_111122
public static final java.lang.String EFM_VERSION_18_120228
public java.lang.String[] getDEIVersions()
public static void registerProcessorStatic()
public static EFMProcessor create(DTSContainer dts) throws com.rs.lic.LicenseVerificationException, XBRLValidationException
dts
- the dtscom.rs.lic.LicenseVerificationException
- the license verification exceptionXBRLValidationException
- the XBRL validation exceptionpublic XBRLValidationReport validate()
validate
in interface XBRLPlugInProcessor
public XBRLValidationReport validate(XBRLDocument xDocument)
validate
in interface XBRLPlugInProcessor
xDocument
- the x documentpublic java.lang.String getName()
getName
in interface XBRLPlugInProcessor
public java.lang.String getDescription()
getDescription
in interface XBRLPlugInProcessor
public static java.lang.String getDescriptionStatic()
public void configure(java.util.Properties properties)
configure
in interface XBRLPlugInProcessor
properties
- the propertiespublic DTSContainer getContainer()
getContainer
in interface HasDTSContainer
public void validateEFMURI(java.net.URI hRef) throws EFMValidationException
hRef
- as an URIEFMValidationException
- in case of any errorspublic boolean isStandard(java.net.URI hRef)
hRef
- the h refpublic boolean isInternalAndShallNotBeUsed(java.net.URI hRef)
hRef
- the h refpublic java.lang.String getEFMLang(XMLFragment f)
Note, this is not 100% XML comformant as the XML rules indicates that the value on a parent element applies. This method is not observing that rule because that behavior is not indicated in the EFM manual.
f
- the fpublic java.lang.String getEnglishStandardLanguage(XMLFragment f)
An element “has an English standard label” in a DTS if there is an effective relationship with the defining xsd:element source, an xlink:arcrole attribute equal to “http://www.xbrl.org/2003/role/concept-label” and target link:label with an xml:lang attribute equal to “en-US” and an xlink:role attribute equal to “http://www.xbrl.org/2003/role/label”.
This method returns null if such a label is not found.
f
- the fpublic XBRLValidationReport validateOneLabelPerRoleAndLang(XMLFragment f)
f
- the fpublic boolean isStandardNamespaceURI(java.lang.String uriRef)
uriRef
- the uri refpublic static boolean isXMLWhiteSpace(char ch)
ch
- the chpublic XBRLValidationReport validateTextIsProperHTML(java.lang.String stringValue, XBRLFact fact, XBRLResource res)
stringValue
- the string valuefact
- the factres
- the respublic XBRLValidationReport validateTextIsProperHTML(XBRLFact fact)
fact
- the factpublic XBRLValidationReport validateTextIsProperHTML(XBRLResource res)
res
- the respublic java.lang.Object getParameterValue(java.lang.String parameterName)
Note, parameter resolvers can be assigned during the instantiation of the XBRL processor.
parameterName
- must be a stringpublic boolean isDefaultParameterValue(java.lang.String parameterName, java.lang.Object parameterValue)
parameterName
- the parameter nameparameterValue
- the parameter valuepublic java.lang.String getRegistrantName(java.lang.String identifier)
identifier
- (a CIK)public boolean isDerivedFromDomainItemType(XBRLItem item, boolean inStandardTaxonomy)
item
- the iteminStandardTaxonomy
- the in standard taxonomypublic XBRLValidationReport validatePresentationNetworks(XMLFragment elDef)
elDef
- the el defpublic XBRLValidationReport validatePresentationPreferredLabels(XMLFragment elDef, java.util.HashSet<XMLFragment> processed)
elDef
- the el defprocessed
- the processedpublic XBRLValidationReport validateCalculationAndPresentation(XBRLItem fromItem, XBRLItem toItem)
fromItem
- the from itemtoItem
- the to itempublic XBRLValidationReport validateAtMostOneAll(XMLElementDefinition elDef)
elDef
- the el defpublic boolean isHidden()
isHidden
in interface XBRLPlugInProcessor
public void clear()
clear
in interface XBRLPlugInProcessor
public boolean isLicensed()
isLicensed
in interface LicensedProcessor
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, España