|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface extends the NodeEditVAL
interface with additional methods for guided document editing. An object implementing this interface must also implement the Element
interface.
This interface also has attributes that are a NameList
of elements or attributes which can appear in the specified context. Some schema languages, i.e., XML Schema, define wildcards which provide for validation of attribute and element information items dependent on their namespace names but independent of their local names.
To expose wildcards, the NameList
returns the values that represent the namespace constraint:
{namespaceURI, name}
is {null, ##any}
if any;{namespaceURI, name}
is {namespace_a, ##other}
if not and a namespace name (namespace_a);{namespaceURI, name}
is {null, ##other}
if not and absent;{namespaceURI, name}
with values {a_namespaceURI | null, ##other}
if a set whose members are either namespace names or absent.Field Summary | |
static short |
VAL_ANY_CONTENTTYPE The content model contains unordered child information item(s), i.e., element, processing instruction, unexpanded entity reference, character, and comment information items as defined in the XML Information Set. |
static short |
VAL_ELEMENTS_CONTENTTYPE The content model contains a sequence of ele ment information items optionally separated by whitespace. |
static short |
VAL_EMPTY_CONTENTTYPE The content model does not allow any content. |
static short |
VAL_MIXED_CONTENTTYPE The content model contains a sequence of ordered ele ment information items optionally interspersed with character data. |
static short |
VAL_SIMPLE_CONTENTTYPE The content model contains character information items. |
Fields inherited from interface org.w3c.dom.validation.NodeEditVAL |
VAL_FALSE, VAL_INCOMPLETE, VAL_NS_WF, VAL_SCHEMA, VAL_TRUE, VAL_UNKNOWN, VAL_WF |
Method Summary | |
short |
canRemoveAttribute(java.lang.String attrname) Verifies if an attribute by the given name can be removed. |
short |
canRemoveAttributeNode(Node attrNode) Determines if an attribute node can be removed. |
short |
canRemoveAttributeNS(java.lang.String namespaceURI, java.lang.String localName) Verifies if an attribute by the given local name and namespace can be removed. |
short |
canSetAttribute(java.lang.String attrname, java.lang.String attrval) Determines if the value for specified attribute can be set. |
short |
canSetAttributeNode(Attr attrNode) Determines if an attribute node can be added. |
short |
canSetAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) Determines if the attribute with given namespace and qualified name can be created if not already present in the attribute list of the element. |
NameList |
getAllowedAttributes() A NameList , as described in [DOM Level 3 Core] , of all possible attribute information items or wildcards that can appear as attributes of this element, or null if this element has no context or schema. |
NameList |
getAllowedChildren() A NameList , as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as children of this element, or null if this element has no context or schema. |
NameList |
getAllowedFirstChildElements() A NameList , as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as a first child of this element, or null if this element has no context or schema. |
NameList |
getAllowedNextSiblings() A NameList , as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as a next sibling of this element, or null if this element has no context or schema. |
NameList |
getAllowedParents() A NameList , as described in [DOM Level 3 Core] , of all possible element information items that can appear as a parent this element, or null if this element has no context or schema. |
NameList |
getAllowedPreviousSiblings() A NameList , as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as a previous sibling of this element, or null if this element has no context or schema. |
short |
getContentType() The content type of an element. |
NameList |
getRequiredAttributes() A NameList , as described in [DOM Level 3 Core] , of required attribute information items that must appear on this element, or null if this element has no context or schema. |
short |
isElementDefined(java.lang.String name) Determines if name is defined in the schema. |
short |
isElementDefinedNS(java.lang.String namespaceURI, java.lang.String name) Determines if name in this namespace is defined in the current context. |
Methods inherited from interface org.w3c.dom.validation.NodeEditVAL |
canAppendChild, canInsertBefore, canRemoveChild, canReplaceChild, getDefaultValue, getEnumeratedValues, nodeValidity |
Field Detail |
public static final short VAL_EMPTY_CONTENTTYPE
empty
content type; and if the schema is a DTD, this corresponds to the EMPTY
content model.
public static final short VAL_ANY_CONTENTTYPE
ANY
content model.
public static final short VAL_MIXED_CONTENTTYPE
mixed
content type.
public static final short VAL_ELEMENTS_CONTENTTYPE
element content
content model; and if the schema is an XML Schema, this is the element-only
content type.
public static final short VAL_SIMPLE_CONTENTTYPE
simple type definition
.
Method Detail |
public NameList getAllowedChildren()
NameList
, as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as children of this element, or null
if this element has no context or schema. Duplicate pairs of {namespaceURI, name} are eliminated.public NameList getAllowedFirstChildElements()
NameList
, as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as a first child of this element, or null
if this element has no context or schema. Duplicate pairs of {namespaceURI, name} are eliminated.public NameList getAllowedParents()
NameList
, as described in [DOM Level 3 Core] , of all possible element information items that can appear as a parent this element, or null
if this element has no context or schema.public NameList getAllowedNextSiblings()
NameList
, as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as a next sibling of this element, or null
if this element has no context or schema. Duplicate pairs of {namespaceURI, name} are eliminated.public NameList getAllowedPreviousSiblings()
NameList
, as described in [DOM Level 3 Core] , of all possible element information items or wildcards that can appear as a previous sibling of this element, or null
if this element has no context or schema.public NameList getAllowedAttributes()
NameList
, as described in [DOM Level 3 Core] , of all possible attribute information items or wildcards that can appear as attributes of this element, or null
if this element has no context or schema. Duplicate pairs of {namespaceURI, name} are eliminated.public NameList getRequiredAttributes()
NameList
, as described in [DOM Level 3 Core] , of required attribute information items that must appear on this element, or null
if this element has no context or schema. Duplicate pairs of {namespaceURI, name} are eliminated.public short getContentType()
public short canSetAttribute(java.lang.String attrname, java.lang.String attrval)
attrname
- Name of attribute.attrval
- Value to be assigned to the attribute.public short canSetAttributeNode(Attr attrNode)
attrNode
- Node
in which the attribute can possibly be set.public short canSetAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)
setAttributeNS
.namespaceURI
- namespaceURI
of namespace.qualifiedName
- Qualified name of attribute.value
- Value to be assigned to the attribute.public short canRemoveAttribute(java.lang.String attrname)
attrname
- Name of attribute.public short canRemoveAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- The namespace URI of the attribute to remove.localName
- Local name of the attribute to be removed.public short canRemoveAttributeNode(Node attrNode)
attrNode
- The Attr
node to remove from the attribute list.public short isElementDefined(java.lang.String name)
name
is defined in the schema. This only applies to global declarations.name
- Name of element.public short isElementDefinedNS(java.lang.String namespaceURI, java.lang.String name)
name
in this namespace is defined in the current context. Thus not only does this apply to global declarations . but depending on the content, this may also apply to local definitions.namespaceURI
- namespaceURI
of namespace.name
- Name of element.
|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |