public class MdrKey extends Object implements Serializable, Comparable<MdrKey>
| Constructor and Description |
|---|
MdrKey()
Instantiates a new mdr key.
|
MdrKey(String mdrKey,
MdrConnection mdrConnection)
Instantiates a new mdr key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MdrKey o) |
boolean |
equals(Object obj) |
String |
forXml()
Returns the MDR key as we need it for the import/export XMLs.
|
de.samply.common.mdrclient.domain.Catalogue |
getCatalogue()
Todo.
|
de.samply.common.mdrclient.domain.Definition |
getDefinition()
Gets the definition.
|
String |
getId()
Gets the id.
|
String |
getKeyWithoutVersion() |
List<de.samply.common.mdrclient.domain.Label> |
getLabel()
Gets a list of mdr key labels.
|
String |
getMdrDefinition()
Gets this mdrkey's first definition as string.
|
String |
getMdrDesignation()
gets this mdrkey's first designation as string.
|
String |
getMdrLabel()
gets this mdrkey's first designation as string.
|
List<de.samply.common.mdrclient.domain.Result> |
getMembers()
Gets a list of record or group members.
|
Set<MdrKey> |
getMembersSet()
Gets the members of a mdr record or a mdr group.
|
Set<MdrKey> |
getMembersSet(de.samply.common.mdrclient.domain.EnumElementType type)
Gets the members of specific type from a mdr record or a mdr group.
|
String |
getNamespace()
Gets the namespace.
|
String |
getSingleSlotValue(String slotKey)
Gets the only slot value of a key.
|
List<de.samply.common.mdrclient.domain.Slot> |
getSlots()
Retuns the slots of this dataelement.
|
String |
getSlotValue(String slotKey)
Deprecated.
|
String |
getSlotValueLazyLoading(String slotKey)
Deprecated.
|
List<String> |
getSlotValues(String slotKey)
Gets the slot values of a key.
|
de.samply.common.mdrclient.domain.EnumElementType |
getType()
Gets the type.
|
de.samply.common.mdrclient.domain.Validations |
getValidations()
Returns the Validations of this dataelement.
|
String |
getVersion()
Gets the version.
|
int |
hashCode() |
boolean |
isGroup()
Checks if the mdrKey represents a dataelementgroup.
|
Boolean |
isRecord()
checks if a mdrkey represents a record.
|
void |
loadDataElement()
Load the whole Dataelement in order to reduce (costly) calls to the mdr.
|
String |
namespaceForXml()
gets the namespace part of this mdrkey.
|
Boolean |
parseString(String mdrKey)
Parses a string representation of a mdr key.
|
String |
purify()
Returns a version of the MDRkey in which dots are replaced with one underscore and colons are
replaced with double underscores colons and dots are illegal characters in maps and JSF params
so we need to replace them in a way that our backend saver can recognize and re-replace with
the original character.
|
void |
setId(String id)
Sets the id.
|
void |
setNamespace(String namespace)
Sets the namespace.
|
void |
setType(de.samply.common.mdrclient.domain.EnumElementType type)
Sets the type.
|
void |
setVersion(String version)
Sets the version.
|
String |
toString()
Returns a string representation of this mdr key.
|
public MdrKey()
public MdrKey(String mdrKey, MdrConnection mdrConnection)
mdrKey - the mdr keymdrConnection - the mdr connectionpublic Set<MdrKey> getMembersSet() throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the MDR exceptionpublic Set<MdrKey> getMembersSet(de.samply.common.mdrclient.domain.EnumElementType type) throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException
type - the type of the membersde.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the MDR exceptionpublic List<de.samply.common.mdrclient.domain.Result> getMembers() throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the MDR exceptionpublic List<de.samply.common.mdrclient.domain.Label> getLabel() throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the MDR exceptionpublic de.samply.common.mdrclient.domain.Definition getDefinition()
throws de.samply.common.mdrclient.MdrConnectionException,
de.samply.common.mdrclient.MdrInvalidResponseException,
ExecutionException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionde.samply.common.mdrclient.MdrInvalidResponseException - the mdr invalid response exceptionExecutionException - the execution exceptionpublic String getMdrDefinition() throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException, de.samply.common.mdrclient.MdrInvalidResponseException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the OSSE exceptionde.samply.common.mdrclient.MdrInvalidResponseException - the mdr invalid response exceptionpublic String getMdrDesignation() throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException, de.samply.common.mdrclient.MdrInvalidResponseException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the OSSE exceptionde.samply.common.mdrclient.MdrInvalidResponseException - the mdr invalid response exceptionpublic String getMdrLabel() throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException, de.samply.common.mdrclient.MdrInvalidResponseException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionExecutionException - the execution exceptionMdrException - the OSSE exceptionde.samply.common.mdrclient.MdrInvalidResponseException - the mdr invalid response exceptionpublic Boolean parseString(String mdrKey)
mdrKey - the mdr keypublic String toString()
public String purify()
public String forXml()
public String namespaceForXml()
public Boolean isRecord()
public void loadDataElement()
throws ExecutionException,
de.samply.common.mdrclient.MdrConnectionException,
de.samply.common.mdrclient.MdrInvalidResponseException
ExecutionExceptionde.samply.common.mdrclient.MdrConnectionExceptionde.samply.common.mdrclient.MdrInvalidResponseExceptionpublic de.samply.common.mdrclient.domain.Validations getValidations()
throws de.samply.common.mdrclient.MdrConnectionException,
de.samply.common.mdrclient.MdrInvalidResponseException,
ExecutionException,
MdrException
de.samply.common.mdrclient.MdrConnectionException - the mdr connection exceptionde.samply.common.mdrclient.MdrInvalidResponseException - the mdr invalid response exceptionExecutionException - the execution exceptionMdrException - the OSSE exceptionpublic de.samply.common.mdrclient.domain.Catalogue getCatalogue()
throws ExecutionException,
de.samply.common.mdrclient.MdrConnectionException,
de.samply.common.mdrclient.MdrInvalidResponseException
ExecutionException - Todo.de.samply.common.mdrclient.MdrConnectionException - Todo.de.samply.common.mdrclient.MdrInvalidResponseException - Todo.public List<de.samply.common.mdrclient.domain.Slot> getSlots() throws de.samply.common.mdrclient.MdrConnectionException, de.samply.common.mdrclient.MdrInvalidResponseException, ExecutionException
de.samply.common.mdrclient.MdrConnectionException - Todo.de.samply.common.mdrclient.MdrInvalidResponseException - Todo.ExecutionException - Todo.@Deprecated public String getSlotValueLazyLoading(String slotKey) throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, de.samply.common.mdrclient.MdrInvalidResponseException, MdrException
slotKey - the keyde.samply.common.mdrclient.MdrConnectionException - Todo.ExecutionException - Todo.de.samply.common.mdrclient.MdrInvalidResponseException - Todo.MdrException - Todo.public List<String> getSlotValues(String slotKey) throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, de.samply.common.mdrclient.MdrInvalidResponseException, MdrException
slotKey - the keyde.samply.common.mdrclient.MdrConnectionExceptionExecutionExceptionde.samply.common.mdrclient.MdrInvalidResponseExceptionMdrExceptionpublic String getSingleSlotValue(String slotKey) throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, de.samply.common.mdrclient.MdrInvalidResponseException, MdrException
slotKey - the keyMdrException - When there are more then one value for this slot.de.samply.common.mdrclient.MdrConnectionExceptionExecutionExceptionde.samply.common.mdrclient.MdrInvalidResponseException@Deprecated public String getSlotValue(String slotKey)
slotKey - the keypublic String getNamespace()
public void setNamespace(String namespace)
namespace - the namespace to setpublic de.samply.common.mdrclient.domain.EnumElementType getType()
public void setType(de.samply.common.mdrclient.domain.EnumElementType type)
type - the type to setpublic String getId()
public void setId(String id)
id - the id to setpublic String getVersion()
public void setVersion(String version)
version - the version to setpublic boolean isGroup()
public int compareTo(MdrKey o)
compareTo in interface Comparable<MdrKey>public String getKeyWithoutVersion()
Copyright © 2020 Samply Community. All rights reserved.