Package org.jibx.schema.elements
Class FacetElement
java.lang.Object
org.jibx.schema.elements.SchemaBase
org.jibx.schema.elements.OpenAttrBase
org.jibx.schema.elements.AnnotatedBase
org.jibx.schema.elements.FacetElement
- All Implemented Interfaces:
IComponent
- Direct Known Subclasses:
FacetElement.FixedFacet
,FacetElement.NoFixedFacet
Facet implementation. This base class is used for all facets, with static inner subclasses for the actual facets.
- Author:
- Dennis M. Sosnoski
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int[]
Ordered array of indexes for facet elements.static final long
Mask for facet elements.static final String[]
Ordered array of names of just the facet elements.static final int
static final int
private final int
Facet bit mask.private final int
Facet exclusion mask.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.jibx.schema.elements.AnnotatedBase
s_allowedAttributes
Fields inherited from class org.jibx.schema.elements.SchemaBase
ALL_TYPE, ANNOTATION_TYPE, ANY_TYPE, ANYATTRIBUTE_TYPE, APPINFO_TYPE, ATTRIBUTE_TYPE, ATTRIBUTEGROUP_TYPE, CHOICE_TYPE, COMPLEXCONTENT_TYPE, COMPLEXTYPE_TYPE, DOCUMENTATION_TYPE, ELEMENT_MASKS, ELEMENT_NAMES, ELEMENT_TYPE, ENUMERATION_TYPE, EXTENSION_TYPE, FIELD_TYPE, FRACTIONDIGITS_TYPE, GROUP_TYPE, IMPORT_TYPE, INCLUDE_TYPE, KEY_TYPE, KEYREF_TYPE, LENGTH_TYPE, LIST_TYPE, MAXEXCLUSIVE_TYPE, MAXINCLUSIVE_TYPE, MAXLENGTH_TYPE, MINEXCLUSIVE_TYPE, MININCLUSIVE_TYPE, MINLENGTH_TYPE, NOTATION_TYPE, PATTERN_TYPE, REDEFINE_TYPE, RESTRICTION_TYPE, SCHEMA_TYPE, SELECTOR_TYPE, SEQUENCE_TYPE, SIMPLECONTENT_TYPE, SIMPLETYPE_TYPE, TOTALDIGITS_TYPE, UNION_TYPE, UNIQUE_TYPE, WHITESPACE_TYPE
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FacetElement
(int type, int bit, int exclude) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Get facet bit mask.int
Get excludes bit mask.Methods inherited from class org.jibx.schema.elements.AnnotatedBase
getAnnotation, getId, prevalidate, setAnnotation, setId
Methods inherited from class org.jibx.schema.elements.OpenAttrBase
addExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributes
Methods inherited from class org.jibx.schema.elements.SchemaBase
addNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, preset, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespaces
-
Field Details
-
LENGTH_FACET_BIT
public static final int LENGTH_FACET_BIT- See Also:
-
MINLENGTH_FACET_BIT
public static final int MINLENGTH_FACET_BIT- See Also:
-
MAXLENGTH_FACET_BIT
public static final int MAXLENGTH_FACET_BIT- See Also:
-
PATTERN_FACET_BIT
public static final int PATTERN_FACET_BIT- See Also:
-
ENUMERATION_FACET_BIT
public static final int ENUMERATION_FACET_BIT- See Also:
-
WHITESPACE_FACET_BIT
public static final int WHITESPACE_FACET_BIT- See Also:
-
MAXINCLUSIVE_FACET_BIT
public static final int MAXINCLUSIVE_FACET_BIT- See Also:
-
MAXEXCLUSIVE_FACET_BIT
public static final int MAXEXCLUSIVE_FACET_BIT- See Also:
-
MININCLUSIVE_FACET_BIT
public static final int MININCLUSIVE_FACET_BIT- See Also:
-
MINEXCLUSIVE_FACET_BIT
public static final int MINEXCLUSIVE_FACET_BIT- See Also:
-
TOTALDIGITS_FACET_BIT
public static final int TOTALDIGITS_FACET_BIT- See Also:
-
FRACTIONDIGITS_FACET_BIT
public static final int FRACTIONDIGITS_FACET_BIT- See Also:
-
FACET_ELEMENT_INDEXES
public static final int[] FACET_ELEMENT_INDEXESOrdered array of indexes for facet elements. -
FACET_ELEMENT_NAMES
Ordered array of names of just the facet elements. -
FACET_ELEMENT_MASK
public static final long FACET_ELEMENT_MASKMask for facet elements. -
m_bitMask
private final int m_bitMaskFacet bit mask. -
m_excludesMask
private final int m_excludesMaskFacet exclusion mask.
-
-
Constructor Details
-
FacetElement
protected FacetElement(int type, int bit, int exclude) Constructor.- Parameters:
type
-bit
- maskexclude
- exclusion bit mask
-
-
Method Details
-
getBitMask
public int getBitMask()Get facet bit mask.- Returns:
- bit mask
-
getExcludesMask
public int getExcludesMask()Get excludes bit mask.- Returns:
- bit mask
-