ezvcard.io
Class VCardLine

java.lang.Object
  extended by ezvcard.io.VCardLine

public class VCardLine
extends Object

Represents the components that make up an unfolded vCard line, such as type name and value.

Author:
Michael Angstadt

Method Summary
 String getGroup()
          Gets the group.
 List<List<String>> getSubTypes()
          Gets the sub types.
 String getTypeName()
          Gets the type name.
 String getValue()
          Gets the value.
static VCardLine parse(String line, VCardVersion version, boolean caretDecodingEnabled)
          Parses an unfolded vCard line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static VCardLine parse(String line,
                              VCardVersion version,
                              boolean caretDecodingEnabled)
Parses an unfolded vCard line. It just parses the components out, it doesn't modify the components in any way.

Parameters:
line - the unfolded line to parse
version - the version of the vCard that's being parsed
caretDecodingEnabled - true to enable circumflex accent decoding in 3.0 and 4.0 parameter values, false not to
Returns:
the parsed components or null if the line is not a valid vCard line

getGroup

public String getGroup()
Gets the group.

Returns:
the group or null if the type doesn't below to a group

getTypeName

public String getTypeName()
Gets the type name.

Returns:
the type name

getSubTypes

public List<List<String>> getSubTypes()
Gets the sub types.

Returns:
the sub types. Index 0 of each list is the sub type name. The rest of the list contains the sub type values (there will always be at least one value and there may be more if the sub type is multi-valued). If the sub type is nameless, then index 0 will be null (sub types can be nameless in v2.1, e.g. "ADR;WORK;DOM:")

getValue

public String getValue()
Gets the value.

Returns:
the value


Copyright © 2012-2013. All Rights Reserved.