View Javadoc

1   /*
2    * $Id: ID.java,v 1.6 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   package com.bbn.swede.core.dom.rdf;
9   
10  import com.bbn.swede.core.dom.AttributeNode;
11  import com.bbn.swede.core.dom.OASTNode;
12  
13  /***
14   * Custom attribute node implementation for rdf:ID.
15   * @author jlerner
16   */
17  public class ID extends AttributeNode
18  {
19     /***
20      * Creates an ID node.
21      * @param sValue The value of the attribute.
22      */
23     public ID(String sValue)
24     {
25        super(sValue);
26     }
27  
28     /*
29      *  (non-Javadoc)
30      * @see com.bbn.swede.core.dom.OASTNode#getNodeType()
31      */
32     public int getNodeType()
33     {
34        return OASTNode.RDF_ID;
35     }
36  
37  }