Class ManageableResource
java.lang.Object
com.janeirodigital.shapetrees.core.resources.InstanceResource
com.janeirodigital.shapetrees.core.resources.ManageableResource
- Direct Known Subclasses:
ManagedResource
,MissingManageableResource
,UnmanagedResource
A ManageableResource represents a regular resource that could be managed by
one or more shape trees. Each possible state is represented by typed
subclasses; ManagedResource, UnmanagedResource, and
MissingManageableResource. When the state is known, the appropriate
typed subclass should be used.
-
Constructor Summary
ConstructorsConstructorDescriptionManageableResource
(URL url, ShapeTreeResourceType resourceType, ResourceAttributes attributes, String body, String name, boolean exists, Optional<URL> managerResourceUrl) Construct a manageable resource. -
Method Summary
Methods inherited from class com.janeirodigital.shapetrees.core.resources.InstanceResource
getAttributes, getBody, getGraph, getName, getResourceType, getUrl, isExists
-
Constructor Details
-
ManageableResource
public ManageableResource(URL url, ShapeTreeResourceType resourceType, ResourceAttributes attributes, String body, String name, boolean exists, Optional<URL> managerResourceUrl) Construct a manageable resource.- Parameters:
url
- URL of the resourceresourceType
- Identified shape tree resource typeattributes
- Associated resource attributesbody
- Body of the resourcename
- Name of the resourceexists
- Whether the resource existsmanagerResourceUrl
- URL of the shape tree manager resource
-
-
Method Details
-
isContainer
public boolean isContainer() -
getManagerResourceUrl
-