public class ViewElement extends Object implements ModelViewItem<ElementDefinition>
| Modifier and Type | Field and Description |
|---|---|
private ElementDefinition |
_definition |
| Constructor and Description |
|---|
ViewElement() |
| Modifier and Type | Method and Description |
|---|---|
ElementDefinition |
getDefinition()
Retrieves the referenced model item definition
|
String |
getName()
Retrieves the name of the view item
|
void |
setDefinition(ElementDefinition definition)
Sets the referenced model item definition
|
Map<String,Object> |
toJSON()
Converts the view item in a JSON map
|
private ElementDefinition _definition
public ViewElement()
public ElementDefinition getDefinition()
ModelViewItemgetDefinition in interface ModelViewItem<ElementDefinition>public void setDefinition(ElementDefinition definition)
ModelViewItemsetDefinition in interface ModelViewItem<ElementDefinition>definition - the referenced definitionpublic String getName()
ViewItempublic Map<String,Object> toJSON() throws ProcessingException
ViewItemtoJSON in interface ViewItemProcessingException - If an error occurs when converting the view item