public class AbstractResource
extends java.lang.Object
These class instances are typically created using the
static builder()
methods they contain.
The resulting instances are typically immutable,
so where fields can change callers should use a new builder
(or update an underlying data store).
This class is not meant to be instantiated directly, as CAMP only uses defined subclasses (ie containing these fields). It is instantiable for testing.
Modifier and Type | Class and Description |
---|---|
class |
AbstractResource.Builder<T extends AbstractResource,U extends AbstractResource.Builder<T,U>>
Builder creates the instance up front to avoid repetition of fields in the builder;
but prevents object leakage until build and prevents changes after build,
so effectively immutable.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAMP_TYPE |
Modifier and Type | Method and Description |
---|---|
static AbstractResource.Builder<? extends AbstractResource,? extends AbstractResource.Builder> |
builder() |
java.util.Date |
getCreated() |
java.util.Map<java.lang.String,java.lang.Object> |
getCustomAttributes() |
java.lang.String |
getDescription() |
java.lang.String |
getId() |
java.lang.String |
getName() |
RepresentationSkew |
getRepresentationSkew() |
java.lang.String |
getSourceCode() |
java.util.List<java.lang.String> |
getTags() |
java.lang.String |
getType() |
void |
setCustomAttribute(java.lang.String key,
java.lang.Object value) |
java.lang.String |
toString() |
public static final java.lang.String CAMP_TYPE
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getType()
public java.lang.String getDescription()
public java.lang.String getSourceCode()
public java.util.Date getCreated()
public java.util.List<java.lang.String> getTags()
public RepresentationSkew getRepresentationSkew()
public java.util.Map<java.lang.String,java.lang.Object> getCustomAttributes()
public void setCustomAttribute(java.lang.String key, java.lang.Object value)
public static AbstractResource.Builder<? extends AbstractResource,? extends AbstractResource.Builder> builder()
public java.lang.String toString()
toString
in class java.lang.Object