Package ca.uhn.fhir.model.api.annotation

Examples of ca.uhn.fhir.model.api.annotation.SearchParamDefinition.type()


  private void scanResourceForSearchParams(Class<? extends IResource> theClass, RuntimeResourceDefinition theResourceDef) {

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
View Full Code Here


    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
      }
    }
View Full Code Here

    Map<Field, SearchParamDefinition> compositeFields = new LinkedHashMap<Field, SearchParamDefinition>();

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        if (paramType == SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
View Full Code Here

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        if (paramType == SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
          continue;
        }
View Full Code Here

    Map<Field, SearchParamDefinition> compositeFields = new LinkedHashMap<Field, SearchParamDefinition>();

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        if(paramType==SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
View Full Code Here

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        if(paramType==SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
          continue;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.