KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xalan > processor > WhitespaceInfoPaths


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: WhitespaceInfoPaths.java,v 1.5 2004/02/11 18:15:50 minchau Exp $
18  */

19 package org.apache.xalan.processor;
20
21 import java.util.Vector JavaDoc;
22
23 import org.apache.xalan.templates.Stylesheet;
24 import org.apache.xalan.templates.WhiteSpaceInfo;
25
26 public class WhitespaceInfoPaths extends WhiteSpaceInfo
27 {
28     
29   /**
30    * Bean property to allow setPropertiesFromAttributes to
31    * get the elements attribute.
32    */

33   private Vector JavaDoc m_elements;
34
35   /**
36    * Set from the elements attribute. This is a list of
37    * whitespace delimited element qualified names that specify
38    * preservation of whitespace.
39    *
40    * @param elems Should be a non-null reference to a list
41    * of {@link org.apache.xpath.XPath} objects.
42    */

43   public void setElements(Vector JavaDoc elems)
44   {
45     m_elements = elems;
46   }
47
48   /**
49    * Get the property set by setElements(). This is a list of
50    * whitespace delimited element qualified names that specify
51    * preservation of whitespace.
52    *
53    * @return A reference to a list of {@link org.apache.xpath.XPath} objects,
54    * or null.
55    */

56   Vector JavaDoc getElements()
57   {
58     return m_elements;
59   }
60   
61   public void clearElements()
62   {
63     m_elements = null;
64   }
65
66  /**
67    * Constructor WhitespaceInfoPaths
68    *
69    * @param thisSheet The current stylesheet
70    */

71   public WhitespaceInfoPaths(Stylesheet thisSheet)
72   {
73     super(thisSheet);
74     setStylesheet(thisSheet);
75   }
76
77
78 }
79
80
Popular Tags