org.gcube.common.uri
Class ScopedURIBean

java.lang.Object
  extended by org.gcube.common.uri.ScopedURIBean

public class ScopedURIBean
extends Object

Models the information in scoped URIs.

Author:
Fabio Simeoni
See Also:
ScopedMint

Constructor Summary
ScopedURIBean(URI uri)
          Creates an instance for a given URI.
 
Method Summary
 List<String> elements()
          Returns the path elements of the URI.
 String scope()
          Returns the scope of the URI.
 String toString()
           
 URI uri()
          Returns the URI as a URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopedURIBean

public ScopedURIBean(URI uri)
              throws IllegalArgumentException
Creates an instance for a given URI.

Parameters:
uri - the URI
Throws:
IllegalArgumentException
Method Detail

elements

public List<String> elements()
Returns the path elements of the URI.

Returns:
the elements

scope

public String scope()
Returns the scope of the URI.

Returns:
the scope

uri

public URI uri()
Returns the URI as a URI.

Returns:
the URI

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.