net.fortuna.ical4j.model.property
public class Attach extends 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.
Format Definition: The property is defined by the following notation:
attach = "ATTACH" attparam ":" uri CRLF
attach =/ "ATTACH" attparam ";" "ENCODING" "=" "BASE64"
";" "VALUE" "=" "BINARY" ":" binary
attparam = *(
; the following is optional,
; but MUST NOT occur more than once
(";" fmttypeparam) /
; the following is optional,
; and MAY occur more than once
(";" xparam)
)
ACTION, ATTACH, ATTENDEE, BUSYTYPE, 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, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZURL, UID, URL, VERSION| Constructor and Description |
|---|
Attach()
Default constructor.
|
Attach(byte[] data) |
Attach(ParameterList aList,
byte[] data) |
Attach(ParameterList aList,
String aValue) |
Attach(ParameterList aList,
URI aUri) |
Attach(URI aUri) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinary() |
URI |
getUri() |
String |
getValue() |
void |
setBinary(byte[] binary) |
void |
setUri(URI uri) |
void |
setValue(String aValue)
Sets the current value of the Attach instance.
|
void |
validate()
Perform validation on a property.
|
copy, equals, getName, getParameter, getParameters, getParameters, hashCode, isCalendarProperty, toStringpublic Attach()
public Attach(ParameterList aList, String aValue) throws IOException, URISyntaxException
aList - a list of parameters for this componentaValue - a value string for this componentIOException - when there is an error reading the binary streamURISyntaxException - where the specified string is not a valid uripublic Attach(byte[] data)
data - binary datapublic Attach(ParameterList aList, byte[] data)
aList - a list of parameters for this componentdata - binary datapublic Attach(URI aUri)
aUri - a URIpublic Attach(ParameterList aList, URI aUri)
aList - a list of parameters for this componentaUri - a URIpublic final void validate()
throws ValidationException
validate in class PropertyValidationException - where the property is not in a valid statepublic final byte[] getBinary()
public final URI getUri()
public final void setValue(String aValue) throws IOException, URISyntaxException
setValue in class PropertyaValue - a string encoded binary or URI valueIOException - where binary data cannot be decodedURISyntaxException - where the specified value is not a valid URIpublic final String getValue()
public final void setBinary(byte[] binary)
binary - The binary to set.public final void setUri(URI uri)
uri - The uri to set.Copyright © 2004-2013 Micronode. All Rights Reserved.