com.j2r.xbrl.network.roles
Class SummationItemRole

java.lang.Object
  extended by com.j2r.xbrl.network.roles.SummationItemRole
All Implemented Interfaces:
SupportedRole, java.io.Serializable

public class SummationItemRole
extends java.lang.Object
implements SupportedRole

See interface for purpose. This role perfoms summation-item validation acording to XBRL 2.1 spec.

Copyright 2006 J2R BV, The Netherlands.

Part of Licensed Materials.

www.batavia-xbrl.com

Author:
Ron van Ardenne
See Also:
Serialized Form

Constructor Summary
SummationItemRole()
           
 
Method Summary
 boolean validateAndCompleteInstance(Network network, Xbrl xbrlElement, ValidationDocument msgs, boolean complete)
          Validate the given xbrl element with the given network with the rules that apply for the implemented role and add msgs for problems found to the given msgs.
 boolean validateArc(NetworkArc arc, ValidationDocument msgs)
          Validate the given arc with the rules that apply for the implemented role and add msgs for problems found to the given msgs.
 boolean validateInstance(Network network, Xbrl xbrlElement, ValidationDocument msgs)
          Validate the given xbrl element with the given network with the rules that apply for the implemented role and add msgs for problems found to the given msgs.
 boolean validateNetwork(Network network, ValidationDocument msgs)
          Validate the given network with the rules that apply for the implemented role and add msgs for problems found to the given msgs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummationItemRole

public SummationItemRole()
Method Detail

validateAndCompleteInstance

public boolean validateAndCompleteInstance(Network network,
                                           Xbrl xbrlElement,
                                           ValidationDocument msgs,
                                           boolean complete)
Description copied from interface: SupportedRole
Validate the given xbrl element with the given network with the rules that apply for the implemented role and add msgs for problems found to the given msgs. Infer any facts for the instance if possible and approrpiate for the given role based on instance and network contents.

Specified by:
validateAndCompleteInstance in interface SupportedRole
Returns:

validateInstance

public boolean validateInstance(Network network,
                                Xbrl xbrlElement,
                                ValidationDocument msgs)
Description copied from interface: SupportedRole
Validate the given xbrl element with the given network with the rules that apply for the implemented role and add msgs for problems found to the given msgs.

Specified by:
validateInstance in interface SupportedRole
Returns:

validateNetwork

public boolean validateNetwork(Network network,
                               ValidationDocument msgs)
Description copied from interface: SupportedRole
Validate the given network with the rules that apply for the implemented role and add msgs for problems found to the given msgs.

Specified by:
validateNetwork in interface SupportedRole
Returns:

validateArc

public boolean validateArc(NetworkArc arc,
                           ValidationDocument msgs)
Description copied from interface: SupportedRole
Validate the given arc with the rules that apply for the implemented role and add msgs for problems found to the given msgs.

Specified by:
validateArc in interface SupportedRole
Returns: