public abstract class AbstractWebCmsComponentModelReader<T extends WebCmsComponentModel> extends Object implements WebCmsComponentModelReader<T>
WebCmsComponentModel and supports component template.
A component type can have a componentTemplate component attached that will serve as the
base component for the type. Note that the implemented WebCmsComponentModel type of the template
component must be the same as the type defined by the component type itself.| Constructor and Description |
|---|
AbstractWebCmsComponentModelReader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
buildComponentModel(WebCmsComponent component)
Build the basic
WebCmsComponentModel. |
protected Object |
buildMetadata(Object currentMetadata,
WebCmsComponent component)
Override if you want to use a custom implementation for reading the metadata.
|
T |
readFromComponent(WebCmsComponent component) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic final T readFromComponent(WebCmsComponent component)
readFromComponent in interface WebCmsComponentModelReader<T extends WebCmsComponentModel>protected Object buildMetadata(Object currentMetadata, WebCmsComponent component)
protected abstract T buildComponentModel(WebCmsComponent component)
WebCmsComponentModel. The return value should not have any metadata attached.component - to read model forCopyright © 2020. All rights reserved.