Package net.handle.hdllib
Class NamespaceInfo
java.lang.Object
net.handle.hdllib.NamespaceInfo
Object containing information about the set of handles
beginning with a prefix.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new namespace information record, with the default settingsNamespaceInfo
(byte[] rawInfo) NamespaceInfo
(HandleValue namespaceValue) -
Method Summary
Modifier and TypeMethodDescriptiongetInheritedTag
(String name) Return the handle containing the 10320/loc values that provide a set of locations for all handles under this prefix.Return the status of this namespace as a String.Get the parent for this namespace.Return an email address for the person or company that is responsible for this namespace.Return a message that can be presented to a user who tries to resolve an identifier under this namespace if the namespace status is not active.void
setParentNamespace
(NamespaceInfo parent) Set the parent for this namespace.templateConstruct
(HandleValue[] origvals, String handle, String base, String extension, boolean caseSensitive, HandleResolver resolver, short recursionCount) Return whether or not handles under this prefix can be templatedtoString()
-
Field Details
-
STATUS_ACTIVE
- See Also:
-
STATUS_INACTIVE
- See Also:
-
CONTACT_TAG
- See Also:
-
STATUS_MSG_TAG
- See Also:
-
STATUS_TAG
- See Also:
-
TEMPLATE_TAG
- See Also:
-
LOCATIONS_TAG
- See Also:
-
TEMPLATE_DELIMITER_ATT
- See Also:
-
-
Constructor Details
-
NamespaceInfo
- Throws:
HandleException
-
NamespaceInfo
- Throws:
HandleException
-
NamespaceInfo
public NamespaceInfo()Construct a new namespace information record, with the default settings
-
-
Method Details
-
setParentNamespace
Set the parent for this namespace. This should be called when resolving an identifier that is contained within multiple nested namespaces. -
getParentNamespace
Get the parent for this namespace. If there is no higher level namespace, then this will return null. -
getResponsiblePartyContactAddress
Return an email address for the person or company that is responsible for this namespace. -
getStatusMessage
Return a message that can be presented to a user who tries to resolve an identifier under this namespace if the namespace status is not active. -
getNamespaceStatus
Return the status of this namespace as a String. Currently known values are "active" and "inactive" although it is possible that other values will be used in the future. -
getLocationTemplateHandles
Return the handle containing the 10320/loc values that provide a set of locations for all handles under this prefix. -
templateDelimiter
Return whether or not handles under this prefix can be templated -
templateConstruct
public HandleValue[] templateConstruct(HandleValue[] origvals, String handle, String base, String extension, boolean caseSensitive, HandleResolver resolver, short recursionCount) -
getInheritedTag
-
toString
-