Package nl.vpro.domain.media
Class Relation
java.lang.Object
nl.vpro.domain.media.Relation
- All Implemented Interfaces:
Serializable
,Comparable<Relation>
,Identifiable<Long>
@Entity
public class Relation
extends Object
implements Comparable<Relation>, Serializable, Identifiable<Long>
A relation is a free property in POMS. Every broadcaster can define their own set (see
RelationDefinition
Besides its definition it contains two field: A free form text field, and an uri field. One or both of them can be filled.- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRelation()
Relation
(Long id, RelationDefinition definition, String uriRef, String text) Relation
(RelationDefinition definition) Relation
(RelationDefinition definition, String uriRef, String text) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Relation.Builder
builder()
int
static Relation
boolean
getId()
getText()
getType()
getUrn()
int
hashCode()
static Long
static Relation
of
(RelationDefinition def, String uriRef, String text) static Relation
ofText
(RelationDefinition def, String text) static Relation
ofUri
(RelationDefinition def, String uri) void
setBroadcaster
(String broadcaster) void
setDefinition
(RelationDefinition definition) void
void
void
void
void
toString()
static Relation
-
Constructor Details
-
Relation
public Relation() -
Relation
-
Relation
-
Relation
-
Relation
-
-
Method Details
-
of
-
ofText
-
ofUri
-
copy
-
idFromUrn
-
update
-
getId
- Specified by:
getId
in interfaceIdentifiable<Long>
-
getText
-
getDefinition
-
getUriRef
-
getType
-
setType
-
getBroadcaster
-
setBroadcaster
-
getUrn
-
setUrn
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Relation>
-
toString
-
builder
-
setId
-
setDefinition
-
setUriRef
-
setText
-