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()
ModelViewItem
getDefinition
in interface ModelViewItem<ElementDefinition>
public void setDefinition(ElementDefinition definition)
ModelViewItem
setDefinition
in interface ModelViewItem<ElementDefinition>
definition
- the referenced definitionpublic String getName()
ViewItem
public Map<String,Object> toJSON() throws ProcessingException
ViewItem
toJSON
in interface ViewItem
ProcessingException
- If an error occurs when converting the view item