public final class Resource extends Entity
| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Blueprint
Data required to create a resource.
|
| Modifier and Type | Field and Description |
|---|---|
static SegmentType |
SEGMENT_TYPE |
properties| Constructor and Description |
|---|
Resource(CanonicalPath path,
ResourceType type) |
Resource(CanonicalPath path,
ResourceType type,
Map<String,Object> properties) |
Resource(String name,
CanonicalPath path,
ResourceType type) |
Resource(String name,
CanonicalPath path,
ResourceType type,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> visitor,
P parameter)
Accepts the provided visitor.
|
protected void |
appendToString(StringBuilder toStringBuilder)
Use this to append additional information to the string representation of this instance
returned from the (final)
Entity.toString(). |
ResourceType |
getType() |
entityTypeFromSegmentType, getName, toString, typeFromSegmentTypeequals, getId, getPath, getProperties, hashCode, segmentTypeFromType, toElementClasspublic static final SegmentType SEGMENT_TYPE
public Resource(CanonicalPath path, ResourceType type)
public Resource(String name, CanonicalPath path, ResourceType type)
public Resource(CanonicalPath path, ResourceType type, Map<String,Object> properties)
public Resource(String name, CanonicalPath path, ResourceType type, Map<String,Object> properties)
public ResourceType getType()
public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElementR - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorprotected void appendToString(StringBuilder toStringBuilder)
EntityEntity.toString().
Generally, one should call the super method first and then only add additional information to the builder.
appendToString in class EntitytoStringBuilder - the builder to append stuff to.Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.