|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.property.VCardProperty
ezvcard.property.SimpleProperty<Document>
ezvcard.property.Xml
public class Xml
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.
Code sample
VCard vcard = new VCard(); Xml xml = new Xml("<b>Some xml</b>"); vcard.addXml(xml);
Property name: XML
Supported versions: 4.0
Field Summary |
---|
Fields inherited from class ezvcard.property.SimpleProperty |
---|
value |
Fields inherited from class ezvcard.property.VCardProperty |
---|
group, parameters |
Constructor Summary | |
---|---|
Xml(Document document)
Creates an XML property. |
|
Xml(Element element)
Creates an XML property. |
|
Xml(String xml)
Creates an XML property. |
Method Summary | |
---|---|
Set<VCardVersion> |
_supportedVersions()
Gets the vCard versions that support this property. |
String |
getAltId()
Gets the property's ALTID parameter. |
void |
setAltId(String altId)
Sets the property's ALTID parameter. |
Methods inherited from class ezvcard.property.SimpleProperty |
---|
_validate, getValue, setValue |
Methods inherited from class ezvcard.property.VCardProperty |
---|
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 |
---|
public Xml(String xml) throws SAXException
xml
- the XML to use as the property's value
SAXException
- if the XML cannot be parsedpublic Xml(Element element)
element
- the XML element to use as the property's value (the
element is imported into an empty Document
object)public Xml(Document document)
document
- the XML document to use as the property's valueMethod Detail |
---|
public Set<VCardVersion> _supportedVersions()
VCardProperty
Gets the vCard versions that support this property.
This method should be overridden by child classes if the property does not support all vCard versions. The default implementation of this method returns all vCard versions.
_supportedVersions
in class VCardProperty
public String getAltId()
HasAltId
Supported versions: 4.0
getAltId
in interface HasAltId
VCardParameters.getAltId()
public void setAltId(String altId)
HasAltId
Supported versions: 4.0
setAltId
in interface HasAltId
altId
- the ALTID or null to removeVCardParameters.setAltId(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |