|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.SchemaVisitor
org.jibx.schema.codegen.SchemaDocumentationGenerator.DocumentationVisitor
private class SchemaDocumentationGenerator.DocumentationVisitor
Visitor to write the filtered view of a schema definition matching the data structure of a class. This uses a supplied map for components which are represented by separate classes, which need to be replaced in the filtered view by a reference to the appropriate class.
Field Summary | |
---|---|
private java.lang.String |
m_className
Fully-qualified name of class containing documentation. |
private AnnotatedBase |
m_component
Root component to be documented. |
private java.util.Map |
m_componentClassMap
Map from schema components with separate classes to the class information. |
private boolean |
m_dropAnnotations
Delete annotations from schema documentation flag. |
private int[] |
m_nsIndexes
Namespace indexes for use on marshalling root element. |
private java.lang.String[] |
m_nsPrefixes
Namespace prefixes for use on marshalling root element. |
private boolean |
m_reference
Reference component with separate class flag. |
Constructor Summary | |
---|---|
SchemaDocumentationGenerator.DocumentationVisitor(java.util.Map comptoclas,
java.lang.String clasname,
AnnotatedBase comp,
boolean dropanno,
boolean ref,
int[] indexes,
java.lang.String[] prefixes)
Constructor. |
Method Summary | |
---|---|
void |
exit(AnnotationElement node)
Exit an annotation element. |
void |
exit(ElementElement node)
Exit an element element. |
void |
exit(KeyBase node)
Exit an identity constraint element. |
void |
exit(SchemaBase node)
Exit a schema node. |
boolean |
visit(AnnotationElement node)
Visit an annotation element. |
boolean |
visit(ElementElement node)
Visit an element element. |
boolean |
visit(KeyBase node)
Visit an identity constraint element. |
boolean |
visit(SchemaBase node)
Visit a schema node. |
Methods inherited from class org.jibx.schema.SchemaVisitor |
---|
exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Map m_componentClassMap
private final java.lang.String m_className
private final AnnotatedBase m_component
private final boolean m_dropAnnotations
private final boolean m_reference
private final int[] m_nsIndexes
private final java.lang.String[] m_nsPrefixes
Constructor Detail |
---|
public SchemaDocumentationGenerator.DocumentationVisitor(java.util.Map comptoclas, java.lang.String clasname, AnnotatedBase comp, boolean dropanno, boolean ref, int[] indexes, java.lang.String[] prefixes)
comptoclas
- map from schema components to class informationclasname
- fully-qualified class name to be stripped from class referencescomp
- top-level component for documentationdropanno
- delete annotations from schema documentation flagref
- reference component with separate class flagindexes
- namespace indexes for use on marshalling root elementprefixes
- namespace prefixes for use on marshalling root elementMethod Detail |
---|
public void exit(SchemaBase node)
exit
in class SchemaVisitor
node
- public void exit(AnnotationElement node)
exit
in class SchemaVisitor
node
- public void exit(ElementElement node)
exit
in class SchemaVisitor
node
- public void exit(KeyBase node)
exit
in class SchemaVisitor
node
- public boolean visit(SchemaBase node)
visit
in class SchemaVisitor
node
-
true
if expanding content, false
if content replaced by referencepublic boolean visit(AnnotationElement node)
visit
in class SchemaVisitor
node
-
false
if annotations to be deleted, otherwise the result of the next-level methodpublic boolean visit(ElementElement node)
visit
in class SchemaVisitor
node
-
false
if element excluded, otherwise the result of the next-level methodpublic boolean visit(KeyBase node)
false
, since the identity
constraint elements are handled in-line in the binding.
visit
in class SchemaVisitor
node
-
false
to block further expansion
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |