intarsys runtime library

de.intarsys.tools.tag
Class TypedTag

java.lang.Object
  extended by de.intarsys.tools.tag.Tag
      extended by de.intarsys.tools.tag.TypedTag

public class TypedTag
extends Tag

A simple type/key/value pair that can be attached to POJO's.

Tags can be created using strings of the format
[type#]key[=value]?[;[type#]key[=value]?]* or [type#]key[:value]?[;[type#]key[:value]?]*


Constructor Summary
TypedTag(String key)
           
TypedTag(String key, String value)
           
TypedTag(String type, String key, String value)
           
 
Method Summary
static TypedTag[] create(String tagString)
           
 boolean equals(Object obj)
           
 String getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class de.intarsys.tools.tag.Tag
getKey, getValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedTag

public TypedTag(String key)

TypedTag

public TypedTag(String key,
                String value)

TypedTag

public TypedTag(String type,
                String key,
                String value)
Method Detail

create

public static TypedTag[] create(String tagString)

equals

public boolean equals(Object obj)
Overrides:
equals in class Tag

getType

public String getType()

hashCode

public int hashCode()
Overrides:
hashCode in class Tag

toString

public String toString()
Overrides:
toString in class Tag

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.