InnerArchetype

public class InnerArchetype extends EhrDatatype

This class represents an Archetype item included in another one.

Constructors

InnerArchetype

public InnerArchetype(WidgetProvider wp, String path, JSONObject attributes)

Instantiates a new Archetype item.

Parameters:
  • wp – the Widget Provider of the archetype
  • path – the absolute path of the archetype inside the json structure
  • attributes

Methods

fromJSON

public void fromJSON(JSONObject data)

getArchetypeClass

public String getArchetypeClass()
Returns:the name of the archetype class

getWidgetProvider

public WidgetProvider getWidgetProvider()

isInnerArchetype

public boolean isInnerArchetype()
Returns:True if this datatype is an archetype itself False otherwise

setAttributes

protected void setAttributes(JSONObject attributes)

toJSON

public JSONObject toJSON()