public class ValidityState extends SimpleScriptable
ValidityState.| Constructor and Description |
|---|
ValidityState()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCustomError()
Returns whether the customer validity message is set or not.
|
boolean |
isPatternMismatch()
Returns whether the element value does not match its
pattern attribute. |
boolean |
isRangeOverlow()
Returns whether the element value is greater than its
max attribute. |
boolean |
isRangeUnderflow()
Returns whether the element value is less than its
min attribute. |
boolean |
isStepMismatch()
Returns whether the element value is invalid per its
step attribute. |
boolean |
isTooLong()
Returns whether the element value exceeds its
maxLength attribute. |
boolean |
isTypeMismatch()
Returns whether the element value is invalid per its
type attribute. |
boolean |
isValid()
Returns whether the element value is valid.
|
boolean |
isValueMissing()
Returns whether the element (with a
required attribute) has no value. |
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic boolean isCustomError()
public boolean isPatternMismatch()
pattern attribute.pattern attributepublic boolean isRangeOverlow()
max attribute.max attributepublic boolean isRangeUnderflow()
min attribute.min attributepublic boolean isStepMismatch()
step attribute.step attributepublic boolean isTooLong()
maxLength attribute.maxLength attributepublic boolean isTypeMismatch()
type attribute.type attributepublic boolean isValueMissing()
required attribute) has no value.required attribute) has no valuepublic boolean isValid()
Copyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.