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

Examples of ca.uhn.fhir.model.api.annotation.Extension.url()


      } else if (extensionAttr != null) {
        /*
         * Child is an extension
         */
        Class<? extends IElement> et = (Class<? extends IElement>) nextElementType;
        RuntimeChildDeclaredExtensionDefinition def = new RuntimeChildDeclaredExtensionDefinition(next, childAnnotation, descriptionAnnotation, extensionAttr, elementName, extensionAttr.url(), et);
        orderMap.put(order, def);
        if (IElement.class.isAssignableFrom(nextElementType)) {
          addScanAlso((Class<? extends IElement>) nextElementType);
        }
      } else if (BaseResourceReference.class.isAssignableFrom(nextElementType)) {
View Full Code Here


        if (extensionAttr != null) {

          for (Entry<Integer, BaseRuntimeDeclaredChildDefinition> nextEntry : orderMap.entrySet()) {
            BaseRuntimeDeclaredChildDefinition nextDef = nextEntry.getValue();
            if (nextDef instanceof RuntimeChildDeclaredExtensionDefinition) {
              if (nextDef.getExtensionUrl().equals(extensionAttr.url())) {
                order = nextEntry.getKey();
                orderMap.remove(nextEntry.getKey());
                elementNames.remove(elementName);
                break;
              }
View Full Code Here

                break;
              }
            }
          }
          if (order == Child.REPLACE_PARENT) {
            throw new ConfigurationException("Field " + next.getName() + "' on target type " + theClass.getSimpleName() + " has order() of REPLACE_PARENT (" + Child.REPLACE_PARENT + ") but no parent element with extension URL " + extensionAttr.url()
                + " could be found on type " + next.getDeclaringClass().getSimpleName());
          }

        } else {
View Full Code Here

      } else if (extensionAttr != null) {
        /*
         * Child is an extension
         */
        Class<? extends IElement> et = (Class<? extends IElement>) nextElementType;
        RuntimeChildDeclaredExtensionDefinition def = new RuntimeChildDeclaredExtensionDefinition(next, childAnnotation, descriptionAnnotation, extensionAttr, elementName, extensionAttr.url(), et);
        orderMap.put(order, def);
        if (IElement.class.isAssignableFrom(nextElementType)) {
          addScanAlso((Class<? extends IElement>) nextElementType);
        }
      } else if (BaseResourceReferenceDt.class.isAssignableFrom(nextElementType)) {
View Full Code Here

      } else if (extensionAttr != null) {
        /*
         * Child is an extension
         */
        Class<? extends IElement> et = (Class<? extends IElement>) nextElementType;
        RuntimeChildDeclaredExtensionDefinition def = new RuntimeChildDeclaredExtensionDefinition(next, childAnnotation, descriptionAnnotation, extensionAttr, elementName, extensionAttr.url(), et);
        orderMap.put(order, def);
        if (IElement.class.isAssignableFrom(nextElementType)) {
          addScanAlso((Class<? extends IElement>) nextElementType);
        }
      } else if (BaseResourceReference.class.isAssignableFrom(nextElementType)) {
View Full Code Here

      } else if (extensionAttr != null) {
        /*
         * Child is an extension
         */
        Class<? extends IElement> et = (Class<? extends IElement>) nextElementType;
        RuntimeChildDeclaredExtensionDefinition def = new RuntimeChildDeclaredExtensionDefinition(next, childAnnotation, descriptionAnnotation, extensionAttr, elementName, extensionAttr.url(), et);
        orderMap.put(order, def);
        if (IElement.class.isAssignableFrom(nextElementType)) {
          addScanAlso((Class<? extends IElement>) nextElementType);
        }
      } else if (BaseResourceReference.class.isAssignableFrom(nextElementType)) {
View Full Code Here

      } else if (extensionAttr != null) {
        /*
         * Child is an extension
         */
        Class<? extends IElement> et = (Class<? extends IElement>) nextElementType;
        RuntimeChildDeclaredExtensionDefinition def = new RuntimeChildDeclaredExtensionDefinition(next, childAnnotation, descriptionAnnotation, extensionAttr, elementName, extensionAttr.url(), et);
        orderMap.put(order, def);
        if (IElement.class.isAssignableFrom(nextElementType)) {
          addScanAlso((Class<? extends IElement>) nextElementType);
        }
      } else if (BaseResourceReferenceDt.class.isAssignableFrom(nextElementType)) {
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.