TypeReplacerpublic class SchemaCustom extends SchemaRootBase
| Modifier and Type | Class | Description |
|---|---|---|
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.
|
SchemaRootBase.ClassDecoratorUnmarshaller, SchemaRootBase.ExtensionUnmarshaller, SchemaRootBase.NameConverterUnmarshaller, SchemaRootBase.SchemaTypeUnmarshaller| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String[] |
m_excludes |
Global names excluded from code generation.
|
private SchemaExtension |
m_extension |
Extension attached to actual schema element (only used for children).
|
private boolean |
m_forceTypes |
Always specify property types flag.
|
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 Logger |
s_logger |
Logger for class.
|
ANY_DISCARD, ANY_DOM, ANY_MAPPED, s_anyValues, s_selectionValues, SELECTION_CHECKEDBOTH, SELECTION_CHECKEDSET, SELECTION_OVERRIDEBOTH, SELECTION_OVERRIDESET, SELECTION_UNCHECKEDENUM_JAVA5, ENUM_SIMPLE, REPEAT_ARRAY, REPEAT_LIST, REPEAT_TYPED, s_enumValues, s_repeatValues| Constructor | Description |
|---|---|
SchemaCustom(SchemasetCustom parent) |
Constructor.
|
SchemaCustom(SchemasetCustom parent,
java.lang.String name,
java.lang.String namespace,
java.lang.String[] includes,
java.lang.String[] excludes) |
Constructor for constructing instance directly.
|
| Modifier and Type | Method | Description |
|---|---|---|
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(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[] |
getExcludes() |
Get the names of definitions to be excluded from generation.
|
java.lang.String[] |
getIncludes() |
Get the names of definitions to be included in generation.
|
java.lang.String |
getName() |
Get schema name.
|
java.lang.String |
getNamespace() |
Get schema namespace.
|
SchemaElement |
getSchema() |
Get schema definition.
|
boolean |
isForceTypes() |
Check if type specifications forced for schema.
|
private void |
preSet(IUnmarshallingContext uctx) |
Make sure all attributes are defined.
|
void |
setExcludes(java.lang.String[] excludes) |
Set the names of definitions to be excluded from generation.
|
void |
setForceTypes(java.lang.Boolean force) |
Set type specifications forced for schema.
|
void |
setIncludes(java.lang.String[] includes) |
Set the names of definitions to be included in generation.
|
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.
|
getContainingObject, getParent, getSchemaRoot, setParent, validateAttributesgetActiveFacetsMask, getAnyHandling, getAnyType, getChildren, getChoiceHandling, getChoiceType, getReplacement, getSubstitutions, getUnionHandling, getUnionType, isAttributeInlined, isChoiceExposed, isUnionExposed, setAnyType, setChoiceType, setEnforcedFacets, setIgnoredFacets, setReplacement, setSubstitutions, setUnionType, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBindingFileName, getClassDecorators, getEnumerationTypeText, getEnumType, getLineWidth, getNameConverter, getPackage, getPrefix, getRepeatedTypeText, getRepeatType, getRootParent, getSchemaTypes, isBindingPerSchema, isDeleteAnnotations, isGenerateAll, isInlineGroups, isJavaDocDocumentation, isNullCollectionAllowed, isPreferInline, isSchemaFragmentDocumentation, isStructureOptional, isUseInner, setEnumType, setPackage, setRepeatTypeprivate static final Logger s_logger
public static final StringArray s_allowedAttributes
private java.lang.String m_name
private java.lang.String m_namespace
private boolean m_forceTypes
private java.lang.String[] m_includes
private java.lang.String[] m_excludes
private SchemaElement m_schema
private SchemaExtension m_extension
public SchemaCustom(SchemasetCustom parent)
parent - public SchemaCustom(SchemasetCustom parent, java.lang.String name, java.lang.String namespace, java.lang.String[] includes, java.lang.String[] excludes)
parent - name - schema namenamespace - target namespace URIincludes - definition names to be included in generationexcludes - definition names to be excluded from generationprivate void preSet(IUnmarshallingContext uctx)
uctx - unmarshalling contextpublic java.lang.String[] getIncludes()
public void setIncludes(java.lang.String[] includes)
extend(PackageHolder, ValidationContext) is called.includes - public java.lang.String[] getExcludes()
public void setExcludes(java.lang.String[] excludes)
extend(PackageHolder, ValidationContext) is called.excludes - public 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 boolean isForceTypes()
true if types forced, false if notpublic void setForceTypes(java.lang.Boolean force)
force - true if types forced, false if notpublic 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(PackageHolder pack, ValidationContext vctx)
pack - package for generated classes (null if no code generation)vctx - validation contextprivate static SchemaCustom factory(IUnmarshallingContext ictx)
ictx -