public abstract class VComponentBase extends VParentBase implements VComponent
<p>Base class implementation of a VComponent
</p>
Modifier and Type | Method and Description |
---|---|
void |
copyInto(VParent destination)
|
VParent |
getParent()
|
java.lang.String |
name()
<p>Returns the name of the component as it would appear in the iCalendar content line.</p>
<p>Examples:
<ul>
<li>VEVENT
<li>SUMMARY
<li>LANGUAGE
</ul>
</p>
|
java.util.List<java.lang.String> |
parseContent(java.lang.String content)
Parse content line into calendar element.
|
java.util.Map<VElement,java.util.List<java.lang.String>> |
parseContent(java.lang.String content,
boolean useRequestStatus) |
java.util.Map<VElement,java.util.List<java.lang.String>> |
parseContent(UnfoldingStringIterator unfoldedLineIterator,
boolean collectErrorMessages)
Parse a VComponent from a
Iterator<String> . |
void |
setParent(VParent parent)
|
java.lang.String |
toString() |
childrenUnmodifiable, copyIntoCallback, equals, errors, hashCode, orderer, setContentLineGenerator, toContent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toContent
childrenUnmodifiable
public void copyInto(VParent destination)
VParent
copyInto
in interface VParent
copyInto
in class VParentBase
public java.lang.String name()
VElement
<p>Returns the name of the component as it would appear in the iCalendar content line.</p> <p>Examples: <ul> <li>VEVENT <li>SUMMARY <li>LANGUAGE </ul> </p>
public java.util.List<java.lang.String> parseContent(java.lang.String content)
VElement
Parse content line into calendar element.
If element contains children VElement.parseContent(String)
is invoked recursively to parse child elements also
parseContent
in interface VElement
content
- calendar content string to parsepublic java.util.Map<VElement,java.util.List<java.lang.String>> parseContent(java.lang.String content, boolean useRequestStatus)
public java.util.Map<VElement,java.util.List<java.lang.String>> parseContent(UnfoldingStringIterator unfoldedLineIterator, boolean collectErrorMessages)
VComponent
Parse a VComponent from a Iterator<String>
.
Returns list of error strings for RequestStatus
if collectErrorList is true,
otherwise returns an empty list
parseContent
in interface VComponent
unfoldedLineIterator
- calendar component lines to parsecollectErrorMessages
- true causes return List to contain error messages, false causes empty listpublic java.lang.String toString()
toString
in class java.lang.Object