1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 /* 19 * $Id: WhitespaceInfoPaths.java 468640 2006-10-28 06:53:53Z minchau $ 20 */ 21 package org.apache.xalan.processor; 22 23 import java.util.Vector; 24 25 import org.apache.xalan.templates.Stylesheet; 26 import org.apache.xalan.templates.WhiteSpaceInfo; 27 28 public class WhitespaceInfoPaths extends WhiteSpaceInfo 29 { 30 static final long serialVersionUID = 5954766719577516723L; 31 32 /** 33 * Bean property to allow setPropertiesFromAttributes to 34 * get the elements attribute. 35 */ 36 private Vector m_elements; 37 38 /** 39 * Set from the elements attribute. This is a list of 40 * whitespace delimited element qualified names that specify 41 * preservation of whitespace. 42 * 43 * @param elems Should be a non-null reference to a list 44 * of {@link org.apache.xpath.XPath} objects. 45 */ setElements(Vector elems)46 public void setElements(Vector elems) 47 { 48 m_elements = elems; 49 } 50 51 /** 52 * Get the property set by setElements(). This is a list of 53 * whitespace delimited element qualified names that specify 54 * preservation of whitespace. 55 * 56 * @return A reference to a list of {@link org.apache.xpath.XPath} objects, 57 * or null. 58 */ getElements()59 Vector getElements() 60 { 61 return m_elements; 62 } 63 clearElements()64 public void clearElements() 65 { 66 m_elements = null; 67 } 68 69 /** 70 * Constructor WhitespaceInfoPaths 71 * 72 * @param thisSheet The current stylesheet 73 */ WhitespaceInfoPaths(Stylesheet thisSheet)74 public WhitespaceInfoPaths(Stylesheet thisSheet) 75 { 76 super(thisSheet); 77 setStylesheet(thisSheet); 78 } 79 80 81 } 82 83