Class PercentComplete
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Property
-
- net.fortuna.ical4j.model.property.PercentComplete
-
- All Implemented Interfaces:
Serializable,Comparable<Property>,FluentProperty
public class PercentComplete extends Property
$Id$ Created: [Apr 6, 2004] Defines a PERCENT-COMPLETE iCalendar component property.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPercentComplete.Factory
-
Field Summary
-
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 PercentComplete()Default constructor.PercentComplete(int aPercentage)PercentComplete(ParameterList aList, int aPercentage)PercentComplete(ParameterList aList, String aValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPercentage()StringgetValue()protected PropertyFactory<PercentComplete>newFactory()Returns a new property factory used to create deep copies.voidsetPercentage(int percentage)voidsetValue(String aValue)Sets the current value of the property.ValidationResultvalidate()Perform validation on a property.-
Methods inherited from class net.fortuna.ical4j.model.Property
add, compareTo, copy, equals, getFluentTarget, getName, getParameter, getParameterList, getParameters, getPrefix, getRequiredParameter, hashCode, remove, removeAll, replace, setParameters, setPrefix, toString
-
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
-
PercentComplete
public PercentComplete()
Default constructor.
-
PercentComplete
public PercentComplete(ParameterList aList, String aValue)
- Parameters:
aList- a list of parameters for this componentaValue- a value string for this component
-
PercentComplete
public PercentComplete(int aPercentage)
- Parameters:
aPercentage- an int representation of a percentage
-
PercentComplete
public PercentComplete(ParameterList aList, int aPercentage)
- Parameters:
aList- a list of parameters for this componentaPercentage- an int representation of a percentage
-
-
Method Detail
-
getPercentage
public final int getPercentage()
- Returns:
- Returns the percentage.
-
setValue
public final void setValue(String aValue)
Sets the current value of the property.
-
getValue
public final String getValue()
-
setPercentage
public final void setPercentage(int percentage)
- Parameters:
percentage- The percentage to set.
-
validate
public ValidationResult validate() throws ValidationException
Perform validation on a property.- Specified by:
validatein classProperty- Throws:
ValidationException- where the property is not in a valid state
-
newFactory
protected PropertyFactory<PercentComplete> newFactory()
Description copied from class:PropertyReturns a new property factory used to create deep copies.- Specified by:
newFactoryin classProperty- Returns:
- a property factory instance
-
-