Package nl.vpro.domain.media
Class GeoLocation
- java.lang.Object
-
- nl.vpro.domain.DomainObject
-
- nl.vpro.domain.media.GeoLocation
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<GeoLocation>
,Child<GeoLocations>
,Identifiable<Long>
,GTAAManaged
,GTAARecordManaged
,MediaObjectOwnableListItem<GeoLocation,GeoLocations>
,nl.vpro.domain.media.support.OwnableListItem<GeoLocation,GeoLocations>
,org.meeuw.i18n.regions.Region
@Entity public class GeoLocation extends DomainObject implements MediaObjectOwnableListItem<GeoLocation,GeoLocations>, org.meeuw.i18n.regions.Region, GTAARecordManaged
A GeoLocation is a wrapper around a GTAARecord linking it ot a GeoLocations record.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoLocation.Builder
-
Field Summary
-
Fields inherited from class nl.vpro.domain.DomainObject
id
-
-
Constructor Summary
Constructors Constructor Description GeoLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NonNull GeoLocation.Builder
builder()
GeoLocation
clone()
int
compareTo(GeoLocation geoLocation)
boolean
equals(Object o)
String
getCode()
GTAARecord
getGtaaRecord()
GTAAStatus
getGtaaStatus()
The status in GTAA of this thesaurus item.String
getGtaaUri()
The URI in GTAA of this thesaurus itemString
getName()
GeoLocations
getParent()
@NotNull(message="{nl.vpro.constraints.NotNull}") GeoRoleType
getRole()
List<String>
getScopeNotes()
org.meeuw.i18n.regions.Region.Type
getType()
int
hashCode()
static GeoLocation
of(GeoRoleType role, GTAARecord gtaaRecord)
static GeoLocation
producedIn(GTAARecord gtaaRecord)
static GeoLocation
recordedIn(GTAARecord gtaaRecord)
void
setGtaaRecord(GTAARecord gtaaRecord)
void
setGtaaStatus(GTAAStatus status)
void
setGtaaUri(String uri)
void
setName(String name)
void
setParent(GeoLocations parent)
void
setRole(@NotNull(message="{nl.vpro.constraints.NotNull}") GeoRoleType role)
void
setScopeNotes(List<String> scopeNotes)
static GeoLocation
subject(GTAARecord gtaaRecord)
@NonNull String
toString()
-
Methods inherited from class nl.vpro.domain.DomainObject
getId, isPersisted, setId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface nl.vpro.domain.Identifiable
getId
-
-
-
-
Method Detail
-
of
public static GeoLocation of(GeoRoleType role, GTAARecord gtaaRecord)
-
subject
public static GeoLocation subject(GTAARecord gtaaRecord)
-
producedIn
public static GeoLocation producedIn(GTAARecord gtaaRecord)
-
recordedIn
public static GeoLocation recordedIn(GTAARecord gtaaRecord)
-
getName
public String getName()
- Specified by:
getName
in interfaceGTAAManaged
- Specified by:
getName
in interfaceGTAARecordManaged
- Specified by:
getName
in interfaceorg.meeuw.i18n.regions.Region
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceGTAAManaged
- Specified by:
setName
in interfaceGTAARecordManaged
-
getScopeNotes
public List<String> getScopeNotes()
- Specified by:
getScopeNotes
in interfaceGTAAManaged
- Specified by:
getScopeNotes
in interfaceGTAARecordManaged
-
setScopeNotes
public void setScopeNotes(List<String> scopeNotes)
- Specified by:
setScopeNotes
in interfaceGTAAManaged
- Specified by:
setScopeNotes
in interfaceGTAARecordManaged
-
getGtaaStatus
public GTAAStatus getGtaaStatus()
Description copied from interface:GTAARecordManaged
The status in GTAA of this thesaurus item.- Specified by:
getGtaaStatus
in interfaceGTAAManaged
- Specified by:
getGtaaStatus
in interfaceGTAARecordManaged
-
setGtaaStatus
public void setGtaaStatus(GTAAStatus status)
- Specified by:
setGtaaStatus
in interfaceGTAAManaged
- Specified by:
setGtaaStatus
in interfaceGTAARecordManaged
-
getGtaaUri
public String getGtaaUri()
Description copied from interface:GTAARecordManaged
The URI in GTAA of this thesaurus item- Specified by:
getGtaaUri
in interfaceGTAAManaged
- Specified by:
getGtaaUri
in interfaceGTAARecordManaged
-
setGtaaUri
public void setGtaaUri(String uri)
- Specified by:
setGtaaUri
in interfaceGTAAManaged
- Specified by:
setGtaaUri
in interfaceGTAARecordManaged
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDomainObject
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDomainObject
-
compareTo
public int compareTo(GeoLocation geoLocation)
- Specified by:
compareTo
in interfaceComparable<GeoLocation>
-
clone
public GeoLocation clone()
- Specified by:
clone
in interfaceMediaObjectOwnableListItem<GeoLocation,GeoLocations>
- Overrides:
clone
in classObject
-
getCode
public String getCode()
- Specified by:
getCode
in interfaceorg.meeuw.i18n.regions.Region
-
getType
public org.meeuw.i18n.regions.Region.Type getType()
- Specified by:
getType
in interfaceorg.meeuw.i18n.regions.Region
-
builder
public static @NonNull GeoLocation.Builder builder()
-
getParent
public GeoLocations getParent()
- Specified by:
getParent
in interfaceChild<GeoLocations>
-
getRole
@NotNull(message="{nl.vpro.constraints.NotNull}") public @NotNull(message="{nl.vpro.constraints.NotNull}") GeoRoleType getRole()
-
getGtaaRecord
public GTAARecord getGtaaRecord()
- Specified by:
getGtaaRecord
in interfaceGTAARecordManaged
-
setParent
public void setParent(GeoLocations parent)
- Specified by:
setParent
in interfaceChild<GeoLocations>
-
setRole
public void setRole(@NotNull(message="{nl.vpro.constraints.NotNull}") @NotNull(message="{nl.vpro.constraints.NotNull}") GeoRoleType role)
-
setGtaaRecord
public void setGtaaRecord(GTAARecord gtaaRecord)
- Specified by:
setGtaaRecord
in interfaceGTAARecordManaged
-
toString
public @NonNull String toString()
- Overrides:
toString
in classDomainObject
-
-