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

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


      while (order == Child.ORDER_UNKNOWN && orderMap.containsKey(order)) {
        order--;
      }

      List<Class<? extends IElement>> choiceTypes = new ArrayList<Class<? extends IElement>>();
      for (Class<? extends IElement> nextChoiceType : childAnnotation.type()) {
        choiceTypes.add(nextChoiceType);
      }

      if (orderMap.containsKey(order)) {
        throw new ConfigurationException("Detected duplicate field order '" + childAnnotation.order() + "' for element named '" + elementName + "' in type '" + theClass.getCanonicalName() + "'");
View Full Code Here


      } else if (BaseResourceReference.class.isAssignableFrom(nextElementType)) {
        /*
         * Child is a resource reference
         */
        List<Class<? extends IResource>> refTypesList = new ArrayList<Class<? extends IResource>>();
        for (Class<? extends IElement> nextType : childAnnotation.type()) {
          if (IResource.class.isAssignableFrom(nextType) == false) {
            throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getCanonicalName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
          }
          refTypesList.add((Class<? extends IResource>) nextType);
          addScanAlso(nextType);
View Full Code Here

      while (order == Child.ORDER_UNKNOWN && orderMap.containsKey(order)) {
        order--;
      }

      List<Class<? extends IElement>> choiceTypes = new ArrayList<Class<? extends IElement>>();
      for (Class<? extends IElement> nextChoiceType : childAnnotation.type()) {
        choiceTypes.add(nextChoiceType);
      }

      if (orderMap.containsKey(order)) {
        throw new ConfigurationException("Detected duplicate field order '" + childAnnotation.order() + "' for element named '" + elementName + "' in type '" + theClass.getCanonicalName() + "'");
View Full Code Here

      } else if (BaseResourceReferenceDt.class.isAssignableFrom(nextElementType)) {
        /*
         * Child is a resource reference
         */
        List<Class<? extends IResource>> refTypesList = new ArrayList<Class<? extends IResource>>();
        for (Class<? extends IElement> nextType : childAnnotation.type()) {
          if (IResource.class.isAssignableFrom(nextType) == false) {
            throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getCanonicalName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
          }
          refTypesList.add((Class<? extends IResource>) nextType);
          addScanAlso(nextType);
View Full Code Here

      while (order == Child.ORDER_UNKNOWN && orderMap.containsKey(order)) {
        order--;
      }

      List<Class<? extends IElement>> choiceTypes = new ArrayList<Class<? extends IElement>>();
      for (Class<? extends IElement> nextChoiceType : childAnnotation.type()) {
        choiceTypes.add(nextChoiceType);
      }

      if (orderMap.containsKey(order)) {
        throw new ConfigurationException("Detected duplicate field order '" + childAnnotation.order() + "' for element named '" + elementName + "' in type '" + theClass.getCanonicalName() + "'");
View Full Code Here

      } else if (BaseResourceReference.class.isAssignableFrom(nextElementType)) {
        /*
         * Child is a resource reference
         */
        List<Class<? extends IResource>> refTypesList = new ArrayList<Class<? extends IResource>>();
        for (Class<? extends IElement> nextType : childAnnotation.type()) {
          if (IResource.class.isAssignableFrom(nextType) == false) {
            throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getCanonicalName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
          }
          refTypesList.add((Class<? extends IResource>) nextType);
          addScanAlso(nextType);
View Full Code Here

      while (order == Child.ORDER_UNKNOWN && orderMap.containsKey(order)) {
        order--;
      }

      List<Class<? extends IElement>> choiceTypes = new ArrayList<Class<? extends IElement>>();
      for (Class<? extends IElement> nextChoiceType : childAnnotation.type()) {
        choiceTypes.add(nextChoiceType);
      }

      if (orderMap.containsKey(order)) {
        throw new ConfigurationException("Detected duplicate field order '" + childAnnotation.order() + "' for element named '" + elementName + "' in type '" + theClass.getCanonicalName() + "'");
View Full Code Here

      } else if (BaseResourceReference.class.isAssignableFrom(nextElementType)) {
        /*
         * Child is a resource reference
         */
        List<Class<? extends IResource>> refTypesList = new ArrayList<Class<? extends IResource>>();
        for (Class<? extends IElement> nextType : childAnnotation.type()) {
          if (IResource.class.isAssignableFrom(nextType) == false) {
            throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getCanonicalName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
          }
          refTypesList.add((Class<? extends IResource>) nextType);
          addScanAlso(nextType);
View Full Code Here

      while (order == Child.ORDER_UNKNOWN && orderMap.containsKey(order)) {
        order--;
      }

      List<Class<? extends IElement>> choiceTypes = new ArrayList<Class<? extends IElement>>();
      for (Class<? extends IElement> nextChoiceType : childAnnotation.type()) {
        choiceTypes.add(nextChoiceType);
      }

      if (orderMap.containsKey(order)) {
        throw new ConfigurationException("Detected duplicate field order '" + childAnnotation.order() + "' for element named '" + elementName + "' in type '" + theClass.getCanonicalName() + "'");
View Full Code Here

      } else if (BaseResourceReferenceDt.class.isAssignableFrom(nextElementType)) {
        /*
         * Child is a resource reference
         */
        List<Class<? extends IResource>> refTypesList = new ArrayList<Class<? extends IResource>>();
        for (Class<? extends IElement> nextType : childAnnotation.type()) {
          if (IResource.class.isAssignableFrom(nextType) == false) {
            throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getCanonicalName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
          }
          refTypesList.add((Class<? extends IResource>) nextType);
          addScanAlso(nextType);
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.