View Javadoc

1   /*
2    * $Id: ProcessingInstruction.java,v 1.4 2005/06/01 14:36:03 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    /***
10    * @author jlerner
11    */
12    
13  package com.bbn.swede.core.dom;
14  
15  /***
16   * Custom text node implementation for processing instructions.
17   * @author jlerner
18   */
19  public class ProcessingInstruction extends TextNode
20  {
21  
22     /***
23      * Creates a processing instruction node.
24      * @param sText The full text of the PI.
25      */
26     public ProcessingInstruction(String sText)
27     {
28        super(sText);
29     }
30  
31     /* (non-Javadoc)
32      * @see com.bbn.swede.core.dom.OASTNode#allowedChildren()
33      */
34     protected int[] allowedChildren()
35     {
36        return null;
37     }
38  
39     /* (non-Javadoc)
40      * @see com.bbn.swede.core.dom.OASTNode#getNodeType()
41      */
42     public int getNodeType()
43     {
44        return OASTNode.PROCESSING_INSTRUCTION;
45     }
46  
47  }