Class Telephone
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Property
-
- net.fortuna.ical4j.vcard.GroupProperty
-
- net.fortuna.ical4j.vcard.property.Telephone
-
- All Implemented Interfaces:
Serializable,Comparable<Property>,FluentProperty
public class Telephone extends GroupProperty
TEL property.$Id$
Created on 24/08/2008
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTelephone.Factory
-
Field Summary
-
Fields inherited from class net.fortuna.ical4j.vcard.GroupProperty
ILLEGAL_PARAMETER_MESSAGE
-
Fields inherited from class net.fortuna.ical4j.model.Property
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, CALENDAR_ADDRESS, CALSCALE, CATEGORIES, CLASS, COMMENT, COMPLETED, CONTACT, COUNTRY, CREATED, DESCRIPTION, DTEND, DTSTAMP, DTSTART, DUE, DURATION, EXDATE, EXPERIMENTAL_PREFIX, EXRULE, EXTENDED_ADDRESS, FREEBUSY, GEO, LAST_MODIFIED, LOCALITY, LOCATION, LOCATION_TYPE, METHOD, NAME, ORGANIZER, PARTICIPANT_TYPE, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, PROXIMITY, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCE_TYPE, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, STRUCTURED_DATA, STYLED_DESCRIPTION, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZID_ALIAS_OF, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZUNTIL, TZURL, UID, URL, VERSION
-
-
Constructor Summary
Constructors Constructor Description Telephone(String value, Type... types)Provide backwards-compatibility for vCard 3.0.Telephone(URI uri, Type... types)Telephone(ParameterList params, String value)Factory constructor.Telephone(Group group, URI uri, Type... types)Telephone(Group group, ParameterList params, String value)Factory constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetUri()StringgetValue()protected PropertyFactory<Telephone>newFactory()voidsetValue(String value)ValidationResultvalidate()-
Methods inherited from class net.fortuna.ical4j.vcard.GroupProperty
assertOneOrLess, assertParametersEmpty, assertPidParameter, assertPrefParameter, assertTextParameter, assertTypeParameter, equals, getGroup, getId, getParameter, hashCode, toString
-
Methods inherited from class net.fortuna.ical4j.model.Property
add, compareTo, copy, getFluentTarget, getName, getParameter, getParameterList, getParameters, getRequiredParameter, remove, removeAll, replace, setParameters
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.fortuna.ical4j.model.FluentProperty
withParameter
-
-
-
-
Constructor Detail
-
Telephone
public Telephone(URI uri, Type... types)
- Parameters:
uri- specifies the URI of a telephone definitiontypes- optional parameter types
-
Telephone
public Telephone(Group group, URI uri, Type... types)
- Parameters:
group- a property groupuri- specifies the URI of a telephone definitiontypes- optional parameter types
-
Telephone
public Telephone(String value, Type... types)
Provide backwards-compatibility for vCard 3.0.- Parameters:
value- a non-URI valuetypes- optional parameter types
-
Telephone
public Telephone(ParameterList params, String value)
Factory constructor.- Parameters:
params- property parametersvalue- string representation of a property value- Throws:
URISyntaxException- where the specified value is not a valid URI
-
Telephone
public Telephone(Group group, ParameterList params, String value)
Factory constructor.- Parameters:
group- a property groupparams- property parametersvalue- string representation of a property value- Throws:
URISyntaxException- where the specified value is not a valid URI
-
-
Method Detail
-
getUri
public URI getUri()
- Returns:
- the uri
-
validate
public ValidationResult validate() throws ValidationException
- Specified by:
validatein classProperty- Throws:
ValidationException
-
newFactory
protected PropertyFactory<Telephone> newFactory()
- Specified by:
newFactoryin classProperty
-
-