org.apache.xerces.dom3.as

Interface ASAttributeDeclaration

All Superinterfaces:
ASObject

public interface ASAttributeDeclaration
extends ASObject

Field Summary

static short
VALUE_DEFAULT
Indicates that the there is a default value constraint.
static short
VALUE_FIXED
Indicates that there is a fixed value constraint for this attribute.
static short
VALUE_NONE
Describes that the attribute does not have any value constraint.

Fields inherited from interface org.apache.xerces.dom3.as.ASObject

AS_ATTRIBUTE_DECLARATION, AS_CONTENTMODEL, AS_ELEMENT_DECLARATION, AS_ENTITY_DECLARATION, AS_MODEL, AS_NOTATION_DECLARATION

Method Summary

ASDataType
getDataType()
Datatype of the attribute.
String
getDataValue()
Default or fixed value.
short
getDefaultType()
Constraint type if any for this attribute.
String
getEnumAttr()
Valid attribute values, separated by commas, in a string.
ASObjectList
getOwnerElements()
Owner elements ASObject of attribute, meaning that an attribute declaration can be shared by multiple elements.
void
setDataType(ASDataType dataType)
Datatype of the attribute.
void
setDataValue(String dataValue)
Default or fixed value.
void
setDefaultType(short defaultType)
Constraint type if any for this attribute.
void
setEnumAttr(String enumAttr)
Valid attribute values, separated by commas, in a string.
void
setOwnerElements(ASObjectList ownerElements)
Owner elements ASObject of attribute, meaning that an attribute declaration can be shared by multiple elements.

Methods inherited from interface org.apache.xerces.dom3.as.ASObject

cloneASObject, getAsNodeType, getLocalName, getNamespaceURI, getNodeName, getOwnerASModel, getPrefix, setLocalName, setNamespaceURI, setNodeName, setOwnerASModel, setPrefix

Field Details

VALUE_DEFAULT

public static final short VALUE_DEFAULT
Indicates that the there is a default value constraint.
Field Value:
1

VALUE_FIXED

public static final short VALUE_FIXED
Indicates that there is a fixed value constraint for this attribute.
Field Value:
2

VALUE_NONE

public static final short VALUE_NONE
Describes that the attribute does not have any value constraint.
Field Value:
0

Method Details

getDataType

public ASDataType getDataType()
Datatype of the attribute.

getDataValue

public String getDataValue()
Default or fixed value.

getDefaultType

public short getDefaultType()
Constraint type if any for this attribute.

getEnumAttr

public String getEnumAttr()
Valid attribute values, separated by commas, in a string.

getOwnerElements

public ASObjectList getOwnerElements()
Owner elements ASObject of attribute, meaning that an attribute declaration can be shared by multiple elements.

setDataType

public void setDataType(ASDataType dataType)
Datatype of the attribute.

setDataValue

public void setDataValue(String dataValue)
Default or fixed value.

setDefaultType

public void setDefaultType(short defaultType)
Constraint type if any for this attribute.

setEnumAttr

public void setEnumAttr(String enumAttr)
Valid attribute values, separated by commas, in a string.

setOwnerElements

public void setOwnerElements(ASObjectList ownerElements)
Owner elements ASObject of attribute, meaning that an attribute declaration can be shared by multiple elements.

Copyright © 1999-2004 Apache XML Project. All Rights Reserved.