ezvcard.types
Class MultiValuedTypeParameterType<T extends TypeParameter>
java.lang.Object
ezvcard.types.VCardType
ezvcard.types.TypeParameterType<T>
ezvcard.types.MultiValuedTypeParameterType<T>
- All Implemented Interfaces:
- Comparable<VCardType>
- Direct Known Subclasses:
- AddressType, EmailType, ImppType, LabelType, RelatedType, TelephoneType
public abstract class MultiValuedTypeParameterType<T extends TypeParameter>
- extends TypeParameterType<T>
Represents a vCard Type that has a TYPE parameter that can have multiple
values. For example, the ADR type. This class contrasts with the
SingleValuedTypeParameterType class.
- Author:
- Michael Angstadt
|
Method Summary |
void |
addType(T type)
Adds a TYPE parameter. |
Set<T> |
getTypes()
Gets all the TYPE parameters. |
void |
removeType(T type)
Removes a TYPE parameter. |
| Methods inherited from class ezvcard.types.VCardType |
compareTo, doMarshalSubTypes, doMarshalText, doMarshalXml, doUnmarshalHtml, doUnmarshalText, doUnmarshalXml, getGroup, getQName, getSubTypes, getSupportedVersions, getTypeName, marshalSubTypes, marshalText, marshalXml, setGroup, unmarshalHtml, unmarshalText, unmarshalXml |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiValuedTypeParameterType
public MultiValuedTypeParameterType(String typeName)
- Parameters:
typeName - the type name (e.g. "ADR")
getTypes
public Set<T> getTypes()
- Gets all the TYPE parameters.
- Returns:
- all the TYPE parameters or empty set if there are none
addType
public void addType(T type)
- Adds a TYPE parameter.
- Parameters:
type - the TYPE parameter to add
removeType
public void removeType(T type)
- Removes a TYPE parameter.
- Parameters:
type - the TYPE parameter to remove
Copyright © 2012-2013. All Rights Reserved.