Examples of Enum


Examples of org.apache.sqoop.schema.type.Enum

        break;
      case DECIMAL:
        output = new Decimal().setPrecision(precision).setScale(scale);
        break;
      case ENUM:
        output = new Enum(key);
        break;
      case FIXED_POINT:
        output = new FixedPoint().setByteSize(size).setUnsigned(unsigned);
        break;
      case FLOATING_POINT:
View Full Code Here

Examples of org.apache.sqoop.schema.type.Enum

    transferAndAssert(decimal);
  }

  @Test
  public void testEnum() {
    Schema e = new Schema("e").addColumn(new Enum("e", new Text()));
    transferAndAssert(e);
  }
View Full Code Here

Examples of org.apache.sqoop.schema.type.Enum

      .addColumn(new Binary("b"))
      .addColumn(new Bit("c"))
      .addColumn(new Date("d"))
      .addColumn(new DateTime("e"))
      .addColumn(new Decimal("f"))
      .addColumn(new Enum("g", new Text()))
      .addColumn(new FixedPoint("h"))
      .addColumn(new FloatingPoint("i"))
      .addColumn(new Map("j", new Text(), new Text()))
      .addColumn(new Set("k", new Text()))
      .addColumn(new Text("l"))
View Full Code Here

Examples of org.apache.sqoop.schema.type.Enum

  }

  @Test
  public void testComplex() {
    Schema complex = new Schema("complex")
      .addColumn(new Map(new Array(new Enum(new Text())), new Set(new Array(new Text()))).setName("a"))
    ;
    transferAndAssert(complex);
  }
View Full Code Here

Examples of org.ggf.schemas.bes.x2006.x08.besFactory.ActivityStateEnumeration.Enum

  private ApplicationJobStatus getApplicationJobStatus(ActivityStatusType activityStatus){
    if (activityStatus==null){
      return ApplicationJobStatus.UNKNOWN;
    }
    Enum state = activityStatus.getState();
    if (ActivityStateEnumeration.PENDING.equals(state)){
      return ApplicationJobStatus.PENDING;
    } else if (ActivityStateEnumeration.CANCELLED.equals(state)){
      return ApplicationJobStatus.CANCELLED;
    } else if (ActivityStateEnumeration.FAILED.equals(state)){
View Full Code Here

Examples of org.openengsb.core.ekb.persistence.query.edb.models.TestModel2.ENUM

    @Test
    public void testInteractionWithEnumValuesWithRealImplementation_shouldWork() throws Exception {
        TestModel2 model = service.getModel(TestModel2.class, "testoidimpl");

        ENUM temp = model.getEnumeration();
        model.setEnumeration(ENUM.B);
        assertThat(temp, is(ENUM.A));
        assertThat(model.getEnumeration(), is(ENUM.B));
    }
View Full Code Here

Examples of org.openxmlformats.schemas.spreadsheetml.x2006.main.STDataValidationOperator.Enum

 
    private XSSFDataValidationConstraint getConstraint(CTDataValidation ctDataValidation) {
      XSSFDataValidationConstraint constraint = null;
      String formula1 = ctDataValidation.getFormula1();
      String formula2 = ctDataValidation.getFormula2();
      Enum operator = ctDataValidation.getOperator();
      org.openxmlformats.schemas.spreadsheetml.x2006.main.STDataValidationType.Enum type = ctDataValidation.getType();
    Integer validationType = XSSFDataValidation.validationTypeReverseMappings.get(type);
    Integer operatorType = XSSFDataValidation.operatorTypeReverseMappings.get(operator);
    constraint = new XSSFDataValidationConstraint(validationType,operatorType, formula1,formula2);
      return constraint;
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum

      HdrDocument hdrDoc = HdrDocument.Factory.parse(hdrPart.getInputStream());
      CTHdrFtr hdrFtr = hdrDoc.getHdr();
      XWPFHeader hdr = new XWPFHeader(doc, hdrFtr);

      // Assign it
      Enum type = ref.getType();
      assignHeader(hdr, type);
    }
    for(int i=0; i<sectPr.sizeOfFooterReferenceArray(); i++) {
      // Get the footer
      CTHdrFtrRef ref = sectPr.getFooterReferenceArray(i);
      PackagePart ftrPart = doc.getPartById(ref.getId());
      XWPFFooter ftr = new XWPFFooter(doc,
          FtrDocument.Factory.parse(ftrPart.getInputStream()).getFtr());

      // Assign it
      Enum type = ref.getType();
      assignFooter(ftr, type);
    }
  }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum

      HdrDocument hdrDoc = HdrDocument.Factory.parse(hdrPart.getInputStream());
      CTHdrFtr hdrFtr = hdrDoc.getHdr();
      XWPFHeader hdr = new XWPFHeader(hdrFtr);

      // Assign it
      Enum type = ref.getType();
      assignHeader(hdr, type);
    }
    for(int i=0; i<sectPr.sizeOfFooterReferenceArray(); i++) {
      // Get the footer
      CTHdrFtrRef ref = sectPr.getFooterReferenceArray(i);
      PackagePart ftrPart = doc.getPartById(ref.getId());
      XWPFFooter ftr = new XWPFFooter(
          FtrDocument.Factory.parse(ftrPart.getInputStream()).getFtr()
      );

      // Assign it
      Enum type = ref.getType();
      assignFooter(ftr, type);
    }
  }
View Full Code Here

Examples of test.wsdl.types.comprehensive_types.Enum

            binding.enumOut(value);
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("enumOut Exception caught: " + re );
        }
        try {
            Enum value = null;
            value = binding.enumReturn();
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("enumReturn Exception caught: " + re );
        }
        try {
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.