ezvcard.property
Class RawProperty

java.lang.Object
  extended by ezvcard.property.VCardProperty
      extended by ezvcard.property.SimpleProperty<String>
          extended by ezvcard.property.TextProperty
              extended by ezvcard.property.RawProperty
All Implemented Interfaces:
Comparable<VCardProperty>

public class RawProperty
extends TextProperty

Holds the property value as-is. No escaping or unescaping is done on the value.

Author:
Michael Angstadt

Field Summary
 
Fields inherited from class ezvcard.property.SimpleProperty
value
 
Fields inherited from class ezvcard.property.VCardProperty
group, parameters
 
Constructor Summary
RawProperty(String propertyName, String value)
          Creates a raw property.
RawProperty(String propertyName, String value, VCardDataType dataType)
          Creates a raw property.
 
Method Summary
 VCardDataType getDataType()
          Gets the data type of the property's value.
 String getPropertyName()
          Gets the name of the property.
 void setDataType(VCardDataType dataType)
          Sets the data type of the property's value.
 void setPropertyName(String propertyName)
          Sets the name of the property.
 
Methods inherited from class ezvcard.property.SimpleProperty
_validate, getValue, setValue
 
Methods inherited from class ezvcard.property.VCardProperty
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawProperty

public RawProperty(String propertyName,
                   String value)
Creates a raw property.

Parameters:
propertyName - the property name (e.g. "X-GENDER")
value - the property value

RawProperty

public RawProperty(String propertyName,
                   String value,
                   VCardDataType dataType)
Creates a raw property.

Parameters:
propertyName - the property name (e.g. "X-GENDER")
value - the property value
dataType - the value's data type
Method Detail

getPropertyName

public String getPropertyName()
Gets the name of the property.

Returns:
the property name

setPropertyName

public void setPropertyName(String propertyName)
Sets the name of the property.

Parameters:
propertyName - the property name

getDataType

public VCardDataType getDataType()
Gets the data type of the property's value.

Returns:
the data type or null if unknown

setDataType

public void setDataType(VCardDataType dataType)
Sets the data type of the property's value.

Parameters:
dataType - the data type or null if unknown


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.