ASObject
.
See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.
public interface ASElementDeclaration extends ASObject
Modifier and Type | Field and Description |
---|---|
static short |
ANY_CONTENTTYPE
Deprecated.
Represents an ANY content type for an Element declaration.
|
static short |
ELEMENTS_CONTENTTYPE
Deprecated.
Represents an ELEMENTS only content type for an Element declaration.
|
static short |
EMPTY_CONTENTTYPE
Deprecated.
Represents an EMPTY content type for an Element declaration.
|
static short |
MIXED_CONTENTTYPE
Deprecated.
Represents a MIXED content type for an Element declaration.
|
AS_ATTRIBUTE_DECLARATION, AS_CONTENTMODEL, AS_ELEMENT_DECLARATION, AS_ENTITY_DECLARATION, AS_MODEL, AS_NOTATION_DECLARATION
Modifier and Type | Method and Description |
---|---|
void |
addASAttributeDecl(ASAttributeDeclaration attributeDecl)
Deprecated.
Adds an
ASAttributeDeclaration for the element being
declared. |
ASNamedObjectMap |
getASAttributeDecls()
Deprecated.
The
ASNamedObjectMap containing
ASAttributeDeclarations for all the attributes that can
appear on this type of element. |
ASContentModel |
getAsCM()
Deprecated.
The content model of element.
|
short |
getContentType()
Deprecated.
The content type of the element.
|
ASDataType |
getElementType()
Deprecated.
Datatype of the element.
|
boolean |
getIsPCDataOnly()
Deprecated.
Boolean defining whether the element type contains child elements and
PCDATA or PCDATA only for mixed element types.
|
boolean |
getStrictMixedContent()
Deprecated.
A boolean defining whether the element order and number of the child
elements for mixed content type has to be respected or not.
|
String |
getSystemId()
Deprecated.
the URI reference representing the system identifier for the notation
declaration, if present,
null otherwise. |
ASAttributeDeclaration |
removeASAttributeDecl(ASAttributeDeclaration attributeDecl)
Deprecated.
Removes an
ASAttributeDeclaration from the element being
declared. |
void |
setASAttributeDecls(ASNamedObjectMap ASAttributeDecls)
Deprecated.
The
ASNamedObjectMap containing
ASAttributeDeclarations for all the attributes that can
appear on this type of element. |
void |
setAsCM(ASContentModel asCM)
Deprecated.
The content model of element.
|
void |
setContentType(short contentType)
Deprecated.
The content type of the element.
|
void |
setElementType(ASDataType elementType)
Deprecated.
Datatype of the element.
|
void |
setIsPCDataOnly(boolean isPCDataOnly)
Deprecated.
Boolean defining whether the element type contains child elements and
PCDATA or PCDATA only for mixed element types.
|
void |
setStrictMixedContent(boolean strictMixedContent)
Deprecated.
A boolean defining whether the element order and number of the child
elements for mixed content type has to be respected or not.
|
void |
setSystemId(String systemId)
Deprecated.
the URI reference representing the system identifier for the notation
declaration, if present,
null otherwise. |
cloneASObject, getAsNodeType, getLocalName, getNamespaceURI, getNodeName, getOwnerASModel, getPrefix, setLocalName, setNamespaceURI, setNodeName, setOwnerASModel, setPrefix
static final short EMPTY_CONTENTTYPE
static final short ANY_CONTENTTYPE
static final short MIXED_CONTENTTYPE
isPCDataOnly
would also need to checked, in addition to
this, if an element's content model was simply text, as an example.static final short ELEMENTS_CONTENTTYPE
boolean getStrictMixedContent()
void setStrictMixedContent(boolean strictMixedContent)
ASDataType getElementType()
void setElementType(ASDataType elementType)
boolean getIsPCDataOnly()
true
if
the element is of type PCDATA only. Relevant only for mixed content
type elements.void setIsPCDataOnly(boolean isPCDataOnly)
true
if
the element is of type PCDATA only. Relevant only for mixed content
type elements.short getContentType()
EMPTY_CONTENTTYPE
,
ANY_CONTENTTYPE
, MIXED_CONTENTTYPE
,
ELEMENTS_CONTENTTYPE
.void setContentType(short contentType)
EMPTY_CONTENTTYPE
,
ANY_CONTENTTYPE
, MIXED_CONTENTTYPE
,
ELEMENTS_CONTENTTYPE
.String getSystemId()
null
otherwise.void setSystemId(String systemId)
null
otherwise.ASContentModel getAsCM()
void setAsCM(ASContentModel asCM)
ASNamedObjectMap getASAttributeDecls()
ASNamedObjectMap
containing
ASAttributeDeclarations
for all the attributes that can
appear on this type of element.void setASAttributeDecls(ASNamedObjectMap ASAttributeDecls)
ASNamedObjectMap
containing
ASAttributeDeclarations
for all the attributes that can
appear on this type of element.void addASAttributeDecl(ASAttributeDeclaration attributeDecl)
ASAttributeDeclaration
for the element being
declared.attributeDecl
- The new attribute to add. If the attribute
declaration already exists for the element, the call does not have
any effect.ASAttributeDeclaration removeASAttributeDecl(ASAttributeDeclaration attributeDecl)
ASAttributeDeclaration
from the element being
declared.attributeDecl
- The attribute declaraition to be removed. If the
attribute declaration does not exist for the element, the call does
not have any effect.null
if the attribute does not exist. Otherwise
returns the attribute being removed.Copyright © 2016 JBoss by Red Hat. All rights reserved.