View Javadoc

1   /*
2    * $Id: Rdf.java,v 1.11 2005/05/31 23:28:07 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.rdf;
10  
11  import com.bbn.swede.core.dom.TagNode;
12  import com.bbn.swede.core.dom.OASTNode;
13  
14  /***
15   * Custom implementation of tag node for rdf:Rdf.  This is the only tag that
16   * is neither a class node nor a property node, so it gets special treatment.
17   * @author jlerner
18   */
19  public class Rdf extends TagNode
20  {
21     private static int[] _allowed =
22     {
23        OASTNode.OWL_CLASS,
24        OASTNode.OWL_DATATYPEPROPERTY,
25        OASTNode.OWL_OBJECTPROPERTY,
26     };
27     /*
28      *  (non-Javadoc)
29      * @see com.bbn.swede.core.dom.OASTNode#allowedChildren()
30      */
31     protected int[] allowedChildren()
32     {
33        return _allowed;
34     }
35  
36     /*
37      *  (non-Javadoc)
38      * @see com.bbn.swede.core.dom.OASTNode#getNodeType()
39      */
40     public int getNodeType()
41     {
42        return OASTNode.RDF_RDF;
43     }
44  
45  }