org.semanticdesktop.aperture.websites
Class Tag

java.lang.Object
  extended by java.util.AbstractMap<String,String>
      extended by org.semanticdesktop.aperture.websites.Tag
All Implemented Interfaces:
Comparable<Tag>, Map<String,String>

public class Tag
extends AbstractMap<String,String>
implements Comparable<Tag>, Map<String,String>

A Tag-Implementation

Author:
grimnes, horak, mylka

Nested Class Summary
protected static class Tag.TagEntryEntry
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static Logger log
           
 
Constructor Summary
Tag(Map<String,String> map)
           
Tag(String uri, String name, String classUri)
           
Tag(String uri, String name, String classUri, String className)
           
 
Method Summary
 int compareTo(Tag tag)
          Compares two tags lexicographicallly.
 Set<Map.Entry<String,String>> entrySet()
           
 boolean equals(Object o)
           
 String getClassName()
           
 String getClassUri()
           
 String getDescription()
           
 String getName()
           
 String getUri()
           
 int hashCode()
           
 String put(String key, String value)
           
 String toString()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, get, isEmpty, keySet, putAll, remove, size, values
 

Field Detail

log

public static final Logger log
Constructor Detail

Tag

public Tag(Map<String,String> map)

Tag

public Tag(String uri,
           String name,
           String classUri)

Tag

public Tag(String uri,
           String name,
           String classUri,
           String className)
Method Detail

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,String>
Overrides:
hashCode in class AbstractMap<String,String>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<String,String>
Overrides:
equals in class AbstractMap<String,String>

getUri

public String getUri()

getName

public String getName()

getDescription

public String getDescription()

getClassUri

public String getClassUri()

getClassName

public String getClassName()

toString

public String toString()
Overrides:
toString in class AbstractMap<String,String>

compareTo

public int compareTo(Tag tag)
Compares two tags lexicographicallly. If names are equal, URIs are compared

Specified by:
compareTo in interface Comparable<Tag>
Parameters:
tag -
Returns:
as per the general Comparable.compareTo(Object) contract
See Also:
Comparable.compareTo(Object)

entrySet

public Set<Map.Entry<String,String>> entrySet()
Specified by:
entrySet in interface Map<String,String>
Specified by:
entrySet in class AbstractMap<String,String>

put

public String put(String key,
                  String value)
Specified by:
put in interface Map<String,String>
Overrides:
put in class AbstractMap<String,String>


Copyright © 2010 Aperture Development Team. All Rights Reserved.