public class XBRLlrrAndRelationshipConstraints
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
XBRLlrrAndRelationshipConstraints.ExtraRelationshipValidationInterface
This interface defines a method for classes implementing additional validation constraints
for a relationship that cannot be implemented in a generic way.
|
static class |
XBRLlrrAndRelationshipConstraints.RelationshipConstraints
Defines what is going to be validated on every relationship.
|
static class |
XBRLlrrAndRelationshipConstraints.RelationshipConstraintsBase
The Class RelationshipConstraintsBase.
|
| Constructor and Description |
|---|
XBRLlrrAndRelationshipConstraints(DTSContainer dts)
Disallow creating new instances of this processor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraints(java.lang.String arcRole,
XBRLlrrAndRelationshipConstraints.RelationshipConstraints newConstraints)
Adds new constraints to this processor.
|
void |
clear()
Releases all constraints read and memory used on this class.
|
static XBRLlrrAndRelationshipConstraints.RelationshipConstraints |
createConstraints(java.lang.String processor,
java.lang.Class<? extends XBRLValidationException> errorIfFromNotItem,
java.lang.Class<? extends XBRLValidationException> errorIfFromNotAbstract,
java.lang.Class<? extends XBRLValidationException> errorIfFromNotNumeric,
java.lang.Class<? extends XBRLValidationException> errorIfToNotItem,
java.lang.Class<? extends XBRLValidationException> errorIfToNotAbstract,
java.lang.Class<? extends XBRLValidationException> errorIfToNotNumeric,
XBRLlrrAndRelationshipConstraints.ExtraRelationshipValidationInterface extraValidationInstance)
Creates a new instance of the relationships constraints.
|
DTSContainer |
getContainer()
Access to the DTSContainer .
|
XBRLValidationReport |
validateRelationship(XBRLRelationship rel)
Validates the relationship received against the constraints stored in this class.
|
public XBRLlrrAndRelationshipConstraints(DTSContainer dts)
dts - the dtspublic static XBRLlrrAndRelationshipConstraints.RelationshipConstraints createConstraints(java.lang.String processor, java.lang.Class<? extends XBRLValidationException> errorIfFromNotItem, java.lang.Class<? extends XBRLValidationException> errorIfFromNotAbstract, java.lang.Class<? extends XBRLValidationException> errorIfFromNotNumeric, java.lang.Class<? extends XBRLValidationException> errorIfToNotItem, java.lang.Class<? extends XBRLValidationException> errorIfToNotAbstract, java.lang.Class<? extends XBRLValidationException> errorIfToNotNumeric, XBRLlrrAndRelationshipConstraints.ExtraRelationshipValidationInterface extraValidationInstance)
processor - the processorerrorIfFromNotItem - the error if from not itemerrorIfFromNotAbstract - the error if from not abstracterrorIfFromNotNumeric - the error if from not numericerrorIfToNotItem - the error if to not itemerrorIfToNotAbstract - the error if to not abstracterrorIfToNotNumeric - the error if to not numericextraValidationInstance - the extra validation instancepublic void clear()
After calling this method it will not be possible to validate new relationships.
public DTSContainer getContainer()
public void addConstraints(java.lang.String arcRole,
XBRLlrrAndRelationshipConstraints.RelationshipConstraints newConstraints)
arcRole - the arc rolenewConstraints - the new constraintspublic XBRLValidationReport validateRelationship(XBRLRelationship rel)
rel - the rel