Modifier and Type | Method and Description |
---|---|
VCardVersion |
VCard.getVersion()
Gets the version attached to this vCard.
|
static VCardVersion |
VCardVersion.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VCardVersion |
VCardVersion.valueOfByStr(java.lang.String value)
Gets a
VCardVersion instance based on the given text
representation. |
static VCardVersion |
VCardVersion.valueOfByXmlNamespace(java.lang.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 |
PlacePropertyScribe._dataType(T property,
VCardVersion version) |
protected VCardDataType |
VCardPropertyScribe._dataType(T property,
VCardVersion version)
Determines the data type of a property instance.
|
protected VCardDataType |
DateOrTimePropertyScribe._dataType(T property,
VCardVersion version) |
protected VCardDataType |
BinaryPropertyScribe._dataType(T property,
VCardVersion version) |
protected VCardDataType |
RevisionScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
PlacePropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
SimplePropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
AddressScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
GeoScribe._defaultDataType(VCardVersion version) |
protected abstract VCardDataType |
VCardPropertyScribe._defaultDataType(VCardVersion version)
Determines the property's default data type.
|
protected VCardDataType |
AgentScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
RelatedScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
TelephoneScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
ClientPidMapScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
ListPropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
TimezoneScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
GenderScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
DateOrTimePropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
StructuredNameScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
RawPropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
BinaryPropertyScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
XmlScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
ImppScribe._defaultDataType(VCardVersion version) |
protected VCardDataType |
OrganizationScribe._defaultDataType(VCardVersion version) |
protected Revision |
RevisionScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected T |
PlacePropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected T |
SimplePropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Address |
AddressScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Geo |
GeoScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected abstract T |
VCardPropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings)
Unmarshals a property from a plain-text vCard.
|
protected Agent |
AgentScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Related |
RelatedScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Telephone |
TelephoneScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected ClientPidMap |
ClientPidMapScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected T |
ListPropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Timezone |
TimezoneScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Gender |
GenderScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected T |
DateOrTimePropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected StructuredName |
StructuredNameScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected RawProperty |
RawPropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected T |
BinaryPropertyScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Xml |
XmlScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Impp |
ImppScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.String> warnings) |
protected Organization |
OrganizationScribe._parseText(java.lang.String value,
VCardDataType dataType,
VCardVersion version,
VCardParameters parameters,
java.util.List<java.lang.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 java.lang.String |
AddressScribe._writeText(Address property,
VCardVersion version) |
protected java.lang.String |
AgentScribe._writeText(Agent property,
VCardVersion version) |
protected java.lang.String |
ClientPidMapScribe._writeText(ClientPidMap property,
VCardVersion version) |
protected java.lang.String |
GenderScribe._writeText(Gender property,
VCardVersion version) |
protected java.lang.String |
GeoScribe._writeText(Geo property,
VCardVersion version) |
protected java.lang.String |
ImppScribe._writeText(Impp property,
VCardVersion version) |
protected java.lang.String |
OrganizationScribe._writeText(Organization property,
VCardVersion version) |
protected java.lang.String |
RawPropertyScribe._writeText(RawProperty property,
VCardVersion version) |
protected java.lang.String |
RelatedScribe._writeText(Related property,
VCardVersion version) |
protected java.lang.String |
RevisionScribe._writeText(Revision property,
VCardVersion version) |
protected java.lang.String |
StructuredNameScribe._writeText(StructuredName property,
VCardVersion version) |
protected java.lang.String |
TelephoneScribe._writeText(Telephone property,
VCardVersion version) |
protected java.lang.String |
TimezoneScribe._writeText(Timezone property,
VCardVersion version) |
protected java.lang.String |
PlacePropertyScribe._writeText(T property,
VCardVersion version) |
protected java.lang.String |
SimplePropertyScribe._writeText(T property,
VCardVersion version) |
protected abstract java.lang.String |
VCardPropertyScribe._writeText(T property,
VCardVersion version)
Marshals a property's value to a string.
|
protected java.lang.String |
ListPropertyScribe._writeText(T property,
VCardVersion version) |
protected java.lang.String |
DateOrTimePropertyScribe._writeText(T property,
VCardVersion version) |
protected java.lang.String |
BinaryPropertyScribe._writeText(T property,
VCardVersion version) |
protected java.lang.String |
XmlScribe._writeText(Xml property,
VCardVersion version) |
protected T |
BinaryPropertyScribe.cannotUnmarshalValue(java.lang.String value,
VCardVersion version,
java.util.List<java.lang.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(java.lang.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).
|
java.lang.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 |
VCardRawReader.getVersion()
Gets the vCard version that the reader is currently parsing with.
|
VCardVersion |
VCardRawWriter.getVersion()
Gets the vCard version that the writer is adhering to.
|
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(java.io.Writer writer,
VCardVersion version)
Creates a vCard raw writer.
|
VCardWriter(java.io.File file,
boolean append,
VCardVersion targetVersion)
Creates a vCard writer.
|
VCardWriter(java.io.File file,
VCardVersion targetVersion)
Creates a vCard writer.
|
VCardWriter(java.io.OutputStream out,
VCardVersion targetVersion)
Creates a vCard writer.
|
VCardWriter(java.io.Writer writer,
VCardVersion targetVersion)
Creates a vCard writer.
|
Modifier and Type | Method and Description |
---|---|
protected VCardVersion |
XCardDocument.XCardDocumentStreamWriter.getTargetVersion() |
protected VCardVersion |
XCardWriter.getTargetVersion() |
VCardVersion |
XCardElement.version()
Gets the vCard version.
|
Constructor and Description |
---|
XCardElement(org.w3c.dom.Element element,
VCardVersion version)
Wraps an existing XML element.
|
XCardNamespaceContext(VCardVersion version,
java.lang.String prefix) |
Modifier and Type | Field and Description |
---|---|
protected java.util.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.
|
java.util.List<Warning> |
VCardParameters.validate(VCardVersion version)
Checks this parameters list for data consistency problems or deviations
from the spec.
|
Constructor and Description |
---|
VersionedVCardParameter(java.lang.String value,
VCardVersion... supportedVersions) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<VCardVersion> |
Expertise._supportedVersions() |
java.util.Set<VCardVersion> |
CalendarRequestUri._supportedVersions() |
java.util.Set<VCardVersion> |
Gender._supportedVersions() |
java.util.Set<VCardVersion> |
PlaceProperty._supportedVersions() |
java.util.Set<VCardVersion> |
Deathdate._supportedVersions() |
java.util.Set<VCardVersion> |
Interest._supportedVersions() |
java.util.Set<VCardVersion> |
OrgDirectory._supportedVersions() |
java.util.Set<VCardVersion> |
Nickname._supportedVersions() |
java.util.Set<VCardVersion> |
ProductId._supportedVersions() |
java.util.Set<VCardVersion> |
Mailer._supportedVersions() |
java.util.Set<VCardVersion> |
Anniversary._supportedVersions() |
java.util.Set<VCardVersion> |
Agent._supportedVersions() |
java.util.Set<VCardVersion> |
Member._supportedVersions() |
java.util.Set<VCardVersion> |
ClientPidMap._supportedVersions() |
java.util.Set<VCardVersion> |
Xml._supportedVersions() |
protected java.util.Set<VCardVersion> |
VCardProperty._supportedVersions()
Gets the vCard versions that support this property.
|
java.util.Set<VCardVersion> |
CalendarUri._supportedVersions() |
java.util.Set<VCardVersion> |
Categories._supportedVersions() |
java.util.Set<VCardVersion> |
Profile._supportedVersions() |
java.util.Set<VCardVersion> |
Classification._supportedVersions() |
java.util.Set<VCardVersion> |
Kind._supportedVersions() |
java.util.Set<VCardVersion> |
FreeBusyUrl._supportedVersions() |
java.util.Set<VCardVersion> |
Impp._supportedVersions() |
java.util.Set<VCardVersion> |
SortString._supportedVersions() |
java.util.Set<VCardVersion> |
Related._supportedVersions() |
java.util.Set<VCardVersion> |
SourceDisplayText._supportedVersions() |
java.util.Set<VCardVersion> |
Label._supportedVersions() |
java.util.Set<VCardVersion> |
Hobby._supportedVersions() |
java.util.Set<VCardVersion> |
Language._supportedVersions() |
java.util.Set<VCardVersion> |
VCardProperty.getSupportedVersions()
Gets the vCard versions that support this property.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Gender._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
PlaceProperty._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Agent._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Member._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
ListProperty._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
ClientPidMap._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
VCardProperty._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard)
Checks the property for data consistency problems or deviations from the
spec.
|
protected void |
Email._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
SimpleProperty._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Profile._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Timezone._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Key._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
DateOrTimeProperty._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
BinaryProperty._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Geo._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Impp._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Telephone._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Related._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
protected void |
Address._validate(java.util.List<Warning> warnings,
VCardVersion version,
VCard vcard) |
java.util.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.