ezvcard.types
Class SingleValuedTypeParameterType<T extends TypeParameter>

java.lang.Object
  extended by ezvcard.types.VCardType
      extended by ezvcard.types.TypeParameterType<T>
          extended by ezvcard.types.SingleValuedTypeParameterType<T>
All Implemented Interfaces:
Comparable<VCardType>

public abstract class SingleValuedTypeParameterType<T extends TypeParameter>
extends TypeParameterType<T>

Represents a vCard Type that has a TYPE parameter that contains only one value. For example, the PHOTO type. This class contrasts with the MultiValuedTypeParameterType class.

Author:
Michael Angstadt

Field Summary
 
Fields inherited from class ezvcard.types.VCardType
group, subTypes, typeName
 
Constructor Summary
SingleValuedTypeParameterType(String name)
           
 
Method Summary
 T getType()
          Gets the value of the TYPE parameter.
 void setType(T type)
          Sets the value of the TYPE parameter.
 
Methods inherited from class ezvcard.types.TypeParameterType
buildTypeObj
 
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
 

Constructor Detail

SingleValuedTypeParameterType

public SingleValuedTypeParameterType(String name)
Method Detail

getType

public T getType()
Gets the value of the TYPE parameter.

Returns:
the TYPE value or null if it has no TYPE value

setType

public void setType(T type)
Sets the value of the TYPE parameter.

Parameters:
type - the TYPE value to set


Copyright © 2012-2013. All Rights Reserved.