|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.types.VCardType
ezvcard.types.TextType
ezvcard.types.XmlType
public class XmlType
Any XML data attached to the vCard. This is used if the vCard was encoded in XML (xCard standard) and it contained some non-standard elements.
VCard vcard = new VCard();
XmlType xml = new XmlType("<b>Some xml</b>");
vcard.addXml(xml);
vCard property name: XML
vCard versions: 4.0
| Field Summary | |
|---|---|
static String |
NAME
|
| Fields inherited from class ezvcard.types.TextType |
|---|
value |
| Fields inherited from class ezvcard.types.VCardType |
|---|
group, subTypes, typeName |
| Constructor Summary | |
|---|---|
XmlType()
|
|
XmlType(String xml)
|
|
| Method Summary | |
|---|---|
Element |
asElement()
Converts the text value of this property to an XML Element
object. |
protected void |
doMarshalXml(XCardElement parent,
List<String> warnings,
CompatibilityMode compatibilityMode)
Marshals this type for inclusion in an xCard (XML document). |
protected void |
doUnmarshalXml(XCardElement element,
List<String> warnings,
CompatibilityMode compatibilityMode)
Unmarshals the type from an xCard (XML document). |
String |
getAltId()
Gets the ALTID. |
VCardVersion[] |
getSupportedVersions()
Gets the vCard versions that support this type. |
void |
setAltId(String altId)
Sets the ALTID. |
| Methods inherited from class ezvcard.types.TextType |
|---|
doMarshalText, doUnmarshalHtml, doUnmarshalText, getValue, setValue |
| Methods inherited from class ezvcard.types.VCardType |
|---|
compareTo, doMarshalSubTypes, getGroup, getQName, getSubTypes, 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 |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public XmlType()
public XmlType(String xml)
xml - the XML element| Method Detail |
|---|
public String getAltId()
vCard versions: 4.0
VCardSubTypes.getAltId()public void setAltId(String altId)
vCard versions: 4.0
altId - the ALTID or null to removeVCardSubTypes.setAltId(java.lang.String)public VCardVersion[] getSupportedVersions()
VCardType
getSupportedVersions in class VCardType
public Element asElement()
throws SAXException
Element
object.
SAXException - if there's a problem parsing the XML
protected void doMarshalXml(XCardElement parent,
List<String> warnings,
CompatibilityMode compatibilityMode)
VCardType
doMarshalXml in class TextTypeparent - the XML element that the type's value will be inserted
into. For example, this would be the "<fn>" element for the "FN"
type.warnings - allows the programmer to alert the user to any
note-worthy (but non-critical) issues that occurred during the
marshalling processcompatibilityMode - allows the programmer to customize the
marshalling process depending on the expected consumer of the vCard
protected void doUnmarshalXml(XCardElement element,
List<String> warnings,
CompatibilityMode compatibilityMode)
VCardType
doUnmarshalXml in class TextTypeelement - the XML element that contains the type data. For example,
this would be the "<fn>" element for the "FN" type. This object
will NOT include the "<parameters>" child element (it is removed
after being unmarshalled into a VCardSubTypes object).warnings - allows the programmer to alert the user to any
note-worthy (but non-critical) issues that occurred during the
unmarshalling processcompatibilityMode - allows the programmer to customize the
unmarshalling process depending on where the vCard came from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||