< prev index next >

src/com/sun/org/apache/xerces/internal/util/StAXLocationWrapper.java

Print this page
rev 2127 : 8048021: Remove @version tag in jaxp repo
Reviewed-by: joehw


  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.util;
  23 
  24 
  25 import javax.xml.stream.Location;
  26 
  27 import com.sun.org.apache.xerces.internal.xni.XMLLocator;
  28 
  29 /**
  30  * <p>A light wrapper around a StAX location. This is useful
  31  * when bridging between StAX and XNI components.</p>
  32  *
  33  * @author Michael Glavassevich, IBM
  34  *
  35  * @version $Id: StAXLocationWrapper.java,v 1.2 2010-10-26 23:01:13 joehw Exp $
  36  */
  37 public final class StAXLocationWrapper implements XMLLocator {
  38 
  39     private Location fLocation = null;
  40 
  41     public StAXLocationWrapper() {}
  42 
  43     public void setLocation(Location location) {
  44         fLocation = location;
  45     }
  46 
  47     public Location getLocation() {
  48         return fLocation;
  49     }
  50 
  51     /*
  52      * XMLLocator methods
  53      */
  54 
  55     public String getPublicId() {




  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.util;
  23 
  24 
  25 import javax.xml.stream.Location;
  26 
  27 import com.sun.org.apache.xerces.internal.xni.XMLLocator;
  28 
  29 /**
  30  * <p>A light wrapper around a StAX location. This is useful
  31  * when bridging between StAX and XNI components.</p>
  32  *
  33  * @author Michael Glavassevich, IBM
  34  *

  35  */
  36 public final class StAXLocationWrapper implements XMLLocator {
  37 
  38     private Location fLocation = null;
  39 
  40     public StAXLocationWrapper() {}
  41 
  42     public void setLocation(Location location) {
  43         fLocation = location;
  44     }
  45 
  46     public Location getLocation() {
  47         return fLocation;
  48     }
  49 
  50     /*
  51      * XMLLocator methods
  52      */
  53 
  54     public String getPublicId() {


< prev index next >