com.sun.msv.relaxns.verifier

Class IslandSchemaImpl.Binder

Enclosing Class:
IslandSchemaImpl
Implemented Interfaces:
ExpressionVisitorExpression

public static class IslandSchemaImpl.Binder
extends ExpressionCloner

replaces all ExternalElementExp and ExternalAttributeExp by actual definitions. these two expressions forms the fundamental mechanism of schema interaction.

Field Summary

static String
ERR_UNDEFINED_NAMESPACE
static String
ERR_UNEXPORTED_ATTRIBUTE_DECL
static String
ERR_UNEXPORTED_ELEMENT_DECL
static String
ERR_UNSUPPROTED_ATTRIBUTES_IMPORT

Constructor Summary

Binder(SchemaProvider provider, ErrorHandler errorHandler, ExpressionPool pool)

Method Summary

String
localize(String prop)
String
localize(String prop, Object arg1)
String
localize(String prop, Object arg1, Object arg2)
String
localize(String propertyName, Object[] args)
localizes messages.
Expression
onAttribute(AttributeExp exp)
Expression
onElement(ElementExp exp)
Expression
onOther(OtherExp exp)
Expression
onRef(ReferenceExp exp)

Methods inherited from class com.sun.msv.grammar.ExpressionCloner

onAnyString, onChoice, onConcur, onData, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onSequence, onValue

Field Details

ERR_UNDEFINED_NAMESPACE

public static final String ERR_UNDEFINED_NAMESPACE

ERR_UNEXPORTED_ATTRIBUTE_DECL

public static final String ERR_UNEXPORTED_ATTRIBUTE_DECL

ERR_UNEXPORTED_ELEMENT_DECL

public static final String ERR_UNEXPORTED_ELEMENT_DECL

ERR_UNSUPPROTED_ATTRIBUTES_IMPORT

public static final String ERR_UNSUPPROTED_ATTRIBUTES_IMPORT

Constructor Details

Binder

public Binder(SchemaProvider provider,
              ErrorHandler errorHandler,
              ExpressionPool pool)

Method Details

localize

public String localize(String prop)

localize

public String localize(String prop,
                       Object arg1)

localize

public String localize(String prop,
                       Object arg1,
                       Object arg2)

localize

public String localize(String propertyName,
                       Object[] args)
localizes messages. derived class can override this method to provide schema languagespecific error messages.

onAttribute

public Expression onAttribute(AttributeExp exp)
Specified by:
onAttribute in interface ExpressionVisitorExpression

onElement

public Expression onElement(ElementExp exp)
Specified by:
onElement in interface ExpressionVisitorExpression

onOther

public Expression onOther(OtherExp exp)
Specified by:
onOther in interface ExpressionVisitorExpression

onRef

public Expression onRef(ReferenceExp exp)
Specified by:
onRef in interface ExpressionVisitorExpression