Class RegistryKey

  • All Implemented Interfaces:
    java.io.Serializable

    public class RegistryKey
    extends java.lang.Object
    implements java.io.Serializable
    Key for looking up registry metadata.
    Author:
    Derek Hulley
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RegistryKey​(java.lang.String namespaceUri, java.lang.String... key)
      For path /a/b/c and property 'x', put in
      RegistryKey​(java.lang.String namespaceUri, java.lang.String[] path, java.lang.String property)
      A constructor to specifically declare the path and property portions of the key.
    • Constructor Detail

      • RegistryKey

        public RegistryKey​(java.lang.String namespaceUri,
                           java.lang.String... key)
        For path /a/b/c and property 'x', put in
        "a", "b", "c", "x"
        The property can also be null as in
        "a", "b", "c", null
        Parameters:
        namespaceUri - the key namespace to use. If left null then the default will be used.
        key - the path elements followed by the property name.
      • RegistryKey

        public RegistryKey​(java.lang.String namespaceUri,
                           java.lang.String[] path,
                           java.lang.String property)
        A constructor to specifically declare the path and property portions of the key.
        Parameters:
        namespaceUri - the key namespace to use. If left null then the default will be used.
        path - the path part of the key
        property - the property name for the key. This may be null.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getNamespaceUri

        public java.lang.String getNamespaceUri()
      • getPath

        public java.lang.String[] getPath()
      • getProperty

        public java.lang.String getProperty()