HiRISE

HiRISE.HiVali
Class Tagsonomy

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,List<String>>
          extended by HiRISE.HiVali.Tagsonomy
All Implemented Interfaces:
Serializable, Cloneable, Map<String,List<String>>

public class Tagsonomy
extends HashMap<String,List<String>>

Represents the tag-tree structure, includes methods for verifying that a tag string matches a tag name or tag path.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Tagsonomy()
           
 
Method Summary
 Tag find(String path)
          Locate a tag in the tree.
static Tag find(Tagsonomy tags, String path)
          Locate a tag in a tag tree.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Tagsonomy

public Tagsonomy()
Method Detail

find

public Tag find(String path)
         throws IllegalArgumentException
Locate a tag in the tree. The tag can be input as "/leaf/node" or "leaf/node" or "node"

Parameters:
path -
Returns:
Tag instance
Throws:
IllegalArgumentException - The tag could not be found

find

public static Tag find(Tagsonomy tags,
                       String path)
Locate a tag in a tag tree. The tag can be input as "/leaf/node" or "leaf/node" or "node"

Parameters:
path -
Returns:
Tag instance or null if the tag could not be found

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona