ezvcard.types
Class UriType
java.lang.Object
ezvcard.types.VCardType
ezvcard.types.TextType
ezvcard.types.UriType
- All Implemented Interfaces:
- Comparable<VCardType>
- Direct Known Subclasses:
- CalendarRequestUriType, CalendarUriType, FbUrlType, MemberType, OrgDirectoryType, SourceType, UidType, UrlType
public class UriType
- extends TextType
Represents a type whose value is a URI.
- Author:
- Michael Angstadt
Methods inherited from class ezvcard.types.VCardType |
compareTo, doMarshalSubTypes, getGroup, getQName, getSubTypes, getSupportedVersions, 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 |
UriType
public UriType(String name)
- Parameters:
name
- the type name (e.g. "URL")
UriType
public UriType(String name,
String uri)
- Parameters:
name
- the type name (e.g. "URL")uri
- the type value
doUnmarshalXml
protected void doUnmarshalXml(XCardElement element,
List<String> warnings,
CompatibilityMode compatibilityMode)
- Description copied from class:
VCardType
- Unmarshals the type from an xCard (XML document).
- Overrides:
doUnmarshalXml
in class TextType
- Parameters:
element
- 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
doMarshalXml
protected void doMarshalXml(XCardElement parent,
List<String> warnings,
CompatibilityMode compatibilityMode)
- Description copied from class:
VCardType
- Marshals this type for inclusion in an xCard (XML document). All child
classes SHOULD override this, but are not required to.
- Overrides:
doMarshalXml
in class TextType
- Parameters:
parent
- 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
doUnmarshalHtml
protected void doUnmarshalHtml(HCardElement element,
List<String> warnings)
- Description copied from class:
VCardType
- Unmarshals the type from an hCard (HTML document).
- Overrides:
doUnmarshalHtml
in class TextType
- Parameters:
element
- the HTML element that contains the type data.warnings
- allows the programmer to alert the user to any
note-worthy (but non-critical) issues that occurred during the
unmarshalling process
Copyright © 2012-2013. All Rights Reserved.