Interface Reference
public interface Reference
A reference is either an internal reference (e.g. "media:logo"), a
remote reference (e.g. "media:logo, remote:MainProject") or an
external reference (e.g. "http://www.google.com").
A reference is
A reference is
broken
if the reference name couldn't be
found.- Since:
- 3.1.158
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Type string identifying a reference to aEntity
An unmodifyable empty reference list.static final String
Type string identifying a reference to aLinkTemplate
static final String
Type string identifying a reference to aLinkTemplate
static final String
Type string identifying a reference to aLinkTemplate
static final String
Type string identifying a reference to aPageTemplate
static final String
Type string identifying a reference to aQuery
static final String
Type string identifying a reference to aLinkTemplate
static final String
Type string identifying a reference to aFormatTemplate
static final String
Type string identifying a reference to aSectionTemplate
static final String
Type string identifying a reference to aTableTemplate
-
Method Summary
Modifier and TypeMethodDescriptionReturns the language of the reference.Returns the referenced object.Returns the store type.Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.24 - no replacementgetReferenceEntry
(UserService userService, boolean release) Returns reference entry.Returns the reference string.Returns the symbolic name of theremote project configuration
.Returns the type of the reference.boolean
isBroken()
Internal references may be broken, e.g.boolean
isRemote()
Returns id this reference is a remote reference.void
setReferencedObject
(Object value) Sets the (local) referenced object.
-
Field Details
-
EMPTY_REFERENCE_LIST
An unmodifyable empty reference list.- Since:
- 4.2.24
-
SECTION_TEMPLATE_REFERENCE
Type string identifying a reference to aSectionTemplate
- Since:
- 3.1.158
- See Also:
-
PAGE_TEMPLATE_REFERENCE
Type string identifying a reference to aPageTemplate
- Since:
- 3.1.158
- See Also:
-
LINK_TEMPLATE_REFERENCE
Type string identifying a reference to aLinkTemplate
- Since:
- 3.1.158
- See Also:
-
RENDER_TEMPLATE_REFERENCE
Type string identifying a reference to aFormatTemplate
- Since:
- 3.1.158
- See Also:
-
TABLE_TEMPLATE_REFERENCE
Type string identifying a reference to aTableTemplate
- Since:
- 4.2.24
- See Also:
-
INTERNAL_LINK
Type string identifying a reference to aLinkTemplate
- Since:
- 4.2.24
- See Also:
-
EXTERNAL_LINK
Type string identifying a reference to aLinkTemplate
- Since:
- 4.2.24
- See Also:
-
CONTENT_LINK
Type string identifying a reference to aEntity
- Since:
- 4.2.24
- See Also:
-
RELATED_PROJECT_LINK
Type string identifying a reference to aLinkTemplate
- Since:
- 4.2.24
- See Also:
-
QUERY_REFERENCE
Type string identifying a reference to aQuery
- Since:
- 4.2.410
- See Also:
-
-
Method Details
-
getTypeName
String getTypeName()Returns the type of the reference.- Returns:
- One of the following values:
- Since:
- 3.1.158
-
getLanguage
Language getLanguage()Returns the language of the reference.- Returns:
- the language of the reference.
- Since:
- 3.1.158
-
getReferencedObject
Object getReferencedObject()Returns the referenced object.- Returns:
- The url for external references, the referenced
StoreElement
for internal references, ornull
forbroken references
. - Since:
- 3.1.158
-
getRemoteName
String getRemoteName()Returns the symbolic name of theremote project configuration
.- Returns:
- symbolic name of the remote project or
null
for a non-remote reference. - Since:
- 3.1.324
- See Also:
-
setReferencedObject
Sets the (local) referenced object.- Parameters:
value
- new referenced object.- Since:
- 3.1.158
-
isBroken
boolean isBroken()Internal references may be broken, e.g. "media:logo" when no media object with the name "logo" exists. UsegetReferenceString()
to get more information for the desired target.
The target of external references is not checked, e.g if an invalid url is specified for an external reference,isBroken()
returnsfalse
.- Returns:
true
if this is an internal reference and the target does not exist- Since:
- 3.1.172
-
isRemote
boolean isRemote()Returns id this reference is a remote reference.- Returns:
true
if this reference is a remote reference.- Since:
- 3.1.324
-
getReferenceString
String getReferenceString()Returns the reference string.- Returns:
- The reference string, e.g. "media:logo" for an internal reference or "http://www.google.com" for external reference
- Since:
- 3.1.172
-
getReferencedStoreType
Store.Type getReferencedStoreType()Returns the store type.- Returns:
- The store type for internal references and
null
for external references. - Since:
- 4.0.17
-
getReferenceEntry
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.24 - no replacementReturnsnull
.- Since:
- 3.1.324
-
getReferenceEntry
Returns reference entry.- Returns:
- the reference entry.
- Since:
- 4.2.24
-