View Javadoc

1   /*
2    * $Id: XMLVersion.java,v 1.3 2005/03/29 15:07:42 jlerner Exp $
3    *
4    * Copyright (c) 1999-2004, BBN Technologies, LLC.
5    * All rights reserved.
6    * http://www.daml.org/legal/opensource/bbn_license.html
7    */
8    
9   package com.bbn.swede.core.dom;
10  
11  /***
12   * Custom processing instruction implementation for the XML version line.
13   * @author jlerner
14   */
15  public class XMLVersion extends ProcessingInstruction
16  {
17  
18     /***
19      * Creates an XML version node.
20      * @param sText The full text of the XML version.
21      */
22     public XMLVersion(String sText)
23     {
24        super(sText);
25     }
26  
27     /*
28      *  (non-Javadoc)
29      * @see com.bbn.swede.core.dom.OASTNode#getNodeType()
30      */
31     public int getNodeType()
32     {
33        return OASTNode.XML_VERSION;
34     }
35  }