Package org.mycore.datamodel.metadata
Class MCRMetaEnrichedLinkID
java.lang.Object
org.mycore.datamodel.metadata.MCRMetaDefault
org.mycore.datamodel.metadata.MCRMetaLink
org.mycore.datamodel.metadata.MCRMetaLinkID
org.mycore.datamodel.metadata.MCRMetaEnrichedLinkID
- All Implemented Interfaces:
Cloneable
,MCRMetaInterface
- Direct Known Subclasses:
MCREditableMetaEnrichedLinkID
@JsonClassDescription("Links to derivates")
public class MCRMetaEnrichedLinkID
extends MCRMetaLinkID
A Link to a
MCRDerivate
. In addition to MCRMetaLink
this class contains information about the
linked MCRBase
like mainDoc, titles and classifications in MCRDerivate
.
See also MCREditableMetaEnrichedLinkID
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
Fields inherited from class org.mycore.datamodel.metadata.MCRMetaLink
from, href, label, linktype, role, title, to
Fields inherited from class org.mycore.datamodel.metadata.MCRMetaDefault
datapart, DEFAULT_ATTRIBUTE_INHERITED, DEFAULT_ATTRIBUTE_LANG, DEFAULT_ATTRIBUTE_SEQUENCE, DEFAULT_ATTRIBUTE_TYPE, DEFAULT_ELEMENT_DATAPART, DEFAULT_INHERITED, DEFAULT_LANG_LENGTH, DEFAULT_LANGUAGE, DEFAULT_SEQUENCE, DEFAULT_STRING_LENGTH, DEFAULT_TYPE_LENGTH, inherited, lang, NL, sequence, subtag, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Creates the JSON representation.This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLink definition for the given subtag.boolean
static MCRMetaEnrichedLinkID
int
getOrder()
getTitle()
int
hashCode()
void
setContentList
(List<Content> contentList) void
setFromDOM
(Element element) This method read the XML input stream part from a DOM part for the metadata of the document.Methods inherited from class org.mycore.datamodel.metadata.MCRMetaLinkID
clone, getXLinkFromID, getXLinkHrefID, getXLinkToID, setBiLink, setBiLink, setReference, setReference, toString
Methods inherited from class org.mycore.datamodel.metadata.MCRMetaLink
compare, debug, getXLinkFrom, getXLinkHref, getXLinkLabel, getXLinkRole, getXLinkTitle, getXLinkTo, getXLinkType, setXLinkLabel, setXLinkRole, setXLinkTitle, validate
Methods inherited from class org.mycore.datamodel.metadata.MCRMetaDefault
debugDefault, decrementInherited, getInherited, getLang, getSequence, getSubTag, getType, incrementInherited, isValid, setInherited, setLang, setSequence, setSubTag, setType
-
Field Details
-
ORDER_ELEMENT_NAME
- See Also:
-
MAIN_DOC_ELEMENT_NAME
- See Also:
-
CLASSIFICATION_ELEMENT_NAME
- See Also:
-
CLASSID_ATTRIBUTE_NAME
- See Also:
-
CATEGID_ATTRIBUTE_NAME
- See Also:
-
TITLE_ELEMENT_NAME
- See Also:
-
LANG_ATTRIBUTE_NAME
- See Also:
-
-
Constructor Details
-
MCRMetaEnrichedLinkID
public MCRMetaEnrichedLinkID()
-
-
Method Details
-
fromDom
-
setFromDOM
Description copied from class:MCRMetaLinkID
This method read the XML input stream part from a DOM part for the metadata of the document.- Specified by:
setFromDOM
in interfaceMCRMetaInterface
- Overrides:
setFromDOM
in classMCRMetaLinkID
- Parameters:
element
- a relevant DOM element for the metadata
-
createXML
Description copied from class:MCRMetaLink
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLink definition for the given subtag.- Specified by:
createXML
in interfaceMCRMetaInterface
- Overrides:
createXML
in classMCRMetaLink
- Returns:
- a JDOM Element with the XML MCRMetaLink part
- Throws:
MCRException
- if the content of this class is not valid
-
getContentList
-
setContentList
-
getOrder
public int getOrder() -
getMainDoc
-
getClassifications
-
getTitle
-
elementsWithNameFromContentList
-
createJSON
public com.google.gson.JsonObject createJSON()Description copied from class:MCRMetaLink
Creates the JSON representation. Extends theMCRMetaDefault.createJSON()
method with the following data. For linktype equals 'locator':{ label: "MyCoRe Derivate Image", title: "MyCoRe Derivate Image", role: "image_reference", href: "mycore_derivate_00000001/image.tif" }
For all other linktypes (arc):{ label: "Link between Issue and Person", title: "Link between Issue and Person", role: "link", from: "mycore_issue_00000001", to: "mycore_person_00000001" }
- Specified by:
createJSON
in interfaceMCRMetaInterface
- Overrides:
createJSON
in classMCRMetaLink
- Returns:
- a GSON object containing the json data of the metadata part
-
equals
- Overrides:
equals
in classMCRMetaLinkID
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMCRMetaLink
-