org.jbind.xml.schema.constraint
Class Constraints

java.lang.Object
  extended byorg.jbind.xml.schema.constraint.Constraints
All Implemented Interfaces:
IConstraints

public final class Constraints
extends java.lang.Object
implements IConstraints


Constructor Summary
Constraints()
           
 
Method Summary
 void add(IConstraint aConstraint, IConstraintViolations aViolations, IHasLocation aHasLocation)
           
 void add(IConstraints aConstraints, IConstraintViolations aViolations, IHasLocation aHasLocation)
           
 void checkConstraints(ICheckContext aContext)
          Checks the constraints.
 IConstraint getConstraint(ConstraintType aConstraintType)
           
 java.util.List getConstraintList(ConstraintType aConstraintType)
           
 IReferenceConstraint getReferenceConstraint(java.lang.String aKey)
          Gets a reference constraint by its key.
 WhiteSpaceProcessing getWhiteSpaceProcessing()
           
 boolean hasConstraint(IConstraint aConstraint)
           
 java.util.Iterator iterConstraints()
           
 java.util.Iterator iterConstraints(ConstraintType aConstraintType)
           
 void setBuiltInConstraint(IBuiltInConstraint aConstraint)
           
 void setWhiteSpaceProcessing(WhiteSpaceProcessing aWhiteSpaceProcessing)
           
 void setWhiteSpaceProcessing(WhiteSpaceProcessing aWhiteSpaceProcessing, IConstraintViolations aViolations, IHasLocation aHasLocation)
           
 IConstraints shallowCopy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constraints

public Constraints()
Method Detail

shallowCopy

public IConstraints shallowCopy()
Specified by:
shallowCopy in interface IConstraints

checkConstraints

public void checkConstraints(ICheckContext aContext)
Description copied from interface: IConstraints
Checks the constraints.

Specified by:
checkConstraints in interface IConstraints
Parameters:
aContext - (required).

add

public void add(IConstraint aConstraint,
                IConstraintViolations aViolations,
                IHasLocation aHasLocation)
Specified by:
add in interface IConstraints

add

public void add(IConstraints aConstraints,
                IConstraintViolations aViolations,
                IHasLocation aHasLocation)
Specified by:
add in interface IConstraints

getConstraintList

public java.util.List getConstraintList(ConstraintType aConstraintType)
Specified by:
getConstraintList in interface IConstraints

getConstraint

public IConstraint getConstraint(ConstraintType aConstraintType)
Specified by:
getConstraint in interface IConstraints

iterConstraints

public java.util.Iterator iterConstraints(ConstraintType aConstraintType)
Specified by:
iterConstraints in interface IConstraints

iterConstraints

public java.util.Iterator iterConstraints()
Specified by:
iterConstraints in interface IConstraints

hasConstraint

public boolean hasConstraint(IConstraint aConstraint)
Specified by:
hasConstraint in interface IConstraints

getWhiteSpaceProcessing

public WhiteSpaceProcessing getWhiteSpaceProcessing()
Specified by:
getWhiteSpaceProcessing in interface IConstraints

setWhiteSpaceProcessing

public void setWhiteSpaceProcessing(WhiteSpaceProcessing aWhiteSpaceProcessing,
                                    IConstraintViolations aViolations,
                                    IHasLocation aHasLocation)
Specified by:
setWhiteSpaceProcessing in interface IConstraints

setWhiteSpaceProcessing

public void setWhiteSpaceProcessing(WhiteSpaceProcessing aWhiteSpaceProcessing)
Specified by:
setWhiteSpaceProcessing in interface IConstraints

getReferenceConstraint

public IReferenceConstraint getReferenceConstraint(java.lang.String aKey)
Description copied from interface: IConstraints
Gets a reference constraint by its key.

Specified by:
getReferenceConstraint in interface IConstraints
Parameters:
aKey - (required).
Returns:
(optional).

setBuiltInConstraint

public void setBuiltInConstraint(IBuiltInConstraint aConstraint)
Specified by:
setBuiltInConstraint in interface IConstraints