public class ComponentExtension extends BaseExtension
ARITY_OPTIONAL_COLLECTION, ARITY_OPTIONAL_SINGLETON, ARITY_REQUIRED_COLLECTION, ARITY_REQUIRED_SINGLETON| Constructor and Description |
|---|
ComponentExtension(OpenAttrBase comp,
GlobalExtension global)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyAndCountUsage(ValidationContext vctx)
Apply extensions to schema definition component, deleting components flagged for skipping and substituting types
as configured.
|
int |
getAnyType()
Get the xs:any handling type code to be applied for this component.
|
String |
getBaseName()
Get base name for corresponding property.
|
int |
getChoiceType()
Get the xs:choice handling type code to be applied for this component.
|
String |
getClassName()
Get name to be used for generated class.
|
GlobalExtension |
getGlobal()
Get the containing global extension.
|
QName |
getOverrideType()
Get override type.
|
int |
getUnionType()
Get the xs:union handling type code to be applied for this component.
|
int |
getUseCount()
Get the use count for the component.
|
int |
incrementUseCount()
Increment the use count for the component.
|
boolean |
isChoiceExposed()
Check if xs:choice selection state should be exposed for this component.
|
boolean |
isIgnored()
Check if component is to be ignored.
|
boolean |
isInlined()
Check if schema component is to be generated inline.
|
boolean |
isOptional()
Check if optional component.
|
boolean |
isRemoved()
Check if component to be removed from schema.
|
boolean |
isRepeated()
Check if repeated component.
|
boolean |
isSeparateClass()
Check if schema component is to be generated as a separate class.
|
boolean |
isUnionExposed()
Check if xs:union selection state should be exposed for this component.
|
protected boolean |
normalize(int depth)
Normalize the child schema definition.
|
void |
setOptional(boolean optional)
Set optional component.
|
void |
setOverrideType(QName qname)
Set override type.
|
void |
setRemoved(boolean removed)
Set flag for component to be removed from schema.
|
void |
setRepeated(boolean repeated)
Set repeated component.
|
getComponent, getReplacementType, setTypeReplacerpublic ComponentExtension(OpenAttrBase comp, GlobalExtension global)
comp - global - containing global definition extension (null allowed only as special case when
calling this constructor from the global extension subclass constructor)public boolean isRemoved()
public void setRemoved(boolean removed)
removed - public boolean isIgnored()
public boolean isOptional()
public void setOptional(boolean optional)
optional - public boolean isRepeated()
public void setRepeated(boolean repeated)
repeated - public boolean isInlined()
true if inlined, false if notpublic boolean isSeparateClass()
true if separate class, false if notpublic GlobalExtension getGlobal()
public QName getOverrideType()
null if none)public void setOverrideType(QName qname)
qname - type name (null if none)public int incrementUseCount()
public int getUseCount()
public String getClassName()
null if not set)public String getBaseName()
null if not set)public int getAnyType()
NestingCustomBase.ANY_DOM if not overridden at any level.public int getChoiceType()
NestingCustomBase.SELECTION_CHECKEDSET if not overridden at any level.public boolean isChoiceExposed()
public int getUnionType()
NestingCustomBase.SELECTION_CHECKEDSET if not overridden at any level.public boolean isUnionExposed()
public void applyAndCountUsage(ValidationContext vctx)
vctx - validation contextprotected boolean normalize(int depth)
depth - nesting depth for validationtrue if any part of tree under this component modified, false if notCopyright © 2005-2014 jibx.org. All Rights Reserved.