public class DefaultConfigurableHypermediaResource extends java.lang.Object implements ConfigurableHypermediaResource
RelationBuilder
to record relations and add it later
when configuring relation.RelationBuilder.WithName
Constructor and Description |
---|
DefaultConfigurableHypermediaResource(RelationBuilder delegate,
java.lang.Object model) |
Modifier and Type | Method and Description |
---|---|
void |
add(Relation relation)
adds a relation
|
void |
configureRelations(RelationBuilder builder)
configures relations using given relation builder
|
<T> T |
getModel() |
java.util.List<Relation> |
getRelations() |
<T> T |
relation(java.lang.Class<T> type)
Creates a relation using default name
|
RelationBuilder.WithName |
relation(java.lang.String name)
Creates a named relation
|
public DefaultConfigurableHypermediaResource(RelationBuilder delegate, java.lang.Object model)
public <T> T getModel()
getModel
in interface ConfigurableHypermediaResource
public void configureRelations(RelationBuilder builder)
HypermediaResource
configureRelations
in interface HypermediaResource
public void add(Relation relation)
RelationBuilder
add
in interface RelationBuilder
public java.util.List<Relation> getRelations()
getRelations
in interface RelationBuilder
public <T> T relation(java.lang.Class<T> type)
RelationBuilder
relation
in interface RelationBuilder
public RelationBuilder.WithName relation(java.lang.String name)
RelationBuilder
relation
in interface RelationBuilder
Copyright © 2013 Caelum. All Rights Reserved.