Class Address
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Property
-
- net.fortuna.ical4j.vcard.GroupProperty
-
- net.fortuna.ical4j.vcard.property.Address
-
- All Implemented Interfaces:
Serializable
,Comparable<Property>
,FluentProperty
public class Address extends GroupProperty
ADDRESS property.$Id$
Created on 23/08/2008
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Address.Builder
static class
Address.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 Address(String poBox, String extended, String street, String locality, String region, String postcode, String country, Type... types)
Address(ParameterList params, String value)
Address(Group group, String poBox, String extended, String street, String locality, String region, String postcode, String country, Type... types)
Address(Group group, ParameterList params, String value)
Factory constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCountry()
String
getExtended()
String
getLocality()
String
getPoBox()
String
getPostcode()
String
getRegion()
String
getStreet()
String
getValue()
protected PropertyFactory<?>
newFactory()
void
setValue(String aValue)
ValidationResult
validate()
-
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
-
Address
public Address(String poBox, String extended, String street, String locality, String region, String postcode, String country, Type... types)
- Parameters:
poBox
- post office box address componentextended
- extended address componentstreet
- street address componentlocality
- locality address componentregion
- region address componentpostcode
- postal code address componentcountry
- country address componenttypes
- optional address types
-
Address
public Address(Group group, String poBox, String extended, String street, String locality, String region, String postcode, String country, Type... types)
- Parameters:
group
- property grouppoBox
- post office box address componentextended
- extended address componentstreet
- street address componentlocality
- locality address componentregion
- region address componentpostcode
- postal code address componentcountry
- country address componenttypes
- optional address types
-
Address
public Address(ParameterList params, String value)
- Parameters:
params
- property parametersvalue
- string representation of an address value
-
Address
public Address(Group group, ParameterList params, String value)
Factory constructor.- Parameters:
group
- property groupparams
- property parametersvalue
- string representation of an address value
-
-
Method Detail
-
getPoBox
public String getPoBox()
- Returns:
- the poBox
-
getExtended
public String getExtended()
- Returns:
- the extended
-
getStreet
public String getStreet()
- Returns:
- the street
-
getLocality
public String getLocality()
- Returns:
- the locality
-
getRegion
public String getRegion()
- Returns:
- the region
-
getPostcode
public String getPostcode()
- Returns:
- the postcode
-
getCountry
public String getCountry()
- Returns:
- the country
-
validate
public ValidationResult validate() throws ValidationException
- Specified by:
validate
in classProperty
- Throws:
ValidationException
-
newFactory
protected PropertyFactory<?> newFactory()
- Specified by:
newFactory
in classProperty
-
-