Package black.door.hate
Class HalRepresentation.HalRepresentationBuilder
- java.lang.Object
-
- black.door.hate.HalRepresentation.HalRepresentationBuilder
-
- Enclosing class:
- HalRepresentation
public static class HalRepresentation.HalRepresentationBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description HalRepresentationBuilder()
-
Method Summary
-
-
-
Method Detail
-
expand
public HalRepresentation.HalRepresentationBuilder expand(String fieldName)
-
ignoreNullProperties
public HalRepresentation.HalRepresentationBuilder ignoreNullProperties(boolean active)
Causes any properties with null values added to this builder after this call to be ignored. Properties with null values added before this call will still be included. Null properties are included by default.- Parameters:
active
-- Returns:
- this builder
-
ignoreNullProperties
public boolean ignoreNullProperties()
-
isIgnoreNullResources
public boolean isIgnoreNullResources()
-
ignoreNullResources
public HalRepresentation.HalRepresentationBuilder ignoreNullResources(boolean active)
-
addProperty
public HalRepresentation.HalRepresentationBuilder addProperty(String name, Object prop)
-
addProperties
public HalRepresentation.HalRepresentationBuilder addProperties(com.fasterxml.jackson.databind.JsonNode jax)
-
addEmbedded
public HalRepresentation.HalRepresentationBuilder addEmbedded(String name, HalResource link)
-
addEmbedded
public HalRepresentation.HalRepresentationBuilder addEmbedded(String name, Collection<? extends HalResource> link)
-
addLink
public HalRepresentation.HalRepresentationBuilder addLink(String name, LinkOrResource link)
-
addLink
public HalRepresentation.HalRepresentationBuilder addLink(String name, URI link)
-
addLink
public HalRepresentation.HalRepresentationBuilder addLink(String name, Collection<? extends LinkOrResource> link)
-
removeLink
public HalRepresentation.HalRepresentationBuilder removeLink(String name)
-
removeEmbedded
public HalRepresentation.HalRepresentationBuilder removeEmbedded(String name)
-
removeProperty
public HalRepresentation.HalRepresentationBuilder removeProperty(String name)
-
build
public HalRepresentation build()
-
-