Package org.ehrbase.opt.query
Class QueryOptMetaData
- java.lang.Object
-
- org.ehrbase.opt.query.QueryOptMetaData
-
- All Implemented Interfaces:
Serializable,I_QueryOptMetaData
public class QueryOptMetaData extends Object implements I_QueryOptMetaData
Created by christian on 5/7/2018.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static I_QueryOptMetaDatagetInstance(Object visitor)static I_QueryOptMetaDatagetInstance(String visitor)static I_QueryOptMetaDatagetInstance(OPERATIONALTEMPLATE operationaltemplate)ObjectgetJsonPathVisitor()StringgetTemplateConcept()StringgetTemplateId()static QueryOptMetaDatainitialize(OPERATIONALTEMPLATE operationaltemplate)prepare a document for queryingListnodeByFieldValue(String field, String value)return the list of node with name == 'name'ListnodeFieldRegexp(String field, String regexp)Stringtype(String path)get the type of the node identified with pathListupperNotBounded()returns all path for which upper limit is unbounded.
-
-
-
Method Detail
-
initialize
public static QueryOptMetaData initialize(OPERATIONALTEMPLATE operationaltemplate) throws Exception
prepare a document for querying- Returns:
- Throws:
Exception
-
getInstance
public static I_QueryOptMetaData getInstance(OPERATIONALTEMPLATE operationaltemplate) throws Exception
- Throws:
Exception
-
getInstance
public static I_QueryOptMetaData getInstance(String visitor) throws Exception
- Throws:
Exception
-
getInstance
public static I_QueryOptMetaData getInstance(Object visitor) throws Exception
- Throws:
Exception
-
upperNotBounded
public List upperNotBounded()
returns all path for which upper limit is unbounded.- Specified by:
upperNotBoundedin interfaceI_QueryOptMetaData- Returns:
-
type
public String type(String path)
get the type of the node identified with path- Specified by:
typein interfaceI_QueryOptMetaData- Parameters:
path-- Returns:
-
nodeByFieldValue
public List nodeByFieldValue(String field, String value)
return the list of node with name == 'name'- Specified by:
nodeByFieldValuein interfaceI_QueryOptMetaData- Parameters:
value-- Returns:
-
nodeFieldRegexp
public List nodeFieldRegexp(String field, String regexp)
- Specified by:
nodeFieldRegexpin interfaceI_QueryOptMetaData
-
getJsonPathVisitor
public Object getJsonPathVisitor()
- Specified by:
getJsonPathVisitorin interfaceI_QueryOptMetaData
-
getTemplateConcept
public String getTemplateConcept()
- Specified by:
getTemplateConceptin interfaceI_QueryOptMetaData
-
getTemplateId
public String getTemplateId()
- Specified by:
getTemplateIdin interfaceI_QueryOptMetaData
-
-