Package nl.vpro.domain
Class AbstractOwnedText<T extends AbstractOwnedText<T>>
- java.lang.Object
-
- nl.vpro.domain.AbstractOwnedText<T>
-
- All Implemented Interfaces:
Serializable
,CharSequence
,Comparable<TypedText>
,Supplier<String>
,nl.vpro.domain.media.support.MutableOwnable
,nl.vpro.domain.media.support.Ownable
,Typable<TextualType>
,OwnedText
,TypedText
- Direct Known Subclasses:
AbstractOwnedTextEntity
,Description
,Title
@MappedSuperclass public abstract class AbstractOwnedText<T extends AbstractOwnedText<T>> extends Object implements OwnedText, Serializable
- Since:
- 5.1
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected @NonNull nl.vpro.domain.media.support.OwnerType
owner
protected @NotNull(message="{nl.vpro.constraints.NotNull}") TextualType
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOwnedText()
protected
AbstractOwnedText(@NonNull nl.vpro.domain.media.support.OwnerType owner, TextualType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NonNull nl.vpro.domain.media.support.OwnerType
getOwner()
TextualType
getType()
int
hashCode()
void
setOwner(@NonNull nl.vpro.domain.media.support.OwnerType owner)
void
setType(TextualType type)
@NonNull String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
Methods inherited from interface nl.vpro.domain.OwnedText
compareTo, fullString
-
Methods inherited from interface nl.vpro.domain.TypedText
charAt, get, length, mayContainNewLines, set, subSequence
-
-
-
-
Field Detail
-
owner
@NonNull protected @NonNull nl.vpro.domain.media.support.OwnerType owner
-
type
@NotNull(message="{nl.vpro.constraints.NotNull}") protected @NotNull(message="{nl.vpro.constraints.NotNull}") TextualType type
-
-
Constructor Detail
-
AbstractOwnedText
protected AbstractOwnedText()
-
AbstractOwnedText
protected AbstractOwnedText(@NonNull @NonNull nl.vpro.domain.media.support.OwnerType owner, TextualType type)
-
-
Method Detail
-
toString
@NonNull public final @NonNull String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
getOwner
@NonNull public @NonNull nl.vpro.domain.media.support.OwnerType getOwner()
- Specified by:
getOwner
in interfacenl.vpro.domain.media.support.Ownable
-
setOwner
public void setOwner(@NonNull @NonNull nl.vpro.domain.media.support.OwnerType owner)
- Specified by:
setOwner
in interfacenl.vpro.domain.media.support.MutableOwnable
-
getType
public TextualType getType()
- Specified by:
getType
in interfaceTypable<T extends AbstractOwnedText<T>>
-
setType
public void setType(TextualType type)
- Specified by:
setType
in interfaceTypable<T extends AbstractOwnedText<T>>
-
-