Package com.iizix.ws.prop.xml.schema
Class Facet
- java.lang.Object
-
- com.iizix.prop.GProp<GProp<?>[]>
-
- com.iizix.prop.PropCnr
-
- com.iizix.ws.prop.xml.schema.SchemaComponent
-
- com.iizix.ws.prop.xml.schema.Facet
-
- All Implemented Interfaces:
EventListener
,IGProp<GProp<?>[]>
,IPropCnr
,java.lang.Cloneable
- Direct Known Subclasses:
EditorFacet
public class Facet extends SchemaComponent
The Restriction Schema property container for Simple Type.The Facets for simple type/content that are supported:
Constraint Description -------------- ------------------------------------------------------------------------------------------------------- enumeration Defines a list of acceptable values fractionDigits Specifies the maximum number of decimal places allowed. Must be equal to or greater than zero length Specifies the exact number of characters or list items allowed. Must be equal to or greater than zero maxExclusive Specifies the upper bounds for numeric values (the value must be less than this value) maxInclusive Specifies the upper bounds for numeric values (the value must be less than or equal to this value) maxLength Specifies the maximum number of characters or list items allowed. Must be equal to or greater than zero minExclusive Specifies the lower bounds for numeric values (the value must be greater than this value) minInclusive Specifies the lower bounds for numeric values (the value must be greater than or equal to this value) minLength Specifies the minimum number of characters or list items allowed. Must be equal to or greater than zero pattern Defines the exact sequence of characters that are acceptable totalDigits Specifies the maximum number of digits allowed. Must be greater than zero whiteSpace Specifies how white space (line feeds, tabs, spaces, and carriage returns) is handled
Syntax:
[restriction id=ID base=QName any attributes ] Content for simpleType: (annotation?,(simpleType?,(minExclusive|minInclusive| maxExclusive|maxInclusive|totalDigits|fractionDigits| length|minLength|maxLength|enumeration|whiteSpace|pattern)*)) Content for simpleContent: (annotation?,(simpleType?,(minExclusive |minInclusive| maxExclusive|maxInclusive|totalDigits|fractionDigits| length|minLength|maxLength|enumeration|whiteSpace|pattern)*)?, ((attribute|attributeGroup)*,anyAttribute?)) * [/restriction]
- Author:
- Christopher Mindus
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FACET_ENUMERATION
Facet string for string value: enumeration.static java.lang.String
FACET_FRACTIONDIGITS
Facet string for integer value: fractionDigits.static java.lang.String
FACET_LENGTH
Facet string for integer value: length.static java.lang.String
FACET_MAXEXCLUSIVE
Facet string for integer value: maxExclusive.static java.lang.String
FACET_MAXINCLUSIVE
Facet string for integer value: maxInclusive.static java.lang.String
FACET_MAXLENGTH
Facet string for integer value: maxLength.static java.lang.String
FACET_MINEXCLUSIVE
Facet string for integer value: minExclusive.static java.lang.String
FACET_MININCLUSIVE
Facet string for integer value: minInclusive.static java.lang.String
FACET_MINLENGTH
Facet string for integer value: minLength.static java.lang.String
FACET_PATTERN
Facet string for string value: pattern.static java.lang.String
FACET_TOTALDIGITS
Facet string for integer value: totalDigits.static java.lang.String
FACET_WHITESPACE
Facet string for string value: whiteSpace.-
Fields inherited from class com.iizix.prop.PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
-
Fields inherited from class com.iizix.prop.GProp
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
-
Fields inherited from interface com.iizix.prop.IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildMessage(IMessageBuilder messageBuilder, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPElement current, boolean isProduction)
Builds the SOAP message to send it.Facet
clone()
Clones the instance.java.lang.Integer
getFacetInteger()
Gets the facet Integer value.java.lang.String
getFacetString()
Gets the facet String value.static boolean
hasIntegerValue(java.lang.String facet)
Checks if the value is stored in a Integer for a facet.static boolean
hasStringValue(java.lang.String facet)
Checks if the value is stored in a String for a facet.boolean
isFixed()
Returns true if this facet is "fixed".-
Methods inherited from class com.iizix.ws.prop.xml.schema.SchemaComponent
addComponent, addComponent, getBaseName, getElementID, getLocalName, getName, getName, setInt, setName, usesPropIndex
-
Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualize
-
Methods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.iizix.prop.IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
-
Methods inherited from interface com.iizix.prop.IPropCnr
canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
-
-
-
-
Field Detail
-
FACET_LENGTH
public static final java.lang.String FACET_LENGTH
Facet string for integer value: length.- See Also:
- Constant Field Values
-
FACET_MINLENGTH
public static final java.lang.String FACET_MINLENGTH
Facet string for integer value: minLength.- See Also:
- Constant Field Values
-
FACET_MAXLENGTH
public static final java.lang.String FACET_MAXLENGTH
Facet string for integer value: maxLength.- See Also:
- Constant Field Values
-
FACET_TOTALDIGITS
public static final java.lang.String FACET_TOTALDIGITS
Facet string for integer value: totalDigits.- See Also:
- Constant Field Values
-
FACET_FRACTIONDIGITS
public static final java.lang.String FACET_FRACTIONDIGITS
Facet string for integer value: fractionDigits.- See Also:
- Constant Field Values
-
FACET_MININCLUSIVE
public static final java.lang.String FACET_MININCLUSIVE
Facet string for integer value: minInclusive.- See Also:
- Constant Field Values
-
FACET_MAXINCLUSIVE
public static final java.lang.String FACET_MAXINCLUSIVE
Facet string for integer value: maxInclusive.- See Also:
- Constant Field Values
-
FACET_MINEXCLUSIVE
public static final java.lang.String FACET_MINEXCLUSIVE
Facet string for integer value: minExclusive.- See Also:
- Constant Field Values
-
FACET_MAXEXCLUSIVE
public static final java.lang.String FACET_MAXEXCLUSIVE
Facet string for integer value: maxExclusive.- See Also:
- Constant Field Values
-
FACET_ENUMERATION
public static final java.lang.String FACET_ENUMERATION
Facet string for string value: enumeration.- See Also:
- Constant Field Values
-
FACET_PATTERN
public static final java.lang.String FACET_PATTERN
Facet string for string value: pattern.- See Also:
- Constant Field Values
-
FACET_WHITESPACE
public static final java.lang.String FACET_WHITESPACE
Facet string for string value: whiteSpace.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Facet
public Facet()
Creates a new unnamed Restriction property.
-
Facet
public Facet(Atom atom)
Creates a new named Restriction property.- Parameters:
atom
- The name.
-
-
Method Detail
-
hasStringValue
public static boolean hasStringValue(java.lang.String facet)
Checks if the value is stored in a String for a facet.- Parameters:
facet
- The facet to test.- Returns:
- true if the value is a String, otherwise false (if numeric or unknown).
-
hasIntegerValue
public static boolean hasIntegerValue(java.lang.String facet)
Checks if the value is stored in a Integer for a facet.- Parameters:
facet
- The facet to test.- Returns:
- true if the value is a Integer, otherwise false (if string or unknown).
-
clone
public Facet clone()
Clones the instance.- Overrides:
clone
in classSchemaComponent
-
getFacetInteger
public java.lang.Integer getFacetInteger()
Gets the facet Integer value.- Returns:
- The value, or null if not present or unknown facet.
-
getFacetString
public java.lang.String getFacetString()
Gets the facet String value.- Returns:
- The value, or null if not present or unknown facet.
-
isFixed
public boolean isFixed()
Returns true if this facet is "fixed".- Returns:
- true or false.
-
buildMessage
public void buildMessage(IMessageBuilder messageBuilder, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPElement current, boolean isProduction)
Builds the SOAP message to send it. Facets do not build anything, they are used for validation and formatting.- Specified by:
buildMessage
in classSchemaComponent
- Parameters:
messageBuilder
- The message builder.parent
- The parent element.current
- The current element, null if not already created.isProduction
- Flag indicating the data is "production data" as opposed to sample/template.
-
-