org.jbind.xml.core.constraint
Interface ICheckContext

All Known Implementing Classes:
CheckContext

public interface ICheckContext

Checks local or global constraints. Local constraints are only interested in the simple content and the attributes of a data object. Global constraints check the relation of several data objects. Examples of global constraints are identity constraints (ID, IDREF, IDREFS, key, keyRef, and unique) and general XPathConstraints.

Global constraints can be checked only after a data tree has been completed.


Method Summary
 void add(IMessage aMessage)
           
 void check(IConstraint aConstraint)
           
 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)
           
 ICheckContext newNestedContext(IAnyTypeData aData)
           
 

Method Detail

getData

public IAnyTypeData getData()

add

public void add(IMessage aMessage)

check

public void check(IConstraint aConstraint)

newNestedContext

public ICheckContext newNestedContext(IAnyTypeData aData)

checkLanguageCode

public boolean checkLanguageCode()
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.

Returns:
Returns true iff language codes should be checked.

checkCountryCode

public boolean checkCountryCode()
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.

Returns:
Returns true iff country codes should be checked.

getLanguage

public java.lang.String getLanguage(java.lang.String aCode)

getCountry

public java.lang.String getCountry(java.lang.String aCode)