|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.parameters.VCardParameter
public class VCardParameter
Represents a vCard parameter (aka "sub type") whose values are pre-defined.
| Field Summary | |
|---|---|
protected String |
name
The name (e.g. |
protected String |
value
The value (e.g. |
| Constructor Summary | |
|---|---|
VCardParameter(String name,
String value)
|
|
| Method Summary | ||
|---|---|---|
protected static
|
all(Class<T> clazz)
Gets all values that belong to a parameter class |
|
boolean |
equals(Object obj)
|
|
protected static
|
findByValue(String typeValue,
Class<T> clazz)
Searches the static objects of a child class for one that has a certain value. |
|
String |
getName()
Gets the parameter name. |
|
String |
getValue()
Gets the value of the parameter. |
|
int |
hashCode()
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String name
protected final String value
| Constructor Detail |
|---|
public VCardParameter(String name,
String value)
name - the name (e.g. "TYPE")value - the value (e.g. "home")| Method Detail |
|---|
public String getName()
public String getValue()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
protected static <T extends VCardParameter> T findByValue(String typeValue,
Class<T> clazz)
typeValue - the type value to look forclazz - the child class
protected static <T extends VCardParameter> Set<T> all(Class<T> clazz)
T - clazz - the parameter class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||