Package net.fortuna.ical4j.vcard
Class GroupProperty
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Property
-
- net.fortuna.ical4j.vcard.GroupProperty
-
- All Implemented Interfaces:
Serializable
,Comparable<Property>
,FluentProperty
- Direct Known Subclasses:
Address
,Agent
,Anniversary
,BDay
,Birth
,CalAdrUri
,CalUri
,Categories
,Clazz
,ClientPidMap
,DDay
,Death
,Email
,FbUrl
,Fn
,Gender
,Geo
,Impp
,Key
,Kind
,Label
,Lang
,Logo
,Mailer
,Member
,N
,Name
,Nickname
,Note
,Org
,Photo
,ProdId
,Related
,Revision
,Role
,SortString
,Sound
,Source
,Telephone
,Title
,Tz
,Uid
,Url
,Version
,Xml
,XProperty
public abstract class GroupProperty extends Property
A vCard property. $Id$ Created on 21/08/2008- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.fortuna.ical4j.model.Content
Content.Factory
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
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 Modifier Constructor Description GroupProperty(String propertyName)
GroupProperty(String propertyName, ParameterList parameters)
GroupProperty(Group group, String propertyName)
GroupProperty(Group group, String propertyName, ParameterList parameters)
GroupProperty(Group group, PropertyName id)
protected
GroupProperty(Group group, PropertyName id, ParameterList parameters)
GroupProperty(PropertyName id)
protected
GroupProperty(PropertyName id, ParameterList parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
assertOneOrLess(ParameterName paramId)
protected void
assertParametersEmpty()
protected void
assertPidParameter(Parameter param)
protected void
assertPrefParameter(Parameter param)
protected void
assertTextParameter(Parameter param)
protected void
assertTypeParameter(Parameter param)
boolean
equals(Object arg0)
Group
getGroup()
PropertyName
getId()
Deprecated.<P extends Parameter>
Optional<P>getParameter(ParameterName name)
int
hashCode()
String
toString()
-
Methods inherited from class net.fortuna.ical4j.model.Property
add, compareTo, copy, getFluentTarget, getName, getParameter, getParameterList, getParameters, getRequiredParameter, newFactory, remove, removeAll, replace, setParameters, setValue, validate
-
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
-
-
-
-
Field Detail
-
ILLEGAL_PARAMETER_MESSAGE
protected static final String ILLEGAL_PARAMETER_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GroupProperty
public GroupProperty(String propertyName)
- Parameters:
propertyName
- a non-standard property name
-
GroupProperty
public GroupProperty(Group group, String propertyName)
- Parameters:
group
- a property grouppropertyName
- the non-standard property name
-
GroupProperty
public GroupProperty(String propertyName, ParameterList parameters)
- Parameters:
propertyName
- a non-standard property nameparameters
- property parameters
-
GroupProperty
public GroupProperty(Group group, String propertyName, ParameterList parameters)
- Parameters:
group
- a property grouppropertyName
- the non-standard property nameparameters
- property parameters
-
GroupProperty
public GroupProperty(PropertyName id)
- Parameters:
id
- the property type
-
GroupProperty
public GroupProperty(Group group, PropertyName id)
- Parameters:
group
- a property groupid
- a standard property identifier
-
GroupProperty
protected GroupProperty(PropertyName id, ParameterList parameters)
- Parameters:
id
- a standard property identifierparameters
- property parameters
-
GroupProperty
protected GroupProperty(Group group, PropertyName id, ParameterList parameters)
- Parameters:
group
- a property groupid
- a standard property identifierparameters
- property parameters
-
-
Method Detail
-
getGroup
public final Group getGroup()
- Returns:
- the group
-
getId
@Deprecated public final PropertyName getId()
Deprecated.- Returns:
- the id
-
getParameter
public <P extends Parameter> Optional<P> getParameter(ParameterName name)
-
assertParametersEmpty
protected final void assertParametersEmpty() throws ValidationException
- Throws:
ValidationException
- where the parameter list is not empty
-
assertTextParameter
protected final void assertTextParameter(Parameter param) throws ValidationException
- Parameters:
param
- a parameter to validate- Throws:
ValidationException
- where the specified parameter is not a text parameter
-
assertTypeParameter
protected final void assertTypeParameter(Parameter param) throws ValidationException
- Parameters:
param
- a parameter to validate- Throws:
ValidationException
- where the specified parameter is not a type parameter
-
assertPidParameter
protected final void assertPidParameter(Parameter param) throws ValidationException
- Parameters:
param
- a parameter to validate- Throws:
ValidationException
- where the specified parameter is not a PID parameter
-
assertPrefParameter
protected final void assertPrefParameter(Parameter param) throws ValidationException
- Parameters:
param
- a parameter to validate- Throws:
ValidationException
- where the specified parameter is not a Pref parameter
-
assertOneOrLess
protected final void assertOneOrLess(ParameterName paramId) throws ValidationException
- Parameters:
paramId
- a parameter identifier to validate from- Throws:
ValidationException
- where there is not one or less of the specified parameter in the parameter list
-
-