public final class PSXRef extends Object implements PSEntity
Modifier and Type | Class and Description |
---|---|
static class |
PSXRef.DISPLAY
XRef titles to display.
|
static class |
PSXRef.TYPE
XRef type.
|
Constructor and Description |
---|
PSXRef()
Constructor
|
public String getKey()
public boolean isValid()
PSEntity
public boolean isIdentifiable()
PSEntity
To be identifiable, the entity must have either a private id or a public id.
If the public ID does not correspond to a single attribute in PageSeeder, then a combination of attributes may be used to determine whether it is possible to identify the entity.
isIdentifiable
in interface PSEntity
true
if the object can be identified in PageSeeder;
false
if it is not possible to identify the entity form its attributes or keys.public String getIdentifier()
PSEntity
When both the private and public identifier are available, the private identifier takes precedence over the public one.
When the public identifier cannot be used on its own, then only the private ID is returned.
In general, if the PSEntity.isIdentifiable()
method return true
, this
method should return a value. When it is not the case, it should be clearly documented.
getIdentifier
in interface PSEntity
public EntityValidity checkValid()
PSEntity
checkValid
in interface PSEntity
true
if the object is intrinsically valid based on its internal values;
false
if any of its attributes violates a PageSeeder constraint.public Long getTargetURIId()
public String getTargetURITitle()
public String getTargetMediaType()
public Long getSourceURIId()
public String getSourceURITitle()
public String getSourceMediaType()
public String getSourceDocid()
public String getSourceHref()
public String getSourceFragment()
public PSXRef.TYPE getType()
public PSXRef.TYPE getReverseType()
public PSXRef.DISPLAY getDisplay()
public boolean getReverseLink()
public String getReverseTitle()
public Integer getLevel()
public String getTargetDocid()
public String getTargetHref()
public String getTargetFragment()
public String getTitle()
public final String getLabelsAsString()
public String getContent()
public void setTargetURI(PSURI targetURI)
targetURI
- the new target URIpublic void setTitle(String title)
title
- the new title to setpublic final void setLabels(String labels)
labels
- The labels as a comma-separated list.public void setId(Long id)
id
- the id to setpublic void setSourceURI(PSURI sourceURI)
sourceURI
- the source URI to setpublic void setSourceFragment(String sourceFragment)
sourceFragment
- the source Fragment to setpublic void setTargetFragment(String targetFragment)
targetFragment
- the target Fragment to setpublic void setReverseLink(boolean reverseLink)
reverseLink
- the reverseLink to setpublic void setReverseTitle(String reverseTitle)
reverseTitle
- the reverse Title to setpublic void setLevel(Integer level)
level
- the level to setpublic void setDisplay(PSXRef.DISPLAY display)
display
- the display to setpublic void setType(PSXRef.TYPE type)
type
- the type to setpublic void setReverseType(PSXRef.TYPE reverseType)
reverseType
- the reverse Type to setCopyright © 2016 Allette Systems. All rights reserved.