fedora.common.rdf
Class RDFName

java.lang.Object
  extended byfedora.common.rdf.RDFName
All Implemented Interfaces:
org.jrdf.graph.Node, org.jrdf.graph.ObjectNode, org.jrdf.graph.PredicateNode, java.io.Serializable, org.jrdf.graph.SubjectNode, org.jrdf.graph.TypedNodeVisitable, org.jrdf.graph.URIReference

public class RDFName
extends java.lang.Object
implements org.jrdf.graph.URIReference

A URIReference from a known namespace.

See Also:
Serialized Form

Field Summary
 java.lang.String localName
           
 RDFNamespace namespace
           
 java.lang.String uri
           
 
Constructor Summary
RDFName(RDFNamespace namespace, java.lang.String localName)
           
 
Method Summary
 void accept(org.jrdf.graph.TypedNodeVisitor visitor)
           
 java.net.URI getURI()
           
 boolean looselyMatches(java.lang.String in, boolean tryFirstLocalNameChar)
          Does the given string loosely match this name?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jrdf.graph.URIReference
equals, hashCode
 

Field Detail

namespace

public RDFNamespace namespace

localName

public java.lang.String localName

uri

public java.lang.String uri
Constructor Detail

RDFName

public RDFName(RDFNamespace namespace,
               java.lang.String localName)
Method Detail

looselyMatches

public boolean looselyMatches(java.lang.String in,
                              boolean tryFirstLocalNameChar)
Does the given string loosely match this name? Either: 1) It matches localName (case insensitive) 2) It matches uri (case sensitive) if (firstLocalNameChar == true): 3) It is one character long, and that character matches the first character of localName (case insensitive)


accept

public void accept(org.jrdf.graph.TypedNodeVisitor visitor)
Specified by:
accept in interface org.jrdf.graph.TypedNodeVisitable

getURI

public java.net.URI getURI()
Specified by:
getURI in interface org.jrdf.graph.URIReference

toString

public java.lang.String toString()