|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectubiware.util.saplbuilder.Resource
public class Resource
Representation of a resource. A resource can be used as an Subject, Predicate and Object.
| Constructor Summary | |
|---|---|
Resource(java.lang.String resource)
Creates a Resource from the given String representation. |
|
Resource(java.lang.String prefix,
java.lang.String qname)
Creates a Resource with the given prefix. |
|
Resource(java.net.URI prefix,
java.lang.String qname)
Creates a Resource with the given prefix. |
|
| Method Summary | |
|---|---|
static Resource |
creatAnonymousNode()
|
static Resource |
createUncheckedResource(java.lang.String resourceString)
Creates a Resource without the need to catch checked exceptions. |
static Resource |
createUncheckedResource(java.net.URI prefix,
java.lang.String qname)
Creates a Resource without the need to catch checked exceptions. |
boolean |
equals(java.lang.Object obj)
|
void |
generateSapl(java.lang.StringBuilder builder)
Generate the s-apl representation for this subject. |
int |
hashCode()
|
java.lang.String |
toString()
Gives a String representation of this resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Resource(java.net.URI prefix,
java.lang.String qname)
throws MalformedSaplException
prefix - The prefix onto which the qname will be appendedqname - The qname of the resource.
MalformedSaplException - In case the concatenation of prefix and qname does not result in a valid URI
public Resource(java.lang.String prefix,
java.lang.String qname)
throws MalformedSaplException
prefix - The prefix onto which the qname will be appendedqname - The qname of the resource.
MalformedSaplException - In case the concatenation of prefix and qname does not result in a valid URI
public Resource(java.lang.String resource)
throws InvalidResourceException
resource - The resource in String form.
InvalidResourceException - In case resource is not a valid URL.| Method Detail |
|---|
public static Resource creatAnonymousNode()
public static Resource createUncheckedResource(java.lang.String resourceString)
resourceString - A String representing a resource.
java.lang.Error - If the resourceString does not represent a valid Resource.
public static Resource createUncheckedResource(java.net.URI prefix,
java.lang.String qname)
prefix - The prefix of the URIqname - the qname which will be appended to the prefix to form the resource.
java.lang.Error - If the prefix and qname don't form a valid Resource together.public void generateSapl(java.lang.StringBuilder builder)
Subject
generateSapl in interface ObjectgenerateSapl in interface PredicategenerateSapl in interface Subjectbuilder - The StringBuilder on which the representation must be appended.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||