org.jbind.xml.schema.constraint
Class CheckContext

java.lang.Object
  extended byorg.jbind.xml.schema.constraint.CheckContext
All Implemented Interfaces:
ICheckContext
Direct Known Subclasses:
GlobalCheckContext, LocalCheckContext

public abstract class CheckContext
extends java.lang.Object
implements ICheckContext


Field Summary
protected  IAnyTypeData myData
           
protected  IConstraintViolations myViolations
           
 
Constructor Summary
CheckContext(IAnyTypeData aData, IConstraintViolations aViolations)
           
 
Method Summary
 void add(IMessage aMessage)
           
 boolean checkCountryCode()
          Indicates if country codes should be checked.
 boolean checkLanguageCode()
          Indicates if language codes should be checked.
 java.lang.String getCountry(java.lang.String aCode)
           
 IAnyTypeData getData()
           
 java.lang.String getLanguage(java.lang.String aCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.constraint.ICheckContext
check, newNestedContext
 

Field Detail

myData

protected IAnyTypeData myData

myViolations

protected IConstraintViolations myViolations
Constructor Detail

CheckContext

public CheckContext(IAnyTypeData aData,
                    IConstraintViolations aViolations)
Method Detail

add

public void add(IMessage aMessage)
Specified by:
add in interface ICheckContext

getData

public IAnyTypeData getData()
Specified by:
getData in interface ICheckContext

checkLanguageCode

public boolean checkLanguageCode()
Description copied from interface: ICheckContext
Indicates if language codes should be checked. Checking of language codes is normally not done be a validating parser according to the XML schema specification. This feature can be configured using the Config class.

Specified by:
checkLanguageCode in interface ICheckContext
Returns:
Returns true iff language codes should be checked.

checkCountryCode

public boolean checkCountryCode()
Description copied from interface: ICheckContext
Indicates if country codes should be checked. Checking of country codes is normally not done be a validating parser according to the XML schema specification. This feature can be configured using the Config class.

Specified by:
checkCountryCode in interface ICheckContext
Returns:
Returns true iff country codes should be checked.

getLanguage

public java.lang.String getLanguage(java.lang.String aCode)
Specified by:
getLanguage in interface ICheckContext

getCountry

public java.lang.String getCountry(java.lang.String aCode)
Specified by:
getCountry in interface ICheckContext