| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Entity.Builder |
action(Action action)
Adds the action provided to the current state of the builder.
|
Entity.Builder |
actions(Action... actions)
Adds the actions provided to the current state of the builder.
|
Entity |
build()
Constructs an instance with the
current state of the builder.
|
void |
clear()
Clears the state of the builder.
|
Entity.Builder |
klass(java.lang.String klass)
Adds the class provided to the current state of the builder.
|
Entity.Builder |
klasses(java.lang.String... klasses)
Adds the classes provided to the current state of the builder.
|
Entity.Builder |
link(Link link)
Adds the link provided to the current state of the builder.
|
Entity.Builder |
links(Link... links)
Adds the links provided to the current state of the builder.
|
<T> Entity.Builder |
property(java.lang.String propertyKey,
T propertyValue)
Adds the property provided to the current state of the builder.
|
Entity.Builder |
subEntities(EntityBase... subEntities)
Adds the sub-entities provided to the current state of the builder.
|
Entity.Builder |
subEntity(EntityBase subEntity)
Adds the sub-entity provided to the current state of the builder.
|
Entity.Builder |
title(java.lang.String title)
Adds the title provided to the current state of the builder.
|
public Entity.Builder klass(java.lang.String klass)
klass - Describes the nature of an entity's content based on the current representation.
Possible values are implementation-dependent and should be documented.public Entity.Builder klasses(java.lang.String... klasses)
klasses - Descriptions of the nature of an entity's content based on the current representation.
Possible values are implementation-dependent and should be documented.public <T> Entity.Builder property(java.lang.String propertyKey, T propertyValue)
T - The type of the value portion of a key-value pair that describes the state of an entity.propertyKey - The key portion of a key-value pair that describes the state of an entity.propertyValue - The value portion of a key-value pair that describes the state of an entity.public Entity.Builder action(Action action)
action - An action showing an available behavior an entity exposes.public Entity.Builder actions(Action... actions)
actions - Actions showing available behaviors an entity exposes.public Entity.Builder link(Link link)
link - A navigational link, distinct from an entity relationship.
Link items should contain a `rel` attribute to describe the relationship
and an `href` attribute to point to the target URI.
Entities should include a link `rel` to `self`.public Entity.Builder links(Link... links)
links - Navigational links, distinct from entity relationships.
Link items should contain a `rel` attribute to describe the relationship
and an `href` attribute to point to the target URI.
Entities should include a link `rel` to `self`.public Entity.Builder subEntity(EntityBase subEntity)
subEntity - A sub-entity represented as an embedded link or an embedded entity representation.public Entity.Builder subEntities(EntityBase... subEntities)
subEntities - Sub-entities represented individually as an embedded link
or an embedded entity representation.public Entity.Builder title(java.lang.String title)
title - Descriptive text about the entity.public void clear()
Copyright © 2017. All Rights Reserved.