public abstract class NestingCustomBase extends CustomBase implements TypeReplacer
Modifier and Type | Field and Description |
---|---|
static int |
ANY_DISCARD |
static int |
ANY_DOM |
static int |
ANY_MAPPED |
private long |
m_activeFacetsMask
Mask for facets active at this level (all facets not in scope of an ignore state).
|
private int |
m_anyCode
Code for xs:any representation (
-1 if not set at level). |
private LazyList |
m_children
Child customizations.
|
private int |
m_choiceCode
Code for xs:choice handling (
-1 if not set at level). |
private java.lang.Boolean |
m_choiceExposed
Expose choice selection state directly to user.
|
private long |
m_enforcedFacetsMask
Mask for facets enforced at this level.
|
private long |
m_ignoredFacetsMask
Mask for facets ignored at this level.
|
private QName[] |
m_substitutions
List of type substitution pairs.
|
private java.util.Map |
m_typeSubstitutionMap
Map of type substitutions.
|
private int |
m_unionCode
Code for xs:union handling (
-1 if not set at level). |
private java.lang.Boolean |
m_unionExposed
Expose union selection state directly to user.
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
static EnumSet |
s_anyValues |
static EnumSet |
s_selectionValues |
static int |
SELECTION_CHECKEDBOTH |
static int |
SELECTION_CHECKEDSET |
static int |
SELECTION_OVERRIDEBOTH |
static int |
SELECTION_OVERRIDESET |
static int |
SELECTION_UNCHECKED |
Constructor and Description |
---|
NestingCustomBase(NestingCustomBase parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getActiveFacetsMask()
Get the bitmask of facet element flags to be processed.
|
java.lang.String |
getAnyHandling()
Get the xs:any handling text value set specifically for this element.
|
int |
getAnyType()
Get the xs:any handling type code to be applied for this component and all nested components.
|
LazyList |
getChildren()
Get child customizations.
|
java.lang.String |
getChoiceHandling()
Get the xs:choice handling text value set specifically for this element.
|
int |
getChoiceType()
Get the xs:choice handling type code to be applied for this component and all nested components.
|
QName |
getReplacement(QName qname)
Get replacement type.
|
QName[] |
getSubstitutions()
Get type substitution pairs list.
|
java.lang.String |
getUnionHandling()
Get the xs:union handling text value set specifically for this element.
|
int |
getUnionType()
Get the xs:union handling type code to be applied for this component and all nested components.
|
boolean |
isAttributeInlined()
Check whether xs:attribute definitions should always be inlined, even when used in multiple locations.
|
boolean |
isChoiceExposed()
Check whether xs:choice selection states should be exposed to the user.
|
boolean |
isUnionExposed()
Check whether xs:union selection states should be exposed to the user.
|
private void |
setAnyHandling(java.lang.String text,
IUnmarshallingContext ictx)
Set the xs:any handling text value.
|
void |
setAnyType(int code)
Set the xs:any handling type code.
|
private void |
setChoiceHandling(java.lang.String text,
IUnmarshallingContext ictx)
Set the xs:choice handling text value.
|
void |
setChoiceType(int code)
Set the xs:choice handling type code.
|
void |
setEnforcedFacets(java.lang.String[] facets,
IUnmarshallingContext ictx)
Set the list of facet elements to be enforced.
|
void |
setIgnoredFacets(java.lang.String[] facets,
IUnmarshallingContext ictx)
Set the list of facet elements to be ignored.
|
protected void |
setReplacement(QName original,
QName replace)
Set a type replacement.
|
void |
setSubstitutions(QName[] subs)
Set type substitution pairs list.
|
private void |
setUnionHandling(java.lang.String text,
IUnmarshallingContext ictx)
Set the xs:union handling text value.
|
void |
setUnionType(int code)
Set the xs:union handling type code.
|
boolean |
validate(ValidationContext vctx)
Validate and finalize customization information.
|
getContainingObject, getParent, getSchemaRoot, setParent, validateAttributes
public static final StringArray s_allowedAttributes
public static final int ANY_DISCARD
public static final int ANY_DOM
public static final int ANY_MAPPED
public static final EnumSet s_anyValues
public static final int SELECTION_UNCHECKED
public static final int SELECTION_CHECKEDSET
public static final int SELECTION_CHECKEDBOTH
public static final int SELECTION_OVERRIDESET
public static final int SELECTION_OVERRIDEBOTH
public static final EnumSet s_selectionValues
private QName[] m_substitutions
private long m_enforcedFacetsMask
private long m_ignoredFacetsMask
private java.lang.Boolean m_choiceExposed
private int m_choiceCode
-1
if not set at level).private java.lang.Boolean m_unionExposed
private int m_unionCode
-1
if not set at level).private int m_anyCode
-1
if not set at level).private final LazyList m_children
private java.util.Map m_typeSubstitutionMap
private long m_activeFacetsMask
public NestingCustomBase(NestingCustomBase parent)
parent
- public QName[] getSubstitutions()
public void setSubstitutions(QName[] subs)
subs
- public void setEnforcedFacets(java.lang.String[] facets, IUnmarshallingContext ictx)
facets
- ictx
- public void setIgnoredFacets(java.lang.String[] facets, IUnmarshallingContext ictx)
facets
- ictx
- public long getActiveFacetsMask()
public LazyList getChildren()
protected void setReplacement(QName original, QName replace)
original
- replace
- public QName getReplacement(QName qname)
getReplacement
in interface TypeReplacer
qname
- null
if deletion; original type, if no replacement defined)public int getAnyType()
ANY_DOM
if not overridden at any level.public void setAnyType(int code)
code
- handling code, -1
if to be unsetpublic java.lang.String getAnyHandling()
null
if not set)private void setAnyHandling(java.lang.String text, IUnmarshallingContext ictx)
text
- (null
if not set)ictx
- public boolean isChoiceExposed()
false
if not
overridden at any level.public int getChoiceType()
SELECTION_CHECKEDSET
if not overridden at any level.public void setChoiceType(int code)
code
- handling code, -1
if to be unsetpublic java.lang.String getChoiceHandling()
null
if not set)private void setChoiceHandling(java.lang.String text, IUnmarshallingContext ictx)
text
- (null
if not set)ictx
- public boolean isUnionExposed()
false
if not
overridden at any level.public int getUnionType()
SELECTION_CHECKEDSET
if not overridden at any level.public void setUnionType(int code)
code
- handling code, -1
if to be unsetpublic java.lang.String getUnionHandling()
null
if not set)private void setUnionHandling(java.lang.String text, IUnmarshallingContext ictx)
text
- (null
if not set)ictx
- public boolean isAttributeInlined()
false
if not overridden at any level.
TODO: implement in customizationspublic boolean validate(ValidationContext vctx)
vctx
- validation contexttrue
if valid, false
if not