1. package org.apache.xalan.processor;
  2. import org.apache.xalan.templates.WhiteSpaceInfo;
  3. import java.util.Vector;
  4. import org.apache.xalan.templates.Stylesheet;
  5. public class WhitespaceInfoPaths extends WhiteSpaceInfo
  6. {
  7. /**
  8. * Bean property to allow setPropertiesFromAttributes to
  9. * get the elements attribute.
  10. */
  11. private Vector m_elements;
  12. /**
  13. * Set from the elements attribute. This is a list of
  14. * whitespace delimited element qualified names that specify
  15. * preservation of whitespace.
  16. *
  17. * @param elems Should be a non-null reference to a list
  18. * of {@link org.apache.xpath.XPath} objects.
  19. */
  20. public void setElements(Vector elems)
  21. {
  22. m_elements = elems;
  23. }
  24. /**
  25. * Get the property set by setElements(). This is a list of
  26. * whitespace delimited element qualified names that specify
  27. * preservation of whitespace.
  28. *
  29. * @return A reference to a list of {@link org.apache.xpath.XPath} objects,
  30. * or null.
  31. */
  32. Vector getElements()
  33. {
  34. return m_elements;
  35. }
  36. public void clearElements()
  37. {
  38. m_elements = null;
  39. }
  40. /**
  41. * Constructor WhitespaceInfoPaths
  42. *
  43. * @param thisSheet The current stylesheet
  44. */
  45. public WhitespaceInfoPaths(Stylesheet thisSheet)
  46. {
  47. super(thisSheet);
  48. setStylesheet(thisSheet);
  49. }
  50. }