/* * Copyright (c) 2001 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. */ package com.sun.org.apache.xerces.internal.dom3.as; /** * @deprecated * An attribute declaration in the context of a ASObject.The * constant 'REQUIRED' is missing from this interface. *

See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification. */ public interface ASAttributeDeclaration extends ASObject { // VALUE_TYPES /** * Describes that the attribute does not have any value constraint. */ public static final short VALUE_NONE = 0; /** * Indicates that the there is a default value constraint. */ public static final short VALUE_DEFAULT = 1; /** * Indicates that there is a fixed value constraint for this attribute. */ public static final short VALUE_FIXED = 2; /** * Datatype of the attribute. */ public ASDataType getDataType(); /** * Datatype of the attribute. */ public void setDataType(ASDataType dataType); /** * Default or fixed value. */ public String getDataValue(); /** * Default or fixed value. */ public void setDataValue(String dataValue); /** * Valid attribute values, separated by commas, in a string. */ public String getEnumAttr(); /** * Valid attribute values, separated by commas, in a string. */ public void setEnumAttr(String enumAttr); /** * Owner elements ASObject of attribute, meaning that an * attribute declaration can be shared by multiple elements. */ public ASObjectList getOwnerElements(); /** * Owner elements ASObject of attribute, meaning that an * attribute declaration can be shared by multiple elements. */ public void setOwnerElements(ASObjectList ownerElements); /** * Constraint type if any for this attribute. */ public short getDefaultType(); /** * Constraint type if any for this attribute. */ public void setDefaultType(short defaultType); }