private class SchemaDocumentationGenerator.DocumentationVisitor extends SchemaVisitor
| Modifier and Type | Field | Description |
|---|---|---|
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 | Description |
|---|---|
DocumentationVisitor(java.util.Map comptoclas,
java.lang.String clasname,
AnnotatedBase comp,
boolean dropanno,
boolean ref,
int[] indexes,
java.lang.String[] prefixes) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexit, 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, visitprivate 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
public 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 elementpublic void exit(SchemaBase node)
exit in class SchemaVisitornode - public void exit(AnnotationElement node)
exit in class SchemaVisitornode - public void exit(ElementElement node)
exit in class SchemaVisitornode - public void exit(KeyBase node)
exit in class SchemaVisitornode - public boolean visit(SchemaBase node)
visit in class SchemaVisitornode - true if expanding content, false if content replaced by referencepublic boolean visit(AnnotationElement node)
visit in class SchemaVisitornode - false if annotations to be deleted, otherwise the result of the next-level methodpublic boolean visit(ElementElement node)
visit in class SchemaVisitornode - 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 SchemaVisitornode - false to block further expansion