Modifier and Type | Method and Description |
---|---|
VCardVersion |
VCard.getVersion()
Gets the version attached to this vCard.
|
static VCardVersion |
VCardVersion.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VCardVersion |
VCardVersion.valueOfByStr(String value)
Gets a
VCardVersion instance based on the given text
representation. |
static VCardVersion |
VCardVersion.valueOfByXmlNamespace(String ns)
Gets a
VCardVersion instance based on the given XML namespace. |
static VCardVersion[] |
VCardVersion.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
VCardDataType.isSupported(VCardVersion version)
Determines if the data type is supported by the given vCard version.
|
void |
VCard.setVersion(VCardVersion version)
Sets the version of this vCard.
|
ValidationWarnings |
VCard.validate(VCardVersion version)
Checks this vCard for data consistency problems or deviations from the
spec.
|
Ezvcard.WriterChainText |
Ezvcard.WriterChainText.version(VCardVersion version)
Sets the version that all the vCards will be marshalled to.
|
Modifier and Type | Method and Description |
---|---|
protected abstract VCardVersion |
StreamWriter.getTargetVersion()
Gets the version that the next vCard will be written as.
|
Modifier and Type | Method and Description |
---|---|
protected VCardDataType |
AgentScribe._dataType(Agent property,
VCardVersion version) |
protected VCardDataType |
RawPropertyScribe._dataType(RawProperty property,
VCardVersion version) |
protected VCardDataType |
RelatedScribe._dataType(Related property,
VCardVersion version) |
protected VCardDataType |
TelephoneScribe._dataType(Telephone property,
VCardVersion version) |
protected VCardDataType |
TimezoneScribe._dataType(Timezone property,
VCardVersion version) |
protected VCardDataType |
VCardPropertyScribe._dataType(T property,
VCardVersion version)
Determines the data type of a property instance.
|
protected VCardDataType |
PlacePropertyScribe._dataType(T property,
VCardVersion version) |
protected VCardDataType |
DateOrTimePropertyScribe._dataType(T property,
VCardVersion version) |
protected VCardDataType |
BinaryPropertyScribe._dataType(T property,
VCardVersion version) |
protected abstract VCardDataType |
VCardPropertyScribe._defaultDataType(VCardVersion version)
Determines the property's default data type.
|
protected VCardDataType |
GenderScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
RevisionScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
OrganizationScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
SimplePropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
RelatedScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
RawPropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
PlacePropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
TimezoneScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
TelephoneScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
AddressScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
ListPropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
AgentScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
ClientPidMapScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
StructuredNameScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
ImppScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
GeoScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
XmlScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
DateOrTimePropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
BinaryPropertyScribe._defaultDataType(VCardVersion version) |
protected abstract T |
VCardPropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings)
Unmarshals a property from a plain-text vCard.
|
protected Gender |
GenderScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Revision |
RevisionScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Organization |
OrganizationScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected T |
SimplePropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Related |
RelatedScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected RawProperty |
RawPropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected T |
PlacePropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Timezone |
TimezoneScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Telephone |
TelephoneScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Address |
AddressScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected T |
ListPropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Agent |
AgentScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected ClientPidMap |
ClientPidMapScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected StructuredName |
StructuredNameScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Impp |
ImppScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Geo |
GeoScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected Xml |
XmlScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected T |
DateOrTimePropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected T |
BinaryPropertyScribe._parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
List<String> warnings) |
protected void |
AddressScribe._prepareParameters(Address property,
VCardParameters copy,
VCardVersion version,
VCard vcard) |
protected void |
EmailScribe._prepareParameters(Email property,
VCardParameters copy,
VCardVersion version,
VCard vcard) |
protected void |
TelephoneScribe._prepareParameters(Telephone property,
VCardParameters copy,
VCardVersion version,
VCard vcard) |
protected void |
VCardPropertyScribe._prepareParameters(T property,
VCardParameters copy,
VCardVersion version,
VCard vcard)
Sanitizes a property's parameters before the property is written.
|
protected void |
BinaryPropertyScribe._prepareParameters(T property,
VCardParameters copy,
VCardVersion version,
VCard vcard) |
protected String |
AddressScribe._writeText(Address property,
VCardVersion version) |
protected String |
AgentScribe._writeText(Agent property,
VCardVersion version) |
protected String |
ClientPidMapScribe._writeText(ClientPidMap property,
VCardVersion version) |
protected String |
GenderScribe._writeText(Gender property,
VCardVersion version) |
protected String |
GeoScribe._writeText(Geo property,
VCardVersion version) |
protected String |
ImppScribe._writeText(Impp property,
VCardVersion version) |
protected String |
OrganizationScribe._writeText(Organization property,
VCardVersion version) |
protected String |
RawPropertyScribe._writeText(RawProperty property,
VCardVersion version) |
protected String |
RelatedScribe._writeText(Related property,
VCardVersion version) |
protected String |
RevisionScribe._writeText(Revision property,
VCardVersion version) |
protected String |
StructuredNameScribe._writeText(StructuredName property,
VCardVersion version) |
protected String |
TelephoneScribe._writeText(Telephone property,
VCardVersion version) |
protected String |
TimezoneScribe._writeText(Timezone property,
VCardVersion version) |
protected abstract String |
VCardPropertyScribe._writeText(T property,
VCardVersion version)
Marshals a property's value to a string.
|
protected String |
SimplePropertyScribe._writeText(T property,
VCardVersion version) |
protected String |
PlacePropertyScribe._writeText(T property,
VCardVersion version) |
protected String |
ListPropertyScribe._writeText(T property,
VCardVersion version) |
protected String |
DateOrTimePropertyScribe._writeText(T property,
VCardVersion version) |
protected String |
BinaryPropertyScribe._writeText(T property,
VCardVersion version) |
protected String |
XmlScribe._writeText(Xml property,
VCardVersion version) |
protected T |
BinaryPropertyScribe.cannotUnmarshalValue(String value,
VCardVersion version,
List<String> warnings,
U contentType)
Called if the unmarshalling code cannot determine how to unmarshal the
value.
|
VCardDataType |
VCardPropertyScribe.dataType(T property,
VCardVersion version)
Determines the data type of a property instance.
|
VCardDataType |
VCardPropertyScribe.defaultDataType(VCardVersion version)
Determines the property's default data type.
|
protected static void |
VCardPropertyScribe.handlePrefParam(VCardProperty property,
VCardParameters copy,
VCardVersion version,
VCard vcard)
A utility method for switching between the "PREF" and "TYPE=PREF"
parameters when marshalling a property (version 4.0 vCards use "PREF=1",
while version 3.0 vCards use "TYPE=PREF").
|
protected U |
BinaryPropertyScribe.parseContentType(VCardParameters parameters,
VCardVersion version) |
VCardPropertyScribe.Result<T> |
VCardPropertyScribe.parseText(String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters)
Unmarshals a property from a plain-text vCard.
|
VCardParameters |
VCardPropertyScribe.prepareParameters(T property,
VCardVersion version,
VCard vcard)
Sanitizes a property's parameters (called before the property is
written).
|
String |
VCardPropertyScribe.writeText(T property,
VCardVersion version)
Marshals a property's value to a string.
|
Modifier and Type | Method and Description |
---|---|
VCardVersion |
VCardWriter.getTargetVersion()
Gets the version that the vCards should adhere to.
|
VCardVersion |
VCardRawWriter.getVersion()
Gets the vCard version that the writer is adhering to.
|
VCardVersion |
VCardRawReader.getVersion()
Gets the vCard version that the reader is currently parsing with.
|
Modifier and Type | Method and Description |
---|---|
void |
VCardWriter.setTargetVersion(VCardVersion targetVersion)
Sets the version that the vCards should adhere to.
|
void |
VCardRawWriter.setVersion(VCardVersion version)
Sets the vCard version that the writer should adhere to.
|
Constructor and Description |
---|
VCardRawWriter(Writer writer,
VCardVersion version)
Creates a vCard raw writer.
|
VCardWriter(File file,
boolean append,
VCardVersion targetVersion)
Creates a vCard writer.
|
VCardWriter(File file,
VCardVersion targetVersion)
Creates a vCard writer.
|
VCardWriter(OutputStream out,
VCardVersion targetVersion)
Creates a vCard writer.
|
VCardWriter(Writer writer,
VCardVersion targetVersion)
Creates a vCard writer.
|
Modifier and Type | Method and Description |
---|---|
protected VCardVersion |
XCardWriter.getTargetVersion() |
protected VCardVersion |
XCardDocument.XCardDocumentStreamWriter.getTargetVersion() |
VCardVersion |
XCardElement.version()
Gets the vCard version.
|
Constructor and Description |
---|
XCardElement(Element element,
VCardVersion version)
Wraps an existing XML element.
|
XCardNamespaceContext(VCardVersion version,
String prefix) |
Modifier and Type | Field and Description |
---|---|
protected Set<VCardVersion> |
VersionedVCardParameter.supportedVersions |
Modifier and Type | Method and Description |
---|---|
boolean |
VersionedVCardParameter.isSupported(VCardVersion version)
Determines if the parameter value is supported by the given vCard
version.
|
List<Warning> |
VCardParameters.validate(VCardVersion version)
Checks this parameters list for data consistency problems or deviations
from the spec.
|
Constructor and Description |
---|
VersionedVCardParameter(String value,
VCardVersion... supportedVersions) |
Modifier and Type | Method and Description |
---|---|
protected void |
SimpleProperty._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Related._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
DateOrTimeProperty._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Email._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
BinaryProperty._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Member._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
ListProperty._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Telephone._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Impp._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Profile._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
VCardProperty._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard)
Checks the property for data consistency problems or deviations from the
spec.
|
protected void |
Address._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Key._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Agent._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Gender._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Timezone._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Geo._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
ClientPidMap._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
PlaceProperty._validate(List<Warning> warnings,
VCardVersion version,
VCard vcard) |
List<Warning> |
VCardProperty.validate(VCardVersion version,
VCard vcard)
Checks the property for data consistency problems or deviations from the
spec.
|
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.