|
||||||
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.ComponentCustom
public class ComponentCustom
Class for all schema component elements, with the exception of the <schema> element itself. Almost all of these schema elements can contain other elements, so this extends the nesting base to handle inherited values.
Field Summary | |
---|---|
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 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. |
Fields inherited from class org.jibx.schema.codegen.custom.NestingCustomBase |
---|
ANY_DISCARD, ANY_DOM, ANY_MAPPED, s_allowedAttributes, s_anyValues, s_selectionValues, SELECTION_CHECKEDBOTH, SELECTION_CHECKEDSET, SELECTION_OVERRIDEBOTH, SELECTION_OVERRIDESET, SELECTION_UNCHECKED |
Constructor Summary | |
---|---|
ComponentCustom(java.lang.String name,
NestingCustomBase parent)
Constructor. |
Method Summary | |
---|---|
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). |
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 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 java.lang.String m_className
null
if not specified).
private java.lang.String m_baseName
null
if not specified).
private QName m_type
Constructor Detail |
---|
public ComponentCustom(java.lang.String name, NestingCustomBase parent)
name
- schema element nameparent
- Method Detail |
---|
public final java.lang.String getElementName()
public final SchemaPath buildPath(ValidationContext vctx)
vctx
- validation context
null
if errorpublic boolean isIgnored()
true
if ignored, false
if notpublic boolean isExcluded()
true
if ignored, false
if notpublic java.lang.String getClassName()
null
if not set)public java.lang.String getBaseName()
null
if not set)public final void apply(ComponentExtension exten, ValidationContext vctx)
exten
- target schema extensionvctx
- validation context
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |