1. /*
  2. * Copyright (c) 2000 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 org.w3c.dom.css;
  13. /**
  14. * The <code>CSSValueList</code> interface provides the abstraction of an
  15. * ordered collection of CSS values.
  16. * <p> Some properties allow an empty list into their syntax. In that case,
  17. * these properties take the <code>none</code> identifier. So, an empty list
  18. * means that the property has the value <code>none</code>.
  19. * <p> The items in the <code>CSSValueList</code> are accessible via an
  20. * integral index, starting from 0.
  21. * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
  22. * @since DOM Level 2
  23. */
  24. public interface CSSValueList extends CSSValue {
  25. /**
  26. * The number of <code>CSSValues</code> in the list. The range of valid
  27. * values of the indices is <code>0</code> to <code>length-1</code>
  28. * inclusive.
  29. */
  30. public int getLength();
  31. /**
  32. * Used to retrieve a <code>CSSValue</code> by ordinal index. The order in
  33. * this collection represents the order of the values in the CSS style
  34. * property. If index is greater than or equal to the number of values
  35. * in the list, this returns <code>null</code>.
  36. * @param indexIndex into the collection.
  37. * @return The <code>CSSValue</code> at the <code>index</code> position
  38. * in the <code>CSSValueList</code>, or <code>null</code> if that is
  39. * not a valid index.
  40. */
  41. public CSSValue item(int index);
  42. }