001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements. See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership. The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the  "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *     http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    /*
019     * $Id: WhitespaceInfoPaths.java 468640 2006-10-28 06:53:53Z minchau $
020     */
021    package org.apache.xalan.processor;
022    
023    import java.util.Vector;
024    
025    import org.apache.xalan.templates.Stylesheet;
026    import org.apache.xalan.templates.WhiteSpaceInfo;
027    
028    public class WhitespaceInfoPaths extends WhiteSpaceInfo
029    {
030        static final long serialVersionUID = 5954766719577516723L;
031            
032      /**
033       * Bean property to allow setPropertiesFromAttributes to
034       * get the elements attribute.
035       */
036      private Vector m_elements;
037    
038      /**
039       * Set from the elements attribute.  This is a list of 
040       * whitespace delimited element qualified names that specify
041       * preservation of whitespace.
042       *
043       * @param elems Should be a non-null reference to a list 
044       *              of {@link org.apache.xpath.XPath} objects.
045       */
046      public void setElements(Vector elems)
047      {
048        m_elements = elems;
049      }
050    
051      /**
052       * Get the property set by setElements().  This is a list of 
053       * whitespace delimited element qualified names that specify
054       * preservation of whitespace.
055       *
056       * @return A reference to a list of {@link org.apache.xpath.XPath} objects, 
057       *         or null.
058       */
059      Vector getElements()
060      {
061        return m_elements;
062      }
063      
064      public void clearElements()
065      {
066            m_elements = null;
067      }
068    
069     /**
070       * Constructor WhitespaceInfoPaths
071       *
072       * @param thisSheet The current stylesheet
073       */
074      public WhitespaceInfoPaths(Stylesheet thisSheet)
075      {
076            super(thisSheet);
077            setStylesheet(thisSheet);
078      }
079    
080    
081    }
082