Package com.adobe.reef.siren.builder
Class EntityBuilder
- java.lang.Object
-
- com.adobe.reef.siren.builder.Builder<Entity>
-
- com.adobe.reef.siren.builder.EntityBuilder
-
-
Constructor Summary
Constructors Constructor Description EntityBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityBuilder
addAction(Action action)
EntityBuilder
addEntity(Entity entity)
EntityBuilder
addLink(Link link)
EntityBuilder
addProperty(java.lang.String name, java.lang.Object value)
EntityBuilder
clear()
Resets all fields to their default values.EntityBuilder
setActions(java.util.List<Action> actions)
EntityBuilder
setClass(java.lang.String[] clazz)
EntityBuilder
setEntities(java.util.List<Entity> entities)
EntityBuilder
setHref(java.lang.String href)
EntityBuilder
setLinks(java.util.List<Link> links)
EntityBuilder
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
EntityBuilder
setRel(java.lang.String[] rel)
EntityBuilder
setTitle(java.lang.String title)
-
-
-
Method Detail
-
setTitle
public EntityBuilder setTitle(java.lang.String title)
-
setClass
public EntityBuilder setClass(java.lang.String[] clazz)
-
setRel
public EntityBuilder setRel(java.lang.String[] rel)
-
setHref
public EntityBuilder setHref(java.lang.String href)
-
setProperties
public EntityBuilder setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
-
addProperty
public EntityBuilder addProperty(java.lang.String name, java.lang.Object value)
-
setEntities
public EntityBuilder setEntities(java.util.List<Entity> entities)
-
addEntity
public EntityBuilder addEntity(Entity entity)
-
setLinks
public EntityBuilder setLinks(java.util.List<Link> links)
-
addLink
public EntityBuilder addLink(Link link)
-
setActions
public EntityBuilder setActions(java.util.List<Action> actions)
-
addAction
public EntityBuilder addAction(Action action)
-
clear
public EntityBuilder clear()
Description copied from class:Builder
Resets all fields to their default values.
-
-