@Entity public class ExternalLink extends VersionableEntity implements java.lang.Cloneable
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
ExternalLink() |
protected |
ExternalLink(ExternalLinkType type,
java.net.URI uri,
java.util.Map<Language,LanguageString> description,
java.lang.Integer size) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this external link.
|
java.util.Map<Language,LanguageString> |
getDescription()
Returns the
multilanguage text used to describe
this individuals association. |
ExternalLinkType |
getLinkType() |
java.lang.Integer |
getSize()
The download size of the external link.
|
java.net.URI |
getUri()
The URI of the external link
|
static ExternalLink |
NewInstance(ExternalLinkType type,
java.net.URI uri) |
static ExternalLink |
NewInstance(ExternalLinkType type,
java.net.URI uri,
java.util.Map<Language,LanguageString> description) |
static ExternalLink |
NewInstance(ExternalLinkType type,
java.net.URI uri,
java.util.Map<Language,LanguageString> description,
java.lang.Integer size) |
static ExternalLink |
NewInstance(ExternalLinkType type,
java.net.URI uri,
java.lang.String description,
java.lang.Integer size)
New default language instance
|
static ExternalLink |
NewWebSiteInstance(java.net.URI uri) |
static ExternalLink |
NewWebSiteInstance(java.net.URI uri,
java.util.Map<Language,LanguageString> description,
java.lang.Integer size) |
void |
putDescription(LanguageString description)
Adds a translated
text in a particular language
to the multilanguage text used to describe
this individuals association. |
void |
putDescription(Language language,
java.lang.String text)
Creates a
language string based on the given text string
and the given language and adds it to the multilanguage text
used to describe this individuals association. |
void |
removeDescription(Language language)
Removes from the
multilanguage text used to describe
this individuals association the one language string
with the given language . |
void |
setLinkType(ExternalLinkType linkType) |
void |
setSize(java.lang.Integer size) |
void |
setUri(java.net.URI uri) |
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
protected ExternalLink()
protected ExternalLink(ExternalLinkType type, java.net.URI uri, java.util.Map<Language,LanguageString> description, java.lang.Integer size)
public static ExternalLink NewInstance(ExternalLinkType type, java.net.URI uri)
public static ExternalLink NewInstance(ExternalLinkType type, java.net.URI uri, java.util.Map<Language,LanguageString> description)
public static ExternalLink NewInstance(ExternalLinkType type, java.net.URI uri, java.util.Map<Language,LanguageString> description, java.lang.Integer size)
public static ExternalLink NewInstance(ExternalLinkType type, java.net.URI uri, java.lang.String description, java.lang.Integer size)
type
- uri
- description
- size
- public static ExternalLink NewWebSiteInstance(java.net.URI uri)
public static ExternalLink NewWebSiteInstance(java.net.URI uri, java.util.Map<Language,LanguageString> description, java.lang.Integer size)
public ExternalLinkType getLinkType()
public void setLinkType(ExternalLinkType linkType)
public java.net.URI getUri()
public void setUri(java.net.URI uri)
public java.lang.Integer getSize()
public void setSize(java.lang.Integer size)
public java.util.Map<Language,LanguageString> getDescription()
multilanguage text
used to describe
this individuals association. The different language strings
contained in the multilanguage text should all have the same meaning.public void putDescription(LanguageString description)
text in a particular language
to the multilanguage text
used to describe
this individuals association.description
- the language string describing the individuals association
in a particular languagegetDescription()
,
putDescription(Language, String)
public void putDescription(Language language, java.lang.String text)
language string
based on the given text string
and the given language
and adds it to the multilanguage text
used to describe this individuals association.text
- the string describing the individuals association
in a particular languagelanguage
- the language in which the text string is formulatedgetDescription()
,
putDescription(LanguageString)
public void removeDescription(Language language)
multilanguage text
used to describe
this individuals association the one language string
with the given language
.language
- the language in which the language string to be removed
has been formulatedgetDescription()
public java.lang.Object clone()
clone
in class VersionableEntity
DescriptionElementBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.