Package org.mycore.mods.classification
Class MCRAccessCondition
java.lang.Object
org.mycore.mods.classification.MCRAccessCondition
Translates
<mods:accessCondition />
into mycore classifications- Author:
- Thomas Scheffler (yagee)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the category ID that is represented by this authority information.protected static String
getLabel
(MCRCategory category, String labelType, String defaultLabel) Returns the label value of the given type ("language"), or the given default if that label does not exist in the category.protected MCRCategoryID
Looks up the category ID for this authority information in the classification database.void
setInElement
(Element modsElement) Sets this authority information in the given MODS XML element by setting authority/authorityURI/valueURI attributes and/or value code as text.void
setInElement
(Element modsElement) Sets this authority information in the given MODS XML element by setting authority/authorityURI/valueURI attributes and/or value code as text.toString()
-
Field Details
-
href
-
-
Constructor Details
-
MCRAccessCondition
-
-
Method Details
-
lookupCategoryID
Looks up the category ID for this authority information in the classification database. -
setInElement
Sets this authority information in the given MODS XML element by setting authority/authorityURI/valueURI attributes and/or value code as text. -
setInElement
Sets this authority information in the given MODS XML element by setting authority/authorityURI/valueURI attributes and/or value code as text. -
toString
-
getLabel
Returns the label value of the given type ("language"), or the given default if that label does not exist in the category. -
getCategoryID
Returns the category ID that is represented by this authority information.- Returns:
- the category ID that maps this authority information, or null if no matching category exists.
-