Represents a declaration of an attribute; e.g. an xsd:attribute
schema element
oe
<!ATTLIST TIME HOURS CDATA #IMPLIED>
IDL:
interface AttributeDeclaration {
const short NO_VALUE_CONSTRAINT = 0;
const short DEFAULT_VALUE_CONSTRAINT = 1;
const short FIXED_VALUE_CONSTRAINT = 2;
readonly attribute DOMString attrName;
attribute CMDataType attrType;
attribute DOMString attributeValue;
attribute DOMString enumAttr;
attribute CMNodeList ownerElement;
attribute short constraintType;
};
Java binding:
package org.w3c.dom.contentModel;
public interface AttributeDeclaration {
public static final short NO_VALUE_CONSTRAINT = 0;
public static final short DEFAULT_VALUE_CONSTRAINT = 1;
public static final short FIXED_VALUE_CONSTRAINT = 2;
public String getAttrName();
public CMDataType getAttrType();
public void setAttrType(CMDataType attrType);
public String getAttributeValue();
public void setAttributeValue(String value);
public String getEnumAttr();
public void setEnumAttr(String enumAttr);
public CMNodeList getOwnerElement();
public void setOwnerElement(CMNodeList ownerElement);
public short getConstraintType();
public void setConstraintType(short constraintType);
}