|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.component.marshaller.ICalComponentMarshaller<T>
T
- the component classpublic abstract class ICalComponentMarshaller<T extends ICalComponent>
Base class for iCalendar component marshallers.
Field Summary | |
---|---|
protected Class<T> |
clazz
|
protected String |
componentName
|
Constructor Summary | |
---|---|
ICalComponentMarshaller(Class<T> clazz,
String componentName)
Creates a new component marshaller. |
Method Summary | |
---|---|
protected abstract T |
_newInstance()
Creates a new instance of the component class. |
T |
emptyInstance()
Creates a new instance of the component class that doesn't have any properties or sub-components. |
Class<T> |
getComponentClass()
Gets the component class. |
String |
getComponentName()
Gets the component's name. |
Collection<ICalComponent> |
getComponents(T component)
Gets the sub-components to marshal. |
List<ICalProperty> |
getProperties(T component)
Gets the properties to marshal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Class<T extends ICalComponent> clazz
protected final String componentName
Constructor Detail |
---|
public ICalComponentMarshaller(Class<T> clazz, String componentName)
clazz
- the component's classcomponentName
- the component's name (e.g. "VEVENT")Method Detail |
---|
public Class<T> getComponentClass()
public String getComponentName()
public T emptyInstance()
protected abstract T _newInstance()
public Collection<ICalComponent> getComponents(T component)
component
- the component
public List<ICalProperty> getProperties(T component)
component
- the component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |