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) )
Modifier and Type | Class and Description |
---|---|
static class |
Attach.Factory |
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,
java.lang.String aValue) |
Attach(ParameterList aList,
java.net.URI aUri) |
Attach(java.net.URI aUri) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinary() |
java.net.URI |
getUri() |
java.lang.String |
getValue() |
void |
setBinary(byte[] binary) |
void |
setUri(java.net.URI uri) |
void |
setValue(java.lang.String aValue)
Sets the current value of the Attach instance.
|
void |
validate()
Perform validation on a property.
|
copy, equals, getName, getParameter, getParameters, getParameters, hashCode, toString
public Attach()
public Attach(ParameterList aList, java.lang.String aValue) throws java.io.IOException, java.net.URISyntaxException
aList
- a list of parameters for this componentaValue
- a value string for this componentjava.io.IOException
- when there is an error reading the binary streamjava.net.URISyntaxException
- 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(java.net.URI aUri)
aUri
- a URIpublic Attach(ParameterList aList, java.net.URI aUri)
aList
- a list of parameters for this componentaUri
- a URIpublic final void validate() throws ValidationException
validate
in class Property
ValidationException
- where the property is not in a valid statepublic final byte[] getBinary()
public final java.net.URI getUri()
public final void setValue(java.lang.String aValue) throws java.io.IOException, java.net.URISyntaxException
public final java.lang.String getValue()
public final void setBinary(byte[] binary)
binary
- The binary to set.public final void setUri(java.net.URI uri)
uri
- The uri to set.