eu.unicore.hila
Interface Resource

All Known Implementing Classes:
BaseResource

public interface Resource

A Resource is the most generic form of a resource in HiLA. Resources can have child Resources and at most one parent Resource.

Author:
bjoernh

Method Summary
 Resource getChild(String childPath)
           
 List<Resource> getChildren()
           
 Location getLocation()
           
 Metadata getMetadata()
           
 String getName()
          The last element of the URI, either the last name before a final "/" or the last name after the "/", i.e.
 Resource getParent()
           
 boolean ok()
          Test whether a resource is ok, i.e. accessible.
 

Method Detail

getLocation

Location getLocation()

getChildren

List<Resource> getChildren()
                           throws HiLAException
Throws:
HiLAException

getChild

Resource getChild(String childPath)
                  throws HiLAException
Throws:
HiLAException

getParent

Resource getParent()
                   throws HiLAException
Throws:
HiLAException

getMetadata

Metadata getMetadata()
                     throws HiLAException
Throws:
HiLAException

getName

String getName()
The last element of the URI, either the last name before a final "/" or the last name after the "/", i.e. would both return "home" as the name.

Returns:
name of the Resource.

ok

boolean ok()
Test whether a resource is ok, i.e. accessible.

Returns:
true, if the ressource is accessible, false otherwise


Copyright © 2010-2013 UNICORE. All Rights Reserved.