fedora.common.policy
Class XacmlName

java.lang.Object
  extended by fedora.common.policy.XacmlName
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 XacmlName
extends java.lang.Object
implements org.jrdf.graph.URIReference

A URIReference from a known namespace.

See Also:
Serialized Form

Field Summary
 java.lang.String datatype
           
 java.lang.String localName
           
 XacmlNamespace parent
           
 java.lang.String uri
           
 
Constructor Summary
XacmlName(XacmlNamespace parent, java.lang.String localName)
           
XacmlName(XacmlNamespace parent, java.lang.String localName, java.lang.String datatype)
           
 
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
 

Field Detail

parent

public XacmlNamespace parent

localName

public java.lang.String localName

datatype

public java.lang.String datatype

uri

public java.lang.String uri
Constructor Detail

XacmlName

public XacmlName(XacmlNamespace parent,
                 java.lang.String localName,
                 java.lang.String datatype)

XacmlName

public XacmlName(XacmlNamespace parent,
                 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()
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