1. /*
  2. * Copyright (c) 2001 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package com.sun.org.apache.xerces.internal.dom3.as;
  13. /**
  14. * @deprecated
  15. * An attribute declaration in the context of a <code>ASObject</code>.The
  16. * constant 'REQUIRED' is missing from this interface.
  17. * <p>See also the <a href='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
  18. and Save Specification</a>.
  19. */
  20. public interface ASAttributeDeclaration extends ASObject {
  21. // VALUE_TYPES
  22. /**
  23. * Describes that the attribute does not have any value constraint.
  24. */
  25. public static final short VALUE_NONE = 0;
  26. /**
  27. * Indicates that the there is a default value constraint.
  28. */
  29. public static final short VALUE_DEFAULT = 1;
  30. /**
  31. * Indicates that there is a fixed value constraint for this attribute.
  32. */
  33. public static final short VALUE_FIXED = 2;
  34. /**
  35. * Datatype of the attribute.
  36. */
  37. public ASDataType getDataType();
  38. /**
  39. * Datatype of the attribute.
  40. */
  41. public void setDataType(ASDataType dataType);
  42. /**
  43. * Default or fixed value.
  44. */
  45. public String getDataValue();
  46. /**
  47. * Default or fixed value.
  48. */
  49. public void setDataValue(String dataValue);
  50. /**
  51. * Valid attribute values, separated by commas, in a string.
  52. */
  53. public String getEnumAttr();
  54. /**
  55. * Valid attribute values, separated by commas, in a string.
  56. */
  57. public void setEnumAttr(String enumAttr);
  58. /**
  59. * Owner elements <code>ASObject</code> of attribute, meaning that an
  60. * attribute declaration can be shared by multiple elements.
  61. */
  62. public ASObjectList getOwnerElements();
  63. /**
  64. * Owner elements <code>ASObject</code> of attribute, meaning that an
  65. * attribute declaration can be shared by multiple elements.
  66. */
  67. public void setOwnerElements(ASObjectList ownerElements);
  68. /**
  69. * Constraint type if any for this attribute.
  70. */
  71. public short getDefaultType();
  72. /**
  73. * Constraint type if any for this attribute.
  74. */
  75. public void setDefaultType(short defaultType);
  76. }