286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A
286N/A/*
286N/A * Copyright 1999-2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A/*
286N/A * $Id: EmptyIterator.java,v 1.2.4.1 2005/09/15 08:15:05 suresh_emailid Exp $
286N/A */
286N/Apackage com.sun.org.apache.xml.internal.dtm.ref;
286N/A
286N/Aimport com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
286N/Aimport com.sun.org.apache.xml.internal.dtm.DTM;
286N/A
286N/A
286N/A/**
286N/A * DTM Empty Axis Iterator. The class is immutable
286N/A */
286N/Apublic final class EmptyIterator implements DTMAxisIterator
286N/A{
286N/A private static final EmptyIterator INSTANCE = new EmptyIterator();
286N/A
286N/A public static DTMAxisIterator getInstance() {return INSTANCE;}
286N/A
286N/A private EmptyIterator(){}
286N/A
286N/A public final int next(){ return END; }
286N/A
286N/A public final DTMAxisIterator reset(){ return this; }
286N/A
286N/A public final int getLast(){ return 0; }
286N/A
286N/A public final int getPosition(){ return 1; }
286N/A
286N/A public final void setMark(){}
286N/A
286N/A public final void gotoMark(){}
286N/A
286N/A public final DTMAxisIterator setStartNode(int node){ return this; }
286N/A
286N/A public final int getStartNode(){ return END; }
286N/A
286N/A public final boolean isReverse(){return false;}
286N/A
286N/A public final DTMAxisIterator cloneIterator(){ return this; }
286N/A
286N/A public final void setRestartable(boolean isRestartable) {}
286N/A
286N/A public final int getNodeByPosition(int position){ return END; }
286N/A}