Package net.handle.hdllib
Class NamespaceInfo
- java.lang.Object
-
- net.handle.hdllib.NamespaceInfo
-
public class NamespaceInfo extends java.lang.ObjectObject containing information about the set of handles beginning with a prefix.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTACT_TAGstatic java.lang.StringLOCATIONS_TAGstatic java.lang.StringSTATUS_ACTIVEstatic java.lang.StringSTATUS_INACTIVEstatic java.lang.StringSTATUS_MSG_TAGstatic java.lang.StringSTATUS_TAGstatic java.lang.StringTEMPLATE_DELIMITER_ATTstatic java.lang.StringTEMPLATE_TAG
-
Constructor Summary
Constructors Constructor Description NamespaceInfo()Construct a new namespace information record, with the default settingsNamespaceInfo(byte[] rawInfo)NamespaceInfo(HandleValue namespaceValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.cnri.simplexml.XTaggetInheritedTag(java.lang.String name)java.util.List<java.lang.String>getLocationTemplateHandles()Return the handle containing the 10320/loc values that provide a set of locations for all handles under this prefix.java.lang.StringgetNamespaceStatus()Return the status of this namespace as a String.NamespaceInfogetParentNamespace()Get the parent for this namespace.java.lang.StringgetResponsiblePartyContactAddress()Return an email address for the person or company that is responsible for this namespace.java.lang.StringgetStatusMessage()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.voidsetParentNamespace(NamespaceInfo parent)Set the parent for this namespace.HandleValue[]templateConstruct(HandleValue[] origvals, java.lang.String handle, java.lang.String base, java.lang.String extension, boolean caseSensitive, HandleResolver resolver, short recursionCount)java.lang.StringtemplateDelimiter()Return whether or not handles under this prefix can be templatedjava.lang.StringtoString()
-
-
-
Field Detail
-
STATUS_ACTIVE
public static final java.lang.String STATUS_ACTIVE
- See Also:
- Constant Field Values
-
STATUS_INACTIVE
public static final java.lang.String STATUS_INACTIVE
- See Also:
- Constant Field Values
-
CONTACT_TAG
public static final java.lang.String CONTACT_TAG
- See Also:
- Constant Field Values
-
STATUS_MSG_TAG
public static final java.lang.String STATUS_MSG_TAG
- See Also:
- Constant Field Values
-
STATUS_TAG
public static final java.lang.String STATUS_TAG
- See Also:
- Constant Field Values
-
TEMPLATE_TAG
public static final java.lang.String TEMPLATE_TAG
- See Also:
- Constant Field Values
-
LOCATIONS_TAG
public static final java.lang.String LOCATIONS_TAG
- See Also:
- Constant Field Values
-
TEMPLATE_DELIMITER_ATT
public static final java.lang.String TEMPLATE_DELIMITER_ATT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NamespaceInfo
public NamespaceInfo(HandleValue namespaceValue) throws HandleException
- Throws:
HandleException
-
NamespaceInfo
public NamespaceInfo(byte[] rawInfo) throws HandleException- Throws:
HandleException
-
NamespaceInfo
public NamespaceInfo()
Construct a new namespace information record, with the default settings
-
-
Method Detail
-
setParentNamespace
public void setParentNamespace(NamespaceInfo parent)
Set the parent for this namespace. This should be called when resolving an identifier that is contained within multiple nested namespaces.
-
getParentNamespace
public NamespaceInfo getParentNamespace()
Get the parent for this namespace. If there is no higher level namespace, then this will return null.
-
getResponsiblePartyContactAddress
public java.lang.String getResponsiblePartyContactAddress()
Return an email address for the person or company that is responsible for this namespace.
-
getStatusMessage
public java.lang.String 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
public java.lang.String 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
public java.util.List<java.lang.String> getLocationTemplateHandles()
Return the handle containing the 10320/loc values that provide a set of locations for all handles under this prefix.
-
templateDelimiter
public java.lang.String templateDelimiter()
Return whether or not handles under this prefix can be templated
-
templateConstruct
public HandleValue[] templateConstruct(HandleValue[] origvals, java.lang.String handle, java.lang.String base, java.lang.String extension, boolean caseSensitive, HandleResolver resolver, short recursionCount)
-
getInheritedTag
public net.cnri.simplexml.XTag getInheritedTag(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-