public class ComponentCustom extends NestingCustomBase
Modifier and Type | Field and Description |
---|---|
static int |
INLINE_BLOCK |
static int |
INLINE_DEFAULT |
static int |
INLINE_PREFER |
private java.lang.String |
m_baseName
Base name for corresponding property in generated code (
null if not specified). |
private java.lang.String |
m_className
Corresponding generated class name (
null if not specified). |
private java.lang.String |
m_componentName
Component name, if relevant.
|
private java.lang.String |
m_elementName
Schema element name.
|
private boolean |
m_exclude
Exclude component flag.
|
private boolean |
m_ignore
Ignore component flag.
|
private int |
m_inline
Code for inlining.
|
private java.lang.String |
m_path
Path to component (
null if not specified). |
private java.lang.String |
m_position
Component position in siblings of same type (
null if not specified). |
private QName |
m_type
Actual type to be used.
|
static EnumSet |
s_inlineValues |
ANY_DISCARD, ANY_DOM, ANY_MAPPED, s_allowedAttributes, s_anyValues, s_selectionValues, SELECTION_CHECKEDBOTH, SELECTION_CHECKEDSET, SELECTION_OVERRIDEBOTH, SELECTION_OVERRIDESET, SELECTION_UNCHECKED
Constructor and Description |
---|
ComponentCustom(java.lang.String name,
NestingCustomBase parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ComponentExtension exten,
ValidationContext vctx)
Apply customizations to a schema extension.
|
SchemaPath |
buildPath(ValidationContext vctx)
Build the schema path for this customization.
|
java.lang.String |
getBaseName()
Get base name for corresponding property.
|
java.lang.String |
getClassName()
Get name to be used for generated class.
|
java.lang.String |
getElementName()
Get the schema element name for the component.
|
boolean |
isExcluded()
Check if schema component is to be excluded.
|
boolean |
isIgnored()
Check if schema component is to be ignored (allowed, but not processed, in unmarshalling).
|
boolean |
isInlined()
Check if schema component is to be generated inline.
|
boolean |
isSeparateClass()
Check if schema component is to be generated as a separate class.
|
private void |
setInline(java.lang.String text,
IUnmarshallingContext ictx)
Set the inline text value.
|
getActiveFacetsMask, getAnyHandling, getAnyType, getChildren, getChoiceHandling, getChoiceType, getReplacement, getSubstitutions, getUnionHandling, getUnionType, isAttributeInlined, isChoiceExposed, isUnionExposed, setAnyType, setChoiceType, setEnforcedFacets, setIgnoredFacets, setReplacement, setSubstitutions, setUnionType, validate
getContainingObject, getParent, getSchemaRoot, setParent, validateAttributes
public static final int INLINE_DEFAULT
public static final int INLINE_BLOCK
public static final int INLINE_PREFER
public static final EnumSet s_inlineValues
private final java.lang.String m_elementName
private java.lang.String m_path
null
if not specified).private java.lang.String m_position
null
if not specified).private java.lang.String m_componentName
private boolean m_ignore
private boolean m_exclude
private int m_inline
private java.lang.String m_className
null
if not specified).private java.lang.String m_baseName
null
if not specified).private QName m_type
public ComponentCustom(java.lang.String name, NestingCustomBase parent)
name
- schema element nameparent
- public final java.lang.String getElementName()
public final SchemaPath buildPath(ValidationContext vctx)
vctx
- validation contextnull
if errorpublic boolean isIgnored()
true
if ignored, false
if notpublic boolean isExcluded()
true
if ignored, false
if notpublic boolean isInlined()
true
if inlined, false
if notpublic boolean isSeparateClass()
true
if separate class, false
if notpublic java.lang.String getClassName()
null
if not set)public java.lang.String getBaseName()
null
if not set)private void setInline(java.lang.String text, IUnmarshallingContext ictx)
text
- (null
if not set)ictx
- public final void apply(ComponentExtension exten, ValidationContext vctx)
exten
- target schema extensionvctx
- validation context