org.plasma.xml.schema
Interface SimpleTypeVisitor

All Known Implementing Classes:
ConstraintCollector, DatatypeCollector, EnumerationCollector

public interface SimpleTypeVisitor

Helps implementation classes avoid the (breadth-first) traversal logic for XSD SimpleType hierarchies across restrictions, lists, unions and other elements, receiving "visit" events ala. the Visitor pattern.

See Also:
Restriction, List, Union

Method Summary
 java.lang.String getTargetNamespace()
          Returns the target namespace for a particular schema instance.
 SimpleType getTopLevelSimpleType(javax.xml.namespace.QName name)
          Since the the type hierarchy traversal will encounter qualified name references to many simple types, the traversal logic requests a simple type from the visitor client.
 void visit(AbstractSimpleType target, AbstractSimpleType source, int level)
          The top event received when a simple type is encountered in the course of traversal.
 

Method Detail

visit

void visit(AbstractSimpleType target,
           AbstractSimpleType source,
           int level)
The top event received when a simple type is encountered in the course of traversal.

Parameters:
target - the target or "child" type
source - the source or "parent" type
level - the traversal level

getTopLevelSimpleType

SimpleType getTopLevelSimpleType(javax.xml.namespace.QName name)
Since the the type hierarchy traversal will encounter qualified name references to many simple types, the traversal logic requests a simple type from the visitor client.

Parameters:
name - the qualified name of the simple type
Returns:
the top level simple type

getTargetNamespace

java.lang.String getTargetNamespace()
Returns the target namespace for a particular schema instance.

Returns:
the target namespace


Copyright © 2013. All Rights Reserved.