|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.codegen.custom.CustomBase
org.jibx.schema.codegen.custom.NestingCustomBase
org.jibx.schema.codegen.custom.SchemaRootBase
org.jibx.schema.codegen.custom.SchemaCustom
public class SchemaCustom
Individual schema customization information.
Nested Class Summary | |
---|---|
private static class |
SchemaCustom.AnnotationDeletionVisitor
Visitor to delete annotations from schema components. |
private static class |
SchemaCustom.ExtensionBuilderVisitor
Visitor to build basic extensions for schema components. |
private static class |
SchemaCustom.FacetRemoverVisitor
Visitor to flag extensions to remove unused facets. |
Nested classes/interfaces inherited from class org.jibx.schema.codegen.custom.SchemaRootBase |
---|
SchemaRootBase.ClassDecoratorUnmarshaller, SchemaRootBase.ExtensionUnmarshaller, SchemaRootBase.NameConverterUnmarshaller |
Field Summary | |
---|---|
private java.lang.String[] |
m_excludes
Global names excluded from code generation. |
private BaseExtension |
m_extension
Extension attached to actual schema element (only used for children). |
private java.lang.String[] |
m_includes
Global names included in code generation. |
private java.lang.String |
m_name
Schema name. |
private java.lang.String |
m_namespace
Schema namespace. |
private SchemaElement |
m_schema
Schema definition. |
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
private static org.apache.log4j.Logger |
s_logger
Logger for class. |
Fields inherited from class org.jibx.schema.codegen.custom.SchemaRootBase |
---|
ENUM_JAVA5, ENUM_SIMPLE, REPEAT_ARRAY, REPEAT_LIST, REPEAT_TYPED, s_enumValues, s_repeatValues |
Fields inherited from class org.jibx.schema.codegen.custom.NestingCustomBase |
---|
ANY_DISCARD, ANY_DOM, ANY_MAPPED, s_anyValues, s_selectionValues, SELECTION_CHECKEDBOTH, SELECTION_CHECKEDSET, SELECTION_OVERRIDEBOTH, SELECTION_OVERRIDESET, SELECTION_UNCHECKED |
Constructor Summary | |
---|---|
SchemaCustom(SchemasetCustom parent)
Constructor. |
Method Summary | |
---|---|
private static void |
applyRemainingCustomizationPath(SchemaPath path,
OpenAttrBase match,
ComponentCustom custom,
ValidationContext vctx)
Evaluate the remaining path for a customization after the first step, and apply it to the extension for each matching schema component. |
boolean |
checkMatch(java.lang.String name,
SchemaElement schema)
Check if this customization matches a particular schema. |
void |
extend(NameConverter nconv,
ClassDecorator[] decorators,
PackageHolder pack,
ValidationContext vctx)
Build the schema extension structure. |
private void |
extendGlobal(SchemaCustom.ExtensionBuilderVisitor visitor,
TreeWalker wlkr,
GlobalExtension anno)
Build the extensions tree for a global definition. |
private static SchemaCustom |
factory(IUnmarshallingContext ictx)
Factory used during unmarshalling. |
java.lang.String |
getName()
Get schema name. |
java.lang.String |
getNamespace()
Get schema namespace. |
SchemaElement |
getSchema()
Get schema definition. |
private void |
preSet(IUnmarshallingContext uctx)
Make sure all attributes are defined. |
void |
setName(java.lang.String name)
Set schema name. |
void |
setNamespace(java.lang.String namespace)
Set schema namespace. |
void |
setSchema(java.lang.String name,
SchemaElement schema)
Set schema definition. |
void |
stripAnnotations()
Strip the annotation components (at any level) from a schema definitions. |
Methods inherited from class org.jibx.schema.codegen.custom.SchemaRootBase |
---|
getClassDecorators, getEnumText, getEnumType, getLineWidth, getNameConverter, getPackage, getRepeatText, getRepeatType, getRootParent, isDeleteAnnotations, isGenerateAll, isJavaDocDocumentation, isNullCollectionAllowed, isPreferInline, isSchemaFragmentDocumentation, isStructureOptional, isUseInner, setEnumType, setRepeatType |
Methods inherited from class org.jibx.schema.codegen.custom.NestingCustomBase |
---|
getActiveFacetsMask, getAnyHandling, getAnyType, getChildren, getChoiceHandling, getChoiceType, getReplacement, getSubstitutions, getUnionHandling, getUnionType, isChoiceExposed, isUnionExposed, setAnyType, setChoiceType, setEnforcedFacets, setIgnoredFacets, setReplacement, setSubstitutions, setUnionType, validate |
Methods inherited from class org.jibx.schema.codegen.custom.CustomBase |
---|
getContainingObject, getParent, getSchemaRoot, setParent, validateAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger s_logger
public static final StringArray s_allowedAttributes
private java.lang.String m_name
private java.lang.String m_namespace
private java.lang.String[] m_includes
private java.lang.String[] m_excludes
private SchemaElement m_schema
private BaseExtension m_extension
Constructor Detail |
---|
public SchemaCustom(SchemasetCustom parent)
parent
- Method Detail |
---|
private void preSet(IUnmarshallingContext uctx)
uctx
- unmarshalling contextpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- public SchemaElement getSchema()
public void setSchema(java.lang.String name, SchemaElement schema)
name
- schema
- public boolean checkMatch(java.lang.String name, SchemaElement schema)
name
- schema
-
true
if a match, false
if notprivate void extendGlobal(SchemaCustom.ExtensionBuilderVisitor visitor, TreeWalker wlkr, GlobalExtension anno)
visitor
- wlkr
- anno
- public void stripAnnotations()
private static void applyRemainingCustomizationPath(SchemaPath path, OpenAttrBase match, ComponentCustom custom, ValidationContext vctx)
path
- customization pathmatch
- starting point for pathcustom
- customization informationvctx
- validation contextpublic void extend(NameConverter nconv, ClassDecorator[] decorators, PackageHolder pack, ValidationContext vctx)
nconv
- name converter (null
if no code generation)decorators
- class decorators (null
if no code generation)pack
- package for generated classes (null
if no code generation)vctx
- validation contextprivate static SchemaCustom factory(IUnmarshallingContext ictx)
ictx
-
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |