Package com.github.jasminb.jsonapi
Class SerializationSettings
- java.lang.Object
-
- com.github.jasminb.jsonapi.SerializationSettings
-
public class SerializationSettings extends Object
Serialization settings.- Author:
- jbegic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerializationSettings.BuilderSerialisation settings builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasIncludedRelationships()Returnstruein case there is at least one relationship that should be included during serialization.booleanisRelationshipExcluded(String relationshipName)Checks if relationship with provided name has been explicitly marked for exclusion in serialized object.booleanisRelationshipIncluded(String relationshipName)Checks if relationship with provided name has been explicitly marked for inclusion in serialized object.BooleanserializeId()ReturnsIdserialization flag.BooleanserializeJSONAPIObject()Returns JSON API object serialization flag.BooleanserializeLinks()Returns links serialization flag.BooleanserializeMeta()Returns meta serialization flag.
-
-
-
Method Detail
-
isRelationshipIncluded
public boolean isRelationshipIncluded(String relationshipName)
Checks if relationship with provided name has been explicitly marked for inclusion in serialized object.
-
isRelationshipExcluded
public boolean isRelationshipExcluded(String relationshipName)
Checks if relationship with provided name has been explicitly marked for exclusion in serialized object.
-
hasIncludedRelationships
public boolean hasIncludedRelationships()
Returnstruein case there is at least one relationship that should be included during serialization.- Returns:
Boolean
-
-