public class ValidityState extends HtmlUnitScriptable
ValidityState.org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunctionCONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description |
|---|
ValidityState() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBadInput() |
boolean |
isCustomError() |
boolean |
isPatternMismatch()
Returns whether the element value does not match its
pattern attribute. |
boolean |
isRangeOverflow()
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 |
isTooShort()
Returns whether the element value exceeds its
minLength 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. |
void |
jsConstructor()
JavaScript constructor.
|
void |
setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromiseapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkSlotRemoval, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, sizecreateSlotMappublic void jsConstructor()
public void setDomNode(DomNode domNode)
setDomNode in class HtmlUnitScriptabledomNode - the DOM nodepublic boolean isBadInput()
public boolean isCustomError()
public boolean isPatternMismatch()
pattern attribute.pattern attributepublic boolean isRangeOverflow()
max attribute.max attributepublic boolean isRangeUnderflow()
min attribute.min attributepublic boolean isStepMismatch()
step attribute.step attributepublic boolean isTooLong()
maxLength attribute.maxLength attributepublic boolean isTooShort()
minLength attribute.minLength attributepublic boolean isTypeMismatch()
type attribute.type attributepublic boolean isValueMissing()
required attribute) has no value.required attribute) has no valuepublic boolean isValid()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.