View Javadoc

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