fedora.common.rdf
Class RDFName
java.lang.Object
fedora.common.rdf.RDFName
- All Implemented Interfaces:
- java.io.Serializable, org.jrdf.graph.Node, org.jrdf.graph.ObjectNode, org.jrdf.graph.PredicateNode, org.jrdf.graph.SubjectNode, org.jrdf.graph.TypedNodeVisitable, org.jrdf.graph.URIReference, org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value
public class RDFName
- extends java.lang.Object
- implements org.jrdf.graph.URIReference
A URIReference from a known namespace.
- See Also:
- Serialized Form
|
Method Summary |
void |
accept(org.jrdf.graph.TypedNodeVisitor visitor)
|
java.lang.String |
getLocalName()
|
java.lang.String |
getNamespace()
|
java.net.URI |
getURI()
|
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) |
java.lang.String |
stringValue()
|
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()
- Specified by:
toString in interface org.openrdf.model.URI- Overrides:
toString in class java.lang.Object
stringValue
public java.lang.String stringValue()
- Specified by:
stringValue in interface org.openrdf.model.Value
getLocalName
public java.lang.String getLocalName()
- Specified by:
getLocalName in interface org.openrdf.model.URI
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace in interface org.openrdf.model.URI