public class SchemaExtension extends BaseExtension
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
m_bindingFileName
Binding file name (only allowed if single namespace,
null if derived from schema name). |
private SchemaCustom |
m_custom
Customization information for the schema.
|
private ClassDecorator[] |
m_decorators
Decorators to be used in code generation (
null if none set at level). |
private boolean |
m_forceBinding
Force a binding for this schema flag.
|
private boolean |
m_forceTypes
Always specify property types flag.
|
private boolean |
m_inlineGroups
Inline xs:group and xs:attributeGroup definitions by default.
|
private NameConverter |
m_nameConverter
Name converter instance (
null if none set at level). |
private PackageHolder |
m_package
Package to be used for class generation (may be
null if no code generation). |
private boolean |
m_preferInline
Prefer inline definitions.
|
private java.lang.String |
m_prefix
Prefix used for namespace (only allowed if single namespace,
null if from schema). |
private java.util.Map |
m_schemaTypes
Map from schema type name to Java type information.
|
private boolean |
m_useInnerClasses
Use inner classes for substructures.
|
ARITY_OPTIONAL_COLLECTION, ARITY_OPTIONAL_SINGLETON, ARITY_REQUIRED_COLLECTION, ARITY_REQUIRED_SINGLETON
Constructor and Description |
---|
SchemaExtension(SchemaElement schema,
SchemaCustom custom,
PackageHolder pack)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBindingFileName()
Get binding definition file name.
|
ClassDecorator[] |
getClassDecorators()
Get code generation decorators used for this component.
|
SchemaCustom |
getCustom()
Get the containing global extension.
|
NameConverter |
getNameConverter()
Get name converter used for this component.
|
PackageHolder |
getPackage()
Get package for class generation.
|
java.lang.String |
getPrefix()
Get prefix used for namespace.
|
java.util.Map |
getSchemaTypes()
Get map from schema type local name to type information.
|
boolean |
isForceBinding()
Check if separate binding forced for schema.
|
boolean |
isForceTypes()
Check if type specifications forced for schema.
|
boolean |
isInlineGroups()
Check whether xs:group and xs:attributeGroup definitions should be inlined by default.
|
boolean |
isPreferInline()
Check if inlining of definition preferred.
|
boolean |
isUseInnerClasses()
Check if inner classes should be used for substructures.
|
getComponent, getReplacementType, setTypeReplacer
private final SchemaCustom m_custom
private java.util.Map m_schemaTypes
private NameConverter m_nameConverter
null
if none set at level).private ClassDecorator[] m_decorators
null
if none set at level).private final PackageHolder m_package
null
if no code generation).private final boolean m_forceBinding
private final java.lang.String m_bindingFileName
null
if derived from schema name).private final java.lang.String m_prefix
null
if from schema).private final boolean m_inlineGroups
private final boolean m_preferInline
private final boolean m_useInnerClasses
private boolean m_forceTypes
public SchemaExtension(SchemaElement schema, SchemaCustom custom, PackageHolder pack)
schema
- root element of schema definitioncustom
- schema customizationspack
- package for code generated from schemapublic SchemaCustom getCustom()
public java.util.Map getSchemaTypes()
public NameConverter getNameConverter()
public ClassDecorator[] getClassDecorators()
public PackageHolder getPackage()
public boolean isForceBinding()
public java.lang.String getBindingFileName()
null
if to be derived from schema namepublic java.lang.String getPrefix()
null
if to be found from schemapublic boolean isInlineGroups()
public boolean isPreferInline()
public boolean isUseInnerClasses()
public boolean isForceTypes()