Modifier and Type | Field and Description |
---|---|
String |
type
Object base name (VCALENDAR, VEVENT, VCARD...).
|
Constructor and Description |
---|
VObject()
Create empty VCalendar object;
|
VObject(BufferedReader reader)
Create VObject from reader.
|
VObject(String itemBody)
Create VCalendar object from string;
|
VObject(VProperty beginProperty,
BufferedReader reader)
Create VObject with given type
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(VProperty property)
Add vProperty.
|
void |
addPropertyValue(String name,
String value)
Add vProperty value on vObject.
|
void |
addVObject(VObject vObject)
Add vObject.
|
List<VProperty> |
getProperties()
Get VObject properties
|
List<VProperty> |
getProperties(String name)
Get multivalued vProperty by name.
|
VProperty |
getProperty(String name)
Get vProperty by name.
|
String |
getPropertyValue(String name)
Get vProperty value by name.
|
protected void |
handleLine(String line,
BufferedReader reader) |
boolean |
isVAlarm() |
boolean |
isVEvent() |
boolean |
isVTimezone() |
void |
removeProperty(String name)
Remove vProperty from vObject.
|
void |
removeProperty(VProperty property)
Remove vProperty object from vObject.
|
void |
setPropertyValue(String name,
String value)
Set vProperty value on vObject, remove property if value is null.
|
void |
setType(String type) |
String |
toString() |
void |
writeTo(ICSBufferedWriter writer)
Write VObject to writer.
|
public String type
public VObject(VProperty beginProperty, BufferedReader reader) throws IOException
beginProperty
- first line propertyreader
- stream reader just after the BEGIN:TYPE lineIOException
- on errorpublic VObject(BufferedReader reader) throws IOException
reader
- stream reader just after the BEGIN:TYPE lineIOException
- on errorpublic VObject(String itemBody) throws IOException
itemBody
- item bodyIOException
- on errorpublic VObject()
public boolean isVTimezone()
public boolean isVEvent()
public boolean isVAlarm()
protected void handleLine(String line, BufferedReader reader) throws IOException
IOException
public void addVObject(VObject vObject)
vObject
- inner objectpublic void addProperty(VProperty property)
property
- vPropertypublic void writeTo(ICSBufferedWriter writer)
writer
- buffered writerpublic VProperty getProperty(String name)
name
- property namepublic List<VProperty> getProperties(String name)
name
- property namepublic String getPropertyValue(String name)
name
- property namepublic void setPropertyValue(String name, String value)
name
- property namevalue
- property valuepublic void addPropertyValue(String name, String value)
name
- property namevalue
- property valuepublic void removeProperty(String name)
name
- property namepublic void removeProperty(VProperty property)
property
- objectpublic void setType(String type)
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.