org.jbind.xml.schema.constraint
Class CheckContext
java.lang.Object
org.jbind.xml.schema.constraint.CheckContext
- All Implemented Interfaces:
- ICheckContext
- Direct Known Subclasses:
- GlobalCheckContext, LocalCheckContext
- public abstract class CheckContext
- extends java.lang.Object
- implements ICheckContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myData
protected IAnyTypeData myData
myViolations
protected IConstraintViolations myViolations
CheckContext
public CheckContext(IAnyTypeData aData,
IConstraintViolations aViolations)
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