|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.monte.media.FormatKey<T>
public class FormatKey<T>
A FormatKey provides type-safe access to an attribute of
a Format.
A format key has a name, a type and a value.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
FormatKey(java.lang.String key,
java.lang.Class<T> clazz)
Creates a new instance with the specified attribute key, type token class, default value null, and allowing null values. |
|
FormatKey(java.lang.String key,
java.lang.String name,
java.lang.Class<T> clazz)
Creates a new instance with the specified attribute key, type token class, default value null, and allowing null values. |
|
| Method Summary | |
|---|---|
int |
compareTo(FormatKey that)
|
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getKey()
Returns the key string. |
java.lang.String |
getName()
Returns the pretty name string. |
java.lang.Class |
getValueClass()
|
boolean |
isAssignable(java.lang.Object value)
Returns true if the specified value is assignable with this key. |
java.lang.String |
toString()
Returns the key string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public FormatKey(java.lang.String key,
java.lang.Class<T> clazz)
public FormatKey(java.lang.String key,
java.lang.String name,
java.lang.Class<T> clazz)
| Method Detail |
|---|
public java.lang.String getKey()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isAssignable(java.lang.Object value)
value -
public java.lang.Class getValueClass()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic int compareTo(FormatKey that)
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||