fedora.common.rdf
Class RDFName
java.lang.Object
fedora.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.
-----------------------------------------------------------------------------
License and Copyright: The contents of this file are subject to the
Mozilla Public License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License
at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The
Rector and Visitors of the University of Virginia and Cornell University.
All rights reserved.
-----------------------------------------------------------------------------
- See Also:
- Serialized Form
|
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 |
namespace
public RDFNamespace namespace
localName
public java.lang.String localName
uri
public java.lang.String uri
RDFName
public RDFName(RDFNamespace namespace,
java.lang.String localName)
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()