public final class Resource extends FeedBasedEntity<Resource.Blueprint,Resource.Update>
| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Blueprint
Data required to create a resource.
|
static class |
Resource.Update |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>>ID_PROPERTY, properties| Constructor and Description |
|---|
Resource(CanonicalPath path,
ResourceType type) |
Resource(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() |
AbstractElement.Updater<Resource.Update,Resource> |
update() |
getFeedIdgetEnvironmentIdgetTenantIdequals, getId, getPath, getProperties, hashCode, valueOrDefaultpublic Resource(CanonicalPath path, ResourceType type)
public Resource(CanonicalPath path, ResourceType type, Map<String,Object> properties)
public AbstractElement.Updater<Resource.Update,Resource> update()
update in class AbstractElement<Resource.Blueprint,Resource.Update>public ResourceType getType()
public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElement<Resource.Blueprint,Resource.Update>R - 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 Entity<Resource.Blueprint,Resource.Update>toStringBuilder - the builder to append stuff to.Copyright © 2015 Red Hat, Inc.. All rights reserved.