Class Attach
java.lang.Object
net.fortuna.ical4j.model.Content
net.fortuna.ical4j.model.Property
net.fortuna.ical4j.model.property.Attach
- All Implemented Interfaces:
Serializable,Comparable<Property>,FluentProperty
$Id$
Created: [Apr 6, 2004]
Defines an ATTACH iCalendar component property.
4.8.1.1 Attachment
Property Name: ATTACH
Purpose: The property provides the capability to associate a document
object with a calendar component.
Value Type: The default value type for this property is URI. The
value type can also be set to BINARY to indicate inline binary
encoded content information.
Property Parameters: Non-standard, inline encoding, format type and
value data type property parameters can be specified on this
property.
Conformance: The property can be specified in a "VEVENT", "VTODO",
"VJOURNAL" or "VALARM" calendar components.
Description: The property can be specified within "VEVENT", "VTODO",
"VJOURNAL", or "VALARM" calendar components. This property can be
specified multiple times within an iCalendar object.
- See Also:
-
Nested Class Summary
Nested Classes -
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, XML -
Constructor Summary
ConstructorsConstructorDescriptionAttach()Default constructor.Attach(byte[] data) Attach(ParameterList aList, byte[] data) Attach(ParameterList aList, String aValue) Attach(ParameterList aList, URI aUri) -
Method Summary
Methods inherited from class net.fortuna.ical4j.model.Property
compareTo, copy, equals, getFluentTarget, getName, getParameter, getParameters, getParameters, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fortuna.ical4j.model.FluentProperty
withParameter
-
Constructor Details
-
Attach
public Attach()Default constructor. -
Attach
- Parameters:
aList- a list of parameters for this componentaValue- a value string for this component- Throws:
URISyntaxException- where the specified string is not a valid uri
-
Attach
public Attach(byte[] data) - Parameters:
data- binary data
-
Attach
- Parameters:
aList- a list of parameters for this componentdata- binary data
-
Attach
- Parameters:
aUri- a URI
-
Attach
- Parameters:
aList- a list of parameters for this componentaUri- a URI
-
-
Method Details
-
validate
Perform validation on a property.- Specified by:
validatein classProperty- Throws:
ValidationException- where the property is not in a valid state
-
getBinary
public final byte[] getBinary()- Returns:
- Returns the binary.
-
getUri
- Returns:
- Returns the uri.
-
setValue
Sets the current value of the Attach instance. If the specified value is encoded binary data, the value is decoded and stored in the binary field. Otherwise the value is assumed to be a URI location to binary data and is stored as such.- Specified by:
setValuein classProperty- Parameters:
aValue- a string encoded binary or URI value- Throws:
URISyntaxException- where the specified value is not a valid URI
-
getValue
-
setBinary
public final void setBinary(byte[] binary) - Parameters:
binary- The binary to set.
-
setUri
- Parameters:
uri- The uri to set.
-