public class URIScope extends Object implements Scope, Serializable
Constructor and Description |
---|
URIScope(String uri)
Constructor creates a new URIScope with the specified uri as name.
|
URIScope(String uri,
Scope scope)
Constructor creates a new URIScope with the specified uri as name.
|
URIScope(URI uri)
Constructor creates a new URIScope with the specified uri as name.
|
URIScope(URI uri,
Scope scope)
Constructor URIScope creates a new URIScope instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns the equaltiy.
|
String |
getName()
Method gets the name of this URIScope object,
this is the string representation of the internal uri.
|
Scope |
getScope()
Method gets the scope of this URIScope object.
|
URI |
getURI()
Method gets the URI of this URIScope object.
|
int |
hashCode()
Returns the hashCode.
|
String |
toString()
Method toString return the name
getName() . |
public URIScope(String uri) throws IllegalArgumentException
uri
- the uri != null.IllegalArgumentException
- if the given string is not an uri.public URIScope(String uri, Scope scope) throws IllegalArgumentException
uri
- the uri != null.scope
- the scope != null.IllegalArgumentException
- if the given string is not an uri.public URIScope(URI uri) throws IllegalArgumentException
uri
- the uri != null.IllegalArgumentException
- if uri is null.public URIScope(URI uri, Scope scope) throws IllegalArgumentException
uri
- the uri != null.scope
- the scope != null.IllegalArgumentException
- if one of the parameters is null.public Scope getScope()
getScope
in interface Scope
Scope.getScope()
public boolean equals(Object o)
public int hashCode()
public String getName()
getName
in interface Scope
Scope.getName()
public URI getURI()
Copyright © 2004–2018 52north.org. All rights reserved.