< prev index next >

src/java.xml/share/classes/com/sun/xml/internal/stream/events/NotationDeclarationImpl.java

Print this page




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.stream.events;
  27 
  28 import javax.xml.stream.events.NotationDeclaration;
  29 import javax.xml.stream.events.XMLEvent;
  30 import com.sun.xml.internal.stream.dtd.nonvalidating.XMLNotationDecl;
  31 
  32 /**
  33  * Implementation of NotationDeclaration event.
  34  *
  35  * @author k.venugopal@sun.com
  36  */
  37 public class NotationDeclarationImpl extends DummyEvent implements NotationDeclaration {
  38 
  39     String fName = null;
  40     String fPublicId = null;
  41     String fSystemId = null;
  42 
  43     /** Creates a new instance of NotationDeclarationImpl */
  44     public NotationDeclarationImpl() {
  45         setEventType(XMLEvent.NOTATION_DECLARATION);
  46     }
  47 
  48     public NotationDeclarationImpl(String name,String publicId,String systemId){
  49         this.fName = name;
  50         this.fPublicId = publicId;
  51         this.fSystemId = systemId;
  52         setEventType(XMLEvent.NOTATION_DECLARATION);
  53     }
  54 
  55     public NotationDeclarationImpl(XMLNotationDecl notation){




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.stream.events;
  27 
  28 import javax.xml.stream.events.NotationDeclaration;
  29 import javax.xml.stream.events.XMLEvent;
  30 import com.sun.xml.internal.stream.dtd.nonvalidating.XMLNotationDecl;
  31 
  32 /**
  33  * Implementation of NotationDeclaration event.
  34  *
  35  * @author k venugopal
  36  */
  37 public class NotationDeclarationImpl extends DummyEvent implements NotationDeclaration {
  38 
  39     String fName = null;
  40     String fPublicId = null;
  41     String fSystemId = null;
  42 
  43     /** Creates a new instance of NotationDeclarationImpl */
  44     public NotationDeclarationImpl() {
  45         setEventType(XMLEvent.NOTATION_DECLARATION);
  46     }
  47 
  48     public NotationDeclarationImpl(String name,String publicId,String systemId){
  49         this.fName = name;
  50         this.fPublicId = publicId;
  51         this.fSystemId = systemId;
  52         setEventType(XMLEvent.NOTATION_DECLARATION);
  53     }
  54 
  55     public NotationDeclarationImpl(XMLNotationDecl notation){


< prev index next >