Package org.infinispan.cli.resources
Class SchemasResource
- java.lang.Object
-
- org.infinispan.cli.resources.AbstractResource
-
- org.infinispan.cli.resources.SchemasResource
-
- All Implemented Interfaces:
Resource
public class SchemasResource extends AbstractResource
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.cli.resources.Resource
Resource.ListFormat
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSchemasResource(Resource parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescribe()Returns a textual representation of this resourceResourcegetChild(String name)Returns a resource representing the named childIterable<String>getChildrenNames()Returns an iterable over the children of this resourcebooleanisLeaf()Returns whether this resource is a leaf resource (i.e.-
Methods inherited from class org.infinispan.cli.resources.AbstractResource
findAncestor, getChild, getName, getParent, getResource, optionalFindAncestor, printChildren
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SchemasResource
protected SchemasResource(Resource parent)
-
-
Method Detail
-
getChildrenNames
public Iterable<String> getChildrenNames() throws IOException
Description copied from interface:ResourceReturns an iterable over the children of this resource- Specified by:
getChildrenNamesin interfaceResource- Overrides:
getChildrenNamesin classAbstractResource- Throws:
IOException
-
getChild
public Resource getChild(String name)
Description copied from interface:ResourceReturns a resource representing the named child- Specified by:
getChildin interfaceResource- Overrides:
getChildin classAbstractResource
-
isLeaf
public boolean isLeaf()
Description copied from interface:ResourceReturns whether this resource is a leaf resource (i.e. it has no children, or the children are not navigable)- Specified by:
isLeafin interfaceResource- Overrides:
isLeafin classAbstractResource
-
describe
public String describe() throws IOException
Description copied from interface:ResourceReturns a textual representation of this resource- Specified by:
describein interfaceResource- Overrides:
describein classAbstractResource- Throws:
IOException
-
-