09 April 2002

Appendix C: ECMAScript Language Binding

This appendix contains the complete ECMAScript [ECMAScript] binding for the Level 3 Document Object Model Abstract Schemas and Load and Save definitions.

Properties of the ASConstants Constructor function:
ASConstants.ELEMENT_DECLARATION
The value of the constant ASConstants.ELEMENT_DECLARATION is 1.
ASConstants.ATTRIBUTE_DECLARATION
The value of the constant ASConstants.ATTRIBUTE_DECLARATION is 2.
ASConstants.NOTATION_DECLARATION
The value of the constant ASConstants.NOTATION_DECLARATION is 3.
ASConstants.ENTITY_DECLARATION
The value of the constant ASConstants.ENTITY_DECLARATION is 4.
ASConstants.CONTENT_MODEL
The value of the constant ASConstants.CONTENT_MODEL is 5.
ASConstants.SCHEMA_MODEL
The value of the constant ASConstants.SCHEMA_MODEL is 6.
ASConstants.INTERNAL_SUBSET
The value of the constant ASConstants.INTERNAL_SUBSET is 30.
ASConstants.EXTERNAL_SUBSET
The value of the constant ASConstants.EXTERNAL_SUBSET is 31.
ASConstants.NOT_USED
The value of the constant ASConstants.NOT_USED is 32.
ASConstants.INTERNAL_ENTITY
The value of the constant ASConstants.INTERNAL_ENTITY is 33.
ASConstants.EXTERNAL_ENTITY
The value of the constant ASConstants.EXTERNAL_ENTITY is 34.
ASConstants.EMPTY_CONTENTTYPE
The value of the constant ASConstants.EMPTY_CONTENTTYPE is 40.
ASConstants.SIMPLE_CONTENTTYPE
The value of the constant ASConstants.SIMPLE_CONTENTTYPE is 41.
ASConstants.ELEMENT_CONTENTTYPE
The value of the constant ASConstants.ELEMENT_CONTENTTYPE is 42.
ASConstants.MIXED_CONTENTTYPE
The value of the constant ASConstants.MIXED_CONTENTTYPE is 43.
ASConstants.ANY_CONTENTTYPE
The value of the constant ASConstants.ANY_CONTENTTYPE is 44.
ASConstants.SEQUENCE_CM
The value of the constant ASConstants.SEQUENCE_CM is 50.
ASConstants.CHOICE_CM
The value of the constant ASConstants.CHOICE_CM is 51.
ASConstants.ALL_CM
The value of the constant ASConstants.ALL_CM is 52.
ASConstants.UNDEFINED_CM
The value of the constant ASConstants.UNDEFINED_CM is 53.
ASConstants.ATOMIC_CM
The value of the constant ASConstants.ATOMIC_CM is 54.
ASConstants.NONE_VC
The value of the constant ASConstants.NONE_VC is 0.
ASConstants.DEFAULT_VC
The value of the constant ASConstants.DEFAULT_VC is 60.
ASConstants.FIXED_VC
The value of the constant ASConstants.FIXED_VC is 61.
ASConstants.REQUIRED_VC
The value of the constant ASConstants.REQUIRED_VC is 62.
ASConstants.UNBOUNDED
The value of the constant ASConstants.UNBOUNDED is MAX_VALUE.
Objects that implement the ASConstants interface:
Objects that implement the ASObject interface:
Properties of objects that implement the ASObject interface:
objectType
This read-only property is a Number.
ownerModel
This read-only property is an object that implements the ASModel interface.
rawname
This read-only property is a String.
name
This read-only property is a String.
namespace
This read-only property is a String.
Functions of objects that implement the ASObject interface:
cloneASObject(deep)
This function returns an object that implements the ASObject interface.
The deep parameter is a Boolean.
This function can raise an object that implements the ASException interface.
Properties of the ASDataType Constructor function:
ASDataType.STRING_DATATYPE
The value of the constant ASDataType.STRING_DATATYPE is 1.
ASDataType.NOTATION_DATATYPE
The value of the constant ASDataType.NOTATION_DATATYPE is 10.
ASDataType.ID_DATATYPE
The value of the constant ASDataType.ID_DATATYPE is 11.
ASDataType.IDREF_DATATYPE
The value of the constant ASDataType.IDREF_DATATYPE is 12.
ASDataType.IDREFS_DATATYPE
The value of the constant ASDataType.IDREFS_DATATYPE is 13.
ASDataType.ENTITY_DATATYPE
The value of the constant ASDataType.ENTITY_DATATYPE is 14.
ASDataType.ENTITIES_DATATYPE
The value of the constant ASDataType.ENTITIES_DATATYPE is 15.
ASDataType.NMTOKEN_DATATYPE
The value of the constant ASDataType.NMTOKEN_DATATYPE is 16.
ASDataType.NMTOKENS_DATATYPE
The value of the constant ASDataType.NMTOKENS_DATATYPE is 17.
ASDataType.BOOLEAN_DATATYPE
The value of the constant ASDataType.BOOLEAN_DATATYPE is 100.
ASDataType.FLOAT_DATATYPE
The value of the constant ASDataType.FLOAT_DATATYPE is 101.
ASDataType.DOUBLE_DATATYPE
The value of the constant ASDataType.DOUBLE_DATATYPE is 102.
ASDataType.DECIMAL_DATATYPE
The value of the constant ASDataType.DECIMAL_DATATYPE is 103.
ASDataType.HEXBINARY_DATATYPE
The value of the constant ASDataType.HEXBINARY_DATATYPE is 104.
ASDataType.BASE64BINARY_DATATYPE
The value of the constant ASDataType.BASE64BINARY_DATATYPE is 105.
ASDataType.ANYURI_DATATYPE
The value of the constant ASDataType.ANYURI_DATATYPE is 106.
ASDataType.QNAME_DATATYPE
The value of the constant ASDataType.QNAME_DATATYPE is 107.
ASDataType.DURATION_DATATYPE
The value of the constant ASDataType.DURATION_DATATYPE is 108.
ASDataType.DATETIME_DATATYPE
The value of the constant ASDataType.DATETIME_DATATYPE is 109.
ASDataType.DATE_DATATYPE
The value of the constant ASDataType.DATE_DATATYPE is 110.
ASDataType.TIME_DATATYPE
The value of the constant ASDataType.TIME_DATATYPE is 111.
ASDataType.GYEARMONTH_DATATYPE
The value of the constant ASDataType.GYEARMONTH_DATATYPE is 112.
ASDataType.GYEAR_DATATYPE
The value of the constant ASDataType.GYEAR_DATATYPE is 113.
ASDataType.GMONTHDAY_DATATYPE
The value of the constant ASDataType.GMONTHDAY_DATATYPE is 114.
ASDataType.GDAY_DATATYPE
The value of the constant ASDataType.GDAY_DATATYPE is 115.
ASDataType.GMONTH_DATATYPE
The value of the constant ASDataType.GMONTH_DATATYPE is 116.
ASDataType.INTEGER
The value of the constant ASDataType.INTEGER is 117.
ASDataType.NAME_DATATYPE
The value of the constant ASDataType.NAME_DATATYPE is 200.
ASDataType.NCNAME_DATATYPE
The value of the constant ASDataType.NCNAME_DATATYPE is 201.
ASDataType.NORMALIZEDSTRING_DATATYPE
The value of the constant ASDataType.NORMALIZEDSTRING_DATATYPE is 202.
ASDataType.TOKEN_DATATYPE
The value of the constant ASDataType.TOKEN_DATATYPE is 203.
ASDataType.LANGUAGE_DATATYPE
The value of the constant ASDataType.LANGUAGE_DATATYPE is 204.
ASDataType.NONPOSITIVEINTEGER_DATATYPE
The value of the constant ASDataType.NONPOSITIVEINTEGER_DATATYPE is 205.
ASDataType.NEGATIVEINTEGER_DATATYPE
The value of the constant ASDataType.NEGATIVEINTEGER_DATATYPE is 206.
ASDataType.LONG_DATATYPE
The value of the constant ASDataType.LONG_DATATYPE is 207.
ASDataType.INT_DATATYPE
The value of the constant ASDataType.INT_DATATYPE is 208.
ASDataType.SHORT_DATATYPE
The value of the constant ASDataType.SHORT_DATATYPE is 209.
ASDataType.BYTE_DATATYPE
The value of the constant ASDataType.BYTE_DATATYPE is 210.
ASDataType.NONNEGATIVEINTEGER_DATATYPE
The value of the constant ASDataType.NONNEGATIVEINTEGER_DATATYPE is 211.
ASDataType.UNSIGNEDLONG_DATATYPE
The value of the constant ASDataType.UNSIGNEDLONG_DATATYPE is 212.
ASDataType.UNSIGNEDINT_DATATYPE
The value of the constant ASDataType.UNSIGNEDINT_DATATYPE is 213.
ASDataType.UNSIGNEDSHORT_DATATYPE
The value of the constant ASDataType.UNSIGNEDSHORT_DATATYPE is 214.
ASDataType.UNSIGNEDBYTE_DATATYPE
The value of the constant ASDataType.UNSIGNEDBYTE_DATATYPE is 215.
ASDataType.POSITIVEINTEGER_DATATYPE
The value of the constant ASDataType.POSITIVEINTEGER_DATATYPE is 216.
ASDataType.ANYSIMPLETYPE_DATATYPE
The value of the constant ASDataType.ANYSIMPLETYPE_DATATYPE is 216.
ASDataType.ANYTYPE_DATATYPE
The value of the constant ASDataType.ANYTYPE_DATATYPE is 216.
Objects that implement the ASDataType interface:
Properties of objects that implement the ASDataType interface:
dataType
This read-only property is a Number.
Objects that implement the ASObjectList interface:
Properties of objects that implement the ASObjectList interface:
length
This read-only property is a Number.
Functions of objects that implement the ASObjectList interface:
item(index)
This function returns an object that implements the ASObject interface.
The index parameter is a Number.
Note: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer index is equivalent to invoking the item function with that index.
Objects that implement the ASNamedObjectMap interface:
Properties of objects that implement the ASNamedObjectMap interface:
length
This read-only property is a Number.
Functions of objects that implement the ASNamedObjectMap interface:
item(index)
This function returns an object that implements the ASObject interface.
The index parameter is a Number.
Note: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer index is equivalent to invoking the item function with that index.
getNamedItem(name)
This function returns an object that implements the ASObject interface.
The name parameter is a String.
getNamedItemNS(namespaceURI, localName)
This function returns an object that implements the ASObject interface.
The namespaceURI parameter is a String.
The localName parameter is a String.
Objects that implement the ASModel interface:
Objects that implement the ASModel interface have all properties and functions of the ASObject interface as well as the properties and functions defined below.
Properties of objects that implement the ASModel interface:
namespaceAware
This read-only property is a Boolean.
usage
This read-only property is a Number.
location
This read-only property is a String.
hint
This read-only property is a String.
container
This read-only property is a Boolean.
Functions of objects that implement the ASModel interface:
getComponents(objectType)
This function returns an object that implements the ASNamedObjectMap interface.
The objectType parameter is a Number.
getElementDecl(name, targetNamespace)
This function returns an object that implements the ASElementDecl interface.
The name parameter is a String.
The targetNamespace parameter is a String.
getAttributeDecl(name, targetNamespace)
This function returns an object that implements the ASAttributeDecl interface.
The name parameter is a String.
The targetNamespace parameter is a String.
getEntityDecl(name)
This function returns an object that implements the ASEntityDecl interface.
The name parameter is a String.
getNotationDecl(name, targetNamespace)
This function returns an object that implements the ASNotationDecl interface.
The name parameter is a String.
The targetNamespace parameter is a String.
Objects that implement the ASContentModel interface:
Objects that implement the ASContentModel interface have all properties and functions of the ASObject interface as well as the properties and functions defined below.
Properties of objects that implement the ASContentModel interface:
contentModelType
This read-only property is a Number.
minOccurs
This read-only property is a Number.
maxOccurs
This read-only property is a Number.
subModels
This read-only property is an object that implements the ASObjectList interface.
Objects that implement the ASElementDecl interface:
Objects that implement the ASElementDecl interface have all properties and functions of the ASObject interface as well as the properties and functions defined below.
Properties of objects that implement the ASElementDecl interface:
type
This read-only property is an object that implements the ASDataType interface.
contentType
This read-only property is a Number.
strictMixedContent
This read-only property is a Boolean.
contentModel
This read-only property is an object that implements the ASContentModel interface.
isPCDataOnly
This read-only property is a Boolean.
attributeDecls
This read-only property is an object that implements the ASNamedObjectMap interface.
Functions of objects that implement the ASElementDecl interface:
getAttributeDecl(name, targetNamespace)
This function returns an object that implements the ASAttributeDecl interface.
The name parameter is a String.
The targetNamespace parameter is a String.
Objects that implement the ASAttributeDecl interface:
Objects that implement the ASAttributeDecl interface have all properties and functions of the ASObject interface as well as the properties and functions defined below.
Properties of objects that implement the ASAttributeDecl interface:
type
This read-only property is an object that implements the ASDataType interface.
enumAttr
This read-only property is a String.
ownerElementDeclarations
This read-only property is an object that implements the ASObjectList interface.
defaultType
This read-only property is a Number.
value
This read-only property is a String.
Objects that implement the ASEntityDecl interface:
Objects that implement the ASEntityDecl interface have all properties and functions of the ASObject interface as well as the properties and functions defined below.
Properties of objects that implement the ASEntityDecl interface:
entityType
This read-only property is a Number.
entityValue
This read-only property is a String.
systemId
This read-only property is a String.
publicId
This read-only property is a String.
Objects that implement the ASNotationDecl interface:
Objects that implement the ASNotationDecl interface have all properties and functions of the ASObject interface as well as the properties and functions defined below.
Properties of objects that implement the ASNotationDecl interface:
systemId
This read-only property is a String.
publicId
This read-only property is a String.
Objects that implement the ASWModel interface:
Objects that implement the ASWModel interface have all properties and functions of the ASModel interface as well as the properties and functions defined below.
Functions of objects that implement the ASWModel interface:
setLocation(location)
This function has no return value.
The location parameter is a String.
setHint(hint)
This function has no return value.
The hint parameter is a String.
addComponent(declaration)
This function has no return value.
The declaration parameter is an object that implements the ASObject interface.
removeComponent(declaration)
This function has no return value.
The declaration parameter is an object that implements the ASObject interface.
addASModel(declaration)
This function has no return value.
The declaration parameter is an object that implements the ASModel interface.
removeASModel(declaration)
This function has no return value.
The declaration parameter is an object that implements the ASModel interface.
getASModels()
This function returns an object that implements the ASObjectList interface.
importASObject(asobject)
This function returns an object that implements the ASObject interface.
The asobject parameter is an object that implements the ASObject interface.
insertASObject(asobject)
This function has no return value.
The asobject parameter is an object that implements the ASObject interface.
validate()
This function returns a Boolean.
createASWElementDecl(namespaceURI, name)
This function returns an object that implements the ASWElementDecl interface.
The namespaceURI parameter is a String.
The name parameter is a String.
This function can raise an object that implements the ASException interface.
createASWAttributeDecl(namespaceURI, name)
This function returns an object that implements the ASWAttributeDecl interface.
The namespaceURI parameter is a String.
The name parameter is a String.
This function can raise an object that implements the ASException interface.
createASWNotationDecl(namespaceURI, name, systemId, publicId)
This function returns an object that implements the ASWNotationDecl interface.
The namespaceURI parameter is a String.
The name parameter is a String.
The systemId parameter is a String.
The publicId parameter is a String.
This function can raise an object that implements the ASException interface.
createASWEntityDecl(name)
This function returns an object that implements the ASWEntityDecl interface.
The name parameter is a String.
This function can raise an object that implements the ASException interface.
createASWContentModel(name, namespaceURI, minOccurs, maxOccurs, operator)
This function returns an object that implements the ASWContentModel interface.
The name parameter is a String.
The namespaceURI parameter is a String.
The minOccurs parameter is a Number.
The maxOccurs parameter is a Number.
The operator parameter is a Number.
This function can raise an object that implements the ASException interface.
Objects that implement the ASWNamedObjectMap interface:
Objects that implement the ASWNamedObjectMap interface have all properties and functions of the ASNamedObjectMap interface as well as the properties and functions defined below.
Functions of objects that implement the ASWNamedObjectMap interface:
removeNamedItem(name)
This function returns an object that implements the ASObject interface.
The name parameter is a String.
This function can raise an object that implements the ASException interface.
setNamedItem(newASObject)
This function returns an object that implements the ASObject interface.
The newASObject parameter is an object that implements the ASObject interface.
This function can raise an object that implements the ASException interface or the ASException interface.
setNamedItemNS(arg)
This function returns an object that implements the ASObject interface.
The arg parameter is an object that implements the ASObject interface.
This function can raise an object that implements the ASException interface.
removeNamedItemNS(namespaceURI, localName)
This function returns an object that implements the ASObject interface.
The namespaceURI parameter is a String.
The localName parameter is a String.
This function can raise an object that implements the DOMException interface.
Objects that implement the ASWElementDecl interface:
Objects that implement the ASWElementDecl interface have all properties and functions of the ASElementDecl interface as well as the properties and functions defined below.
Functions of objects that implement the ASWElementDecl interface:
setRawname(rawname)
This function has no return value.
The rawname parameter is a String.
setName(name)
This function has no return value.
The name parameter is a String.
setNamespace(namespaceURI)
This function has no return value.
The namespaceURI parameter is a String.
setStrictMixedContent(mixedContent)
This function has no return value.
The mixedContent parameter is a Boolean.
setType(type)
This function has no return value.
The type parameter is an object that implements the ASDataType interface.
setContentType(contentType)
This function has no return value.
The contentType parameter is a Number.
setContentModel(contentModel)
This function has no return value.
The contentModel parameter is an object that implements the ASWContentModel interface.
addAttributeDecl(attributeDecl)
This function has no return value.
The attributeDecl parameter is an object that implements the ASWAttributeDecl interface.
removeAttributeDecl(attributeDecl)
This function returns an object that implements the ASWAttributeDecl interface.
The attributeDecl parameter is an object that implements the ASWAttributeDecl interface.
Objects that implement the ASWContentModel interface:
Objects that implement the ASWContentModel interface have all properties and functions of the ASContentModel interface as well as the properties and functions defined below.
Functions of objects that implement the ASWContentModel interface:
setName(name)
This function has no return value.
The name parameter is a String.
setNamespaceURI(namespaceURI)
This function has no return value.
The namespaceURI parameter is a String.
setContentModelType(operator)
This function has no return value.
The operator parameter is a Number.
setMinOccurs(minOccurs)
This function has no return value.
The minOccurs parameter is a Number.
setMaxOccurs(maxOccurs)
This function has no return value.
The maxOccurs parameter is a Number.
removeSubModel(oldObject)
This function has no return value.
The oldObject parameter is an object that implements the ASObject interface.
insertBeforeSubModel(newObject, refObject)
This function returns an object that implements the ASObject interface.
The newObject parameter is an object that implements the ASObject interface.
The refObject parameter is an object that implements the ASObject interface.
This function can raise an object that implements the ASException interface.
appendSubModel(newObject)
This function returns a Number.
The newObject parameter is an object that implements the ASObject interface.
This function can raise an object that implements the ASException interface.
Objects that implement the ASWAttributeDecl interface:
Objects that implement the ASWAttributeDecl interface have all properties and functions of the ASAttributeDecl interface as well as the properties and functions defined below.
Functions of objects that implement the ASWAttributeDecl interface:
setRawname(rawname)
This function has no return value.
The rawname parameter is a String.
setName(name)
This function has no return value.
The name parameter is a String.
setNamespaceURI(namespaceURI)
This function has no return value.
The namespaceURI parameter is a String.
setType(type)
This function has no return value.
The type parameter is an object that implements the ASDataType interface.
setValue(value)
This function has no return value.
The value parameter is a String.
setEnumAttr(enumeration)
This function has no return value.
The enumeration parameter is a String.
setDefaultType(constraint)
This function has no return value.
The constraint parameter is a Number.
Objects that implement the ASWEntityDecl interface:
Objects that implement the ASWEntityDecl interface have all properties and functions of the ASEntityDecl interface as well as the properties and functions defined below.
Functions of objects that implement the ASWEntityDecl interface:
setRawname(rawname)
This function has no return value.
The rawname parameter is a String.
setEntityType(type)
This function has no return value.
The type parameter is a Number.
setEntityValue(value)
This function has no return value.
The value parameter is a String.
setSystemId(systemId)
This function has no return value.
The systemId parameter is a String.
setPublicId(publicId)
This function has no return value.
The publicId parameter is a String.
Objects that implement the ASWNotationDecl interface:
Objects that implement the ASWNotationDecl interface have all properties and functions of the ASNotationDecl interface as well as the properties and functions defined below.
Functions of objects that implement the ASWNotationDecl interface:
setRawname(rawname)
This function has no return value.
The rawname parameter is a String.
setName(name)
This function has no return value.
The name parameter is a String.
setNamespaceURI(namespaceURI)
This function has no return value.
The namespaceURI parameter is a String.
setSystemId(systemId)
This function has no return value.
The systemId parameter is a String.
setPublicId(publicId)
This function has no return value.
The publicId parameter is a String.
Properties of the ASException Constructor function:
ASException.DUPLICATE_NAME_ERR
The value of the constant ASException.DUPLICATE_NAME_ERR is 1.
ASException.TYPE_ERR
The value of the constant ASException.TYPE_ERR is 2.
ASException.NO_AS_AVAILABLE
The value of the constant ASException.NO_AS_AVAILABLE is 3.
ASException.WRONG_MIME_TYPE_ERR
The value of the constant ASException.WRONG_MIME_TYPE_ERR is 4.
ASException.INVALID_CHARACTER_ERR
The value of the constant ASException.INVALID_CHARACTER_ERR is 5.
ASException.VALIDATION_ERR
The value of the constant ASException.VALIDATION_ERR is 6.
ASException.ACTIVEAS_DELETION_ERR
The value of the constant ASException.ACTIVEAS_DELETION_ERR is 7.
Objects that implement the ASException interface:
Properties of objects that implement the ASException interface:
code
This property is a Number.
Objects that implement the DocumentAS interface:
Objects that implement the DocumentAS interface have all properties and functions of the Document interface as well as the properties and functions defined below.
Properties of objects that implement the DocumentAS interface:
activeASModel
This property is an object that implements the ASModel interface.
boundASModels
This property is an object that implements the ASObjectList interface.
Functions of objects that implement the DocumentAS interface:
getInternalAS()
This function returns an object that implements the ASModel interface.
setInternalAS(as)
This function has no return value.
The as parameter is an object that implements the ASModel interface.
This function can raise an object that implements the DOMException interface.
addAS(as)
This function has no return value.
The as parameter is an object that implements the ASModel interface.
removeAS(as)
This function has no return value.
The as parameter is an object that implements the ASModel interface.
This function can raise an object that implements the ASException interface.
getElementDecl(node)
This function returns an object that implements the ASElementDecl interface.
The node parameter is an object that implements the Element interface.
This function can raise an object that implements the DOMException interface.
getAttributeDecl(node)
This function returns an object that implements the ASAttributeDecl interface.
The node parameter is an object that implements the Attr interface.
This function can raise an object that implements the DOMException interface.
getEntityDecl(node)
This function returns an object that implements the ASEntityDecl interface.
The node parameter is an object that implements the Entity interface.
This function can raise an object that implements the DOMException interface.
getNotationDecl(node)
This function returns an object that implements the ASNotationDecl interface.
The node parameter is an object that implements the Notation interface.
This function can raise an object that implements the DOMException interface.
validate()
This function has no return value.
This function can raise an object that implements the ASException interface.
Objects that implement the DOMImplementationAS interface:
Objects that implement the DOMImplementationAS interface have all properties and functions of the DOMImplementation interface as well as the properties and functions defined below.
Functions of objects that implement the DOMImplementationAS interface:
createASWModel(isNamespaceAware, container, schemaType)
This function returns an object that implements the ASWModel interface.
The isNamespaceAware parameter is a Boolean.
The container parameter is a Boolean.
The schemaType parameter is a String.
Objects that implement the DocumentEditAS interface:
Objects that implement the DocumentEditAS interface have all properties and functions of the NodeEditAS interface as well as the properties and functions defined below.
Properties of objects that implement the DocumentEditAS interface:
continuousValidityChecking
This property is a Boolean.
Properties of the NodeEditAS Constructor function:
NodeEditAS.WF_CHECK
The value of the constant NodeEditAS.WF_CHECK is 1.
NodeEditAS.NS_WF_CHECK
The value of the constant NodeEditAS.NS_WF_CHECK is 2.
NodeEditAS.PARTIAL_VALIDITY_CHECK
The value of the constant NodeEditAS.PARTIAL_VALIDITY_CHECK is 3.
NodeEditAS.STRICT_VALIDITY_CHECK
The value of the constant NodeEditAS.STRICT_VALIDITY_CHECK is 4.
Objects that implement the NodeEditAS interface:
Objects that implement the NodeEditAS interface have all properties and functions of the Node interface as well as the properties and functions defined below.
Functions of objects that implement the NodeEditAS interface:
canInsertBefore(newChild, refChild)
This function returns a Boolean.
The newChild parameter is an object that implements the Node interface.
The refChild parameter is an object that implements the Node interface.
canRemoveChild(oldChild)
This function returns a Boolean.
The oldChild parameter is an object that implements the Node interface.
canReplaceChild(newChild, oldChild)
This function returns a Boolean.
The newChild parameter is an object that implements the Node interface.
The oldChild parameter is an object that implements the Node interface.
canAppendChild(newChild)
This function returns a Boolean.
The newChild parameter is an object that implements the Node interface.
isNodeValid(deep, wFValidityCheckLevel)
This function returns a Boolean.
The deep parameter is a Boolean.
The wFValidityCheckLevel parameter is a Number.
This function can raise an object that implements the ASException interface.
Objects that implement the ElementEditAS interface:
Objects that implement the ElementEditAS interface have all properties and functions of the NodeEditAS interface as well as the properties and functions defined below.
Properties of objects that implement the ElementEditAS interface:
definedElementTypes
This read-only property is an object that implements the NodeList interface.
Functions of objects that implement the ElementEditAS interface:
contentType()
This function returns a Number.
canSetAttribute(attrname, attrval)
This function returns a Boolean.
The attrname parameter is a String.
The attrval parameter is a String.
canSetAttributeNode(attrNode)
This function returns a Boolean.
The attrNode parameter is an object that implements the Attr interface.
canSetAttributeNS(name, attrval, namespaceURI)
This function returns a Boolean.
The name parameter is a String.
The attrval parameter is a String.
The namespaceURI parameter is a String.
canRemoveAttribute(attrname)
This function returns a Boolean.
The attrname parameter is a String.
canRemoveAttributeNS(attrname, namespaceURI)
This function returns a Boolean.
The attrname parameter is a String.
The namespaceURI parameter is a String.
canRemoveAttributeNode(attrNode)
This function returns a Boolean.
The attrNode parameter is an object that implements the Node interface.
getChildElements()
This function returns an object that implements the NodeList interface.
getParentElements()
This function returns an object that implements the NodeList interface.
getAttributeList()
This function returns an object that implements the NodeList interface.
isElementDefined(elemTypeName)
This function returns a Boolean.
The elemTypeName parameter is a String.
isElementDefinedNS(elemTypeName, namespaceURI, name)
This function returns a Boolean.
The elemTypeName parameter is a String.
The namespaceURI parameter is a String.
The name parameter is a String.
Objects that implement the CharacterDataEditAS interface:
Objects that implement the CharacterDataEditAS interface have all properties and functions of the NodeEditAS interface as well as the properties and functions defined below.
Properties of objects that implement the CharacterDataEditAS interface:
isWhitespaceOnly
This read-only property is a Boolean.
Functions of objects that implement the CharacterDataEditAS interface:
canSetData(offset, count)
This function returns a Boolean.
The offset parameter is a Number.
The count parameter is a Number.
canAppendData(arg)
This function returns a Boolean.
The arg parameter is a String.
canReplaceData(offset, count, arg)
This function returns a Boolean.
The offset parameter is a Number.
The count parameter is a Number.
The arg parameter is a String.
canInsertData(offset, arg)
This function returns a Boolean.
The offset parameter is a Number.
The arg parameter is a String.
canDeleteData(offset, count)
This function returns a Boolean.
The offset parameter is a Number.
The count parameter is a Number.
Objects that implement the ASDOMBuilder interface:
Objects that implement the ASDOMBuilder interface have all properties and functions of the DOMBuilder interface as well as the properties and functions defined below.
Properties of objects that implement the ASDOMBuilder interface:
abstractSchema
This property is an object that implements the ASWModel interface.
Functions of objects that implement the ASDOMBuilder interface:
parseASURI(uri, schemaType)
This function returns an object that implements the ASWModel interface.
The uri parameter is a String.
The schemaType parameter is a String.
This function can raise an object that implements the ASException interface or the DOMSystemException interface.
parseASInputSource(is, schemaType)
This function returns an object that implements the ASWModel interface.
The is parameter is an object that implements the DOMInputSource interface.
The schemaType parameter is a String.
This function can raise an object that implements the ASException interface or the DOMSystemException interface.
Objects that implement the ASDOMWriter interface:
Objects that implement the ASDOMWriter interface have all properties and functions of the DOMWriter interface as well as the properties and functions defined below.
Functions of objects that implement the ASDOMWriter interface:
writeASModel(destination, model)
This function has no return value.
The destination parameter is an object that implements the Object interface.
The model parameter is an object that implements the ASModel interface.
This function can raise an object that implements the DOMSystemException interface.
Properties of the DOMImplementationLS Constructor function:
DOMImplementationLS.MODE_SYNCHRONOUS
The value of the constant DOMImplementationLS.MODE_SYNCHRONOUS is 1.
DOMImplementationLS.MODE_ASYNCHRONOUS
The value of the constant DOMImplementationLS.MODE_ASYNCHRONOUS is 2.
Objects that implement the DOMImplementationLS interface:
Functions of objects that implement the DOMImplementationLS interface:
createDOMBuilder(mode, schemaType)
This function returns an object that implements the DOMBuilder interface.
The mode parameter is a Number.
The schemaType parameter is a String.
This function can raise an object that implements the DOMException interface.
createDOMWriter()
This function returns an object that implements the DOMWriter interface.
createDOMInputSource()
This function returns an object that implements the DOMInputSource interface.
Objects that implement the DocumentLS interface:
Properties of objects that implement the DocumentLS interface:
async
This property is a Boolean and can raise an objewct that implements DOMException interface on setting.
Functions of objects that implement the DocumentLS interface:
abort()
This function has no return value.
load(uri)
This function returns a Boolean.
The uri parameter is a String.
loadXML(source)
This function returns a Boolean.
The source parameter is a String.
saveXML(snode)
This function returns a String.
The snode parameter is an object that implements the Node interface.
This function can raise an object that implements the DOMException interface.
Objects that implement the DOMInputSource interface:
Properties of objects that implement the DOMInputSource interface:
byteStream
This property is an object that implements the Object interface.
characterStream
This property is an object that implements the this is an error and shouldn't be used. interface.
stringData
This property is a String.
encoding
This property is a String.
publicId
This property is a String.
systemId
This property is a String.
baseURI
This property is a String.
Objects that implement the LSLoadEvent interface:
Objects that implement the LSLoadEvent interface have all properties and functions of the Event interface as well as the properties and functions defined below.
Properties of objects that implement the LSLoadEvent interface:
newDocument
This read-only property is an object that implements the Document interface.
inputSource
This read-only property is an object that implements the DOMInputSource interface.
Objects that implement the LSProgressEvent interface:
Objects that implement the LSProgressEvent interface have all properties and functions of the Event interface as well as the properties and functions defined below.
Properties of objects that implement the LSProgressEvent interface:
inputSource
This read-only property is an object that implements the DOMInputSource interface.
position
This read-only property is a Number.
totalSize
This read-only property is a Number.
Objects that implement the DOMEntityResolver interface:
Functions of objects that implement the DOMEntityResolver interface:
resolveEntity(publicId, systemId, baseURI)
This function returns an object that implements the DOMInputSource interface.
The publicId parameter is a String.
The systemId parameter is a String.
The baseURI parameter is a String.
This function can raise an object that implements the DOMSystemException interface.
Properties of the DOMBuilderFilter Constructor function:
DOMBuilderFilter.FILTER_INTERRUPT
The value of the constant DOMBuilderFilter.FILTER_INTERRUPT is 4.
Objects that implement the DOMBuilderFilter interface:
Properties of objects that implement the DOMBuilderFilter interface:
whatToShow
This read-only property is a Number.
Functions of objects that implement the DOMBuilderFilter interface:
startContainer(snode)
This function returns a Number.
The snode parameter is an object that implements the Node interface.
acceptNode(enode)
This function returns a Number.
The enode parameter is an object that implements the Node interface.
Objects that implement the ParseErrorEvent interface:
Objects that implement the ParseErrorEvent interface have all properties and functions of the Event interface as well as the properties and functions defined below.
Properties of objects that implement the ParseErrorEvent interface:
error
This read-only property is an object that implements the DOMError interface.
Properties of the DOMBuilder Constructor function:
DOMBuilder.ACTION_REPLACE
The value of the constant DOMBuilder.ACTION_REPLACE is 1.
DOMBuilder.ACTION_APPEND_AS_CHILDREN
The value of the constant DOMBuilder.ACTION_APPEND_AS_CHILDREN is 2.
DOMBuilder.ACTION_INSERT_AFTER
The value of the constant DOMBuilder.ACTION_INSERT_AFTER is 3.
DOMBuilder.ACTION_INSERT_BEFORE
The value of the constant DOMBuilder.ACTION_INSERT_BEFORE is 4.
Objects that implement the DOMBuilder interface:
Properties of objects that implement the DOMBuilder interface:
entityResolver
This property is an object that implements the DOMEntityResolver interface.
errorHandler
This property is an object that implements the DOMErrorHandler interface.
filter
This property is an object that implements the DOMBuilderFilter interface.
Functions of objects that implement the DOMBuilder interface:
setFeature(name, state)
This function has no return value.
The name parameter is a String.
The state parameter is a Boolean.
This function can raise an object that implements the DOMException interface.
canSetFeature(name, state)
This function returns a Boolean.
The name parameter is a String.
The state parameter is a Boolean.
getFeature(name)
This function returns a Boolean.
The name parameter is a String.
This function can raise an object that implements the DOMException interface.
parseURI(uri)
This function returns an object that implements the Document interface.
The uri parameter is a String.
parse(is)
This function returns an object that implements the Document interface.
The is parameter is an object that implements the DOMInputSource interface.
This function can raise an object that implements the DOMSystemException interface.
parseWithContext(is, cnode, action)
This function has no return value.
The is parameter is an object that implements the DOMInputSource interface.
The cnode parameter is an object that implements the Node interface.
The action parameter is a Number.
This function can raise an object that implements the DOMException interface.
Objects that implement the DOMWriter interface:
Properties of objects that implement the DOMWriter interface:
encoding
This property is a String.
newLine
This property is a String.
filter
This property is an object that implements the DOMWriterFilter interface.
errorHandler
This property is an object that implements the DOMErrorHandler interface.
Functions of objects that implement the DOMWriter interface:
setFeature(name, state)
This function has no return value.
The name parameter is a String.
The state parameter is a Boolean.
This function can raise an object that implements the DOMException interface.
canSetFeature(name, state)
This function returns a Boolean.
The name parameter is a String.
The state parameter is a Boolean.
getFeature(name)
This function returns a Boolean.
The name parameter is a String.
This function can raise an object that implements the DOMException interface.
writeNode(destination, wnode)
This function returns a Boolean.
The destination parameter is an object that implements the Object interface.
The wnode parameter is an object that implements the Node interface.
This function can raise an object that implements the DOMSystemException interface.
writeToString(wnode)
This function returns a String.
The wnode parameter is an object that implements the Node interface.
This function can raise an object that implements the DOMException interface.
Objects that implement the DOMWriterFilter interface:
Objects that implement the DOMWriterFilter interface have all properties and functions of the NodeFilter interface as well as the properties and functions defined below.
Properties of objects that implement the DOMWriterFilter interface:
whatToShow
This read-only property is a Number.