View Javadoc

1   /*
2    * $Id: Comment.java,v 1.7 2005/06/01 14:36:02 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.rdfs;
10  
11  import com.bbn.swede.core.dom.OASTNode;
12  import com.bbn.swede.core.dom.PropertyNode;
13  
14  /***
15   * Custom property node implementation for rdfs:comment.  This is for comments
16   * on specific individuals in the RDF graph.  XML comments are represented in
17   * the tree by instances of XMLComment.
18   * @author jlerner
19   */
20  public class Comment extends PropertyNode
21  {
22     /*
23      *  (non-Javadoc)
24      * @see com.bbn.swede.core.dom.OASTNode#allowedChildren()
25      */
26     protected int[] allowedChildren()
27     {
28        return null;
29     }
30  
31     /*
32      *  (non-Javadoc)
33      * @see com.bbn.swede.core.dom.OASTNode#getNodeType()
34      */
35     public int getNodeType()
36     {
37        return OASTNode.RDFS_COMMENT;
38     }
39  
40  }