Examples of Meta


Examples of com.itextpdf.text.Meta

   * F�gt der Seite ein paar Metadaten hinzu.
   */
  private void addMetaData() throws DocumentException {
    document.addCreator(Statics.producer);
    document.addCreationDate();
    document.add(new Meta(ElementTags.PRODUCER, Statics.producer));
    String title =
      "Familienstammbuch der Familie " + person0Name + " (" + Statics.shortProducer + " #" + documentNumber + ")";
    document.addSubject(title);
    document.addTitle(title);
    document.addKeywords("Personen, Verwandtschaft, Genealogie, Familie, Stammbaum, " + Statics.producer);
View Full Code Here

Examples of com.lowagie.text.Meta

                    }
                    return true;
                case LwgElement.SUBJECT:
                case LwgElement.KEYWORDS:
                case LwgElement.AUTHOR:
                    Meta meta = (Meta) element;
                    writeHeader(meta);
                    return true;
                case LwgElement.TITLE:
                    addTabs(2);
                    writeStart(HtmlTags.TITLE);
View Full Code Here

Examples of com.opengamma.integration.viewer.status.impl.ViewStatusKeyBean.Meta

    return processedRows;
  }

  private ViewStatusKey keyFromRowValues(List<String> keyValues, List<ViewColumnType> columnTypes) {

    Meta keyMeta = ViewStatusKeyBean.meta();
    BeanBuilder<? extends ViewStatusKeyBean> beanBuilder = keyMeta.builder();
    Iterator<String> keyItr = keyValues.iterator();
    Iterator<ViewColumnType> colTypeItr = columnTypes.iterator();
   
    while (keyItr.hasNext() && colTypeItr.hasNext()) {
      beanBuilder.set(colTypeItr.next().getMetaProperty(), keyItr.next());
View Full Code Here

Examples of com.socrata.model.Meta

        final Nomination  nomination = new Nomination(UUID.randomUUID().toString(), "Test Agent", "Department of Testing", "https://sandbox.demo.socrata.com", nominationDate, null, false, false);
        final Nomination  nominationUpdate = new Nomination(nomination.getName(), "Test Agent", "Department of Testing", "https://sandbox.demo.socrata.com", nominationDate, voteDate, true, false);

        final Soda2Producer producer= createProducer();

        final Meta objectMetadata = producer.addObject(UPDATE_DATA_SET, nomination);
        final Nomination createdNomination = producer.getById(UPDATE_DATA_SET, objectMetadata.getId(), Nomination.class);
        TestCase.assertTrue(EqualsBuilder.reflectionEquals(nomination, createdNomination));

        final Meta updateMeta= producer.update(UPDATE_DATA_SET, objectMetadata.getId(), nominationUpdate);
        TestCase.assertEquals(objectMetadata.getId(), updateMeta.getId());

        TestCase.assertEquals(objectMetadata.getCreatedAt(), updateMeta.getCreatedAt());
        TestCase.assertEquals(objectMetadata.getCreatedMeta(), updateMeta.getCreatedMeta());
        TestCase.assertFalse(objectMetadata.getCreatedAt().after(updateMeta.getUpdatedAt()));

        final Nomination updatedNomination = producer.getById(UPDATE_DATA_SET, objectMetadata.getId(), Nomination.class);

        //UNDONE(willpugh) -- Turn back on when bug 7102 is fixed.
        //TestCase.assertTrue(EqualsBuilder.reflectionEquals(nominationUpdate, updatedNomination));
View Full Code Here

Examples of edu.mayo.bmi.guoqian.claml.Meta

          Identifier identifier = factory.createIdentifier();
          identifier.setAuthority("WHO");
          identifier.setUid("id-to-be-added-later");
          claml.getIdentifier().add(identifier);
         
          Meta meta = factory.createMeta();
          meta.setName("lang");
          meta.setValue("en");
          claml.getMeta().add(meta);

          Meta metaTop = factory.createMeta();
          metaTop.setName("TopLevelSort");
          metaTop.setValue("I II III IV V VI VII VIII IX X XI XII XIII XIV XV XVI XVII XVIII XIX XX XXI XXII");
          claml.getMeta().add(metaTop)
         
         
          ClassKinds clsKinds = factory.createClassKinds();
      ClassKind cKind1 = factory.createClassKind();
      cKind1.setName("chapter");
      clsKinds.getClassKind().add(cKind1);
      ClassKind cKind2 = factory.createClassKind();
      cKind2.setName("block");
      clsKinds.getClassKind().add(cKind2);
      ClassKind cKind3 = factory.createClassKind();
      cKind3.setName("category");
      clsKinds.getClassKind().add(cKind3);
      //ClassKind cKind4 = factory.createClassKind();
      //cKind4.setName("modifiedcategory");
      //clsKinds.getClassKind().add(cKind4);

      claml.setClassKinds(clsKinds);
         
          /*
          UsageKinds useKinds = factory.createUsageKinds();
          UsageKind useKind = factory.createUsageKind();
          useKind.setMark("!");
          useKind.setName("optional");
          useKinds.getUsageKind().add(useKind);
          claml.setUsageKinds(useKinds);
          */
          RubricKinds rubKinds = factory.createRubricKinds();
        
          //preferred
          RubricKind rKind1 = factory.createRubricKind();
          rKind1.setInherited("false");
          rKind1.setName(icdContentModel.getPreferredProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind1);
         
          //synonym property
          /*
          RubricKind rKind1_1 = factory.createRubricKind();
          rKind1_1.setInherited("false");
          rKind1_1.setName(icdContentModel.getSynonymProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind1_1);
          */
         
          //definition property
          RubricKind rKind1_2 = factory.createRubricKind();
          rKind1_2.setInherited("false");
          rKind1_2.setName(icdContentModel.getDefinitionProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind1_2);
         
          //prefilled definition property
          /*
          RubricKind rKind1_3 = factory.createRubricKind();
          rKind1_3.setInherited("false");
          rKind1_3.setName(icdContentModel.getPrefilledDefinitionProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind1_3);
          */
         
          //inclusion
          RubricKind rKind2 = factory.createRubricKind();
          rKind2.setInherited("false");
          rKind2.setName(icdContentModel.getInclusionProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind2);
         
          //exclusion
          RubricKind rKind3 = factory.createRubricKind();
          rKind3.setInherited("false");
          rKind3.setName(icdContentModel.getExclusionProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind3);
         
          //note property
          RubricKind rKind5 = factory.createRubricKind();
          rKind5.setInherited("false");
          rKind5.setName(icdContentModel.getNoteProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind5);
         
          //MorbidityParent property
          /*
          RubricKind rKind6 = factory.createRubricKind();
          rKind6.setInherited("false");
          rKind6.setName(icdContentModel.getMorbidityParentProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind6);
          */
         
          //coding hint property
          RubricKind rKind7 = factory.createRubricKind();
          rKind7.setInherited("false");
          rKind7.setName(icdContentModel.getCodingHintProperty().getBrowserText());
          rubKinds.getRubricKind().add(rKind7);
         

         
          //icd Reference property
          //RubricKind rKind9 = factory.createRubricKind();
          //rKind9.setInherited("false");
          //rKind9.setName(icdContentModel.getIcdRefProperty().getBrowserText());
          //rubKinds.getRubricKind().add(rKind9);
         
       
          //set rubric kinds
          claml.setRubricKinds(rubKinds);
         
         
         
         
          //iterating icd categories
         
          int index = 1;
          for(Iterator it = icdCategories.iterator(); it.hasNext();){
           
            RDFSNamedClass icdCategory = (RDFSNamedClass) it.next();
           
            if(this.mapGeneratedCodes.containsKey(icdCategory)){ //only those categories with codes
     
            //is included?
            //if(this.isIncludedInLinearizationForType(icdCategory, linearizationType)){
           
           
              //RDFSNamedClass icdCategory = icdContentModel.getICDCategory("http://who.int/icd#I82.0");
              //System.out.println("Displayed as in the tree: " + icdCategory.getBrowserText());
           
              //System.out.println(index++ + "|" + icdCategory.getBrowserText());
           
              edu.mayo.bmi.guoqian.claml.Class cls = factory.createClass();

              /*
              //get original code, if not availabel it is "TBD"
              String classCode = getClassCode(icdCategory);
             
              //if the code is "TBD", then find it from generated codes
              if(classCode.equals("TBD")){
                String generatedCode = (String)this.mapGeneratedCodes.get(icdCategory);
                if(generatedCode != null){
                  classCode = generatedCode;
                }else{// in case, no code generated
                  System.out.println("Code not generated for:" + icdCategory.getBrowserText());
                }
              }
              */
             
              String classCode = (String) this.mapGeneratedCodes.get(icdCategory);
             
              cls.setCode(classCode);
             
             
              String cKindName = getClassKind(icdCategory);
             
            ClassKind cKind = factory.createClassKind();
            cKind.setName(cKindName);
            cls.setKind(cKind);
           
           
            //meta icat id
                Meta metaICatId = factory.createMeta();
                metaICatId.setName("iCatID");
                metaICatId.setValue(icdCategory.getName());
                cls.getMeta().add(metaICatId);

           
/*           
            //superclass codes    
View Full Code Here

Examples of ek.skychain.uldinfo.ULDInfo.Meta

          irmtabUrno = irmtabRef;
           
           ULDInfo inputUldInfo = (ULDInfo) _um.unmarshal(new StreamSource(new StringReader(message)));
          
           FlightID inputFlightID = inputUldInfo.getFlightID();
           Meta inputMeta = inputUldInfo.getMeta();
           ULDDetails inputUldDetails = inputUldInfo.getULDDetails();
          
           if(existsMandatory(inputFlightID, inputMeta, inputUldDetails)){
          LOG.error("Compulsory uld info are empty. Message dropped. ");
          addExptInfo(EMAND.name(), "");
          return false;
        }
          
           if(!inputFlightID.getCarrierCode().contains(EK)) {
             LOG.error("Processing performs only for EK flight. Message will be dropped.");
             addExptInfo(EWALC.name(), inputFlightID.getCarrierCode());
             return false;
           }
          
           if(!inputMeta.getType().equalsIgnoreCase(ULD_INFO)) {
             LOG.warn("Processing performs only for ULDInfo. Message will be dropped.");
             addExptInfo(EWVAL.name(), inputMeta.getType());
             return false;
           }
          
           if(!OP_TYPE.valueList().contains(inputMeta.getSubtype().trim().toUpperCase())) {
             LOG.warn("Processing performs only for INS, UPD, DEL sub type. Message will be dropped.");
             addExptInfo(EENUM.name(), inputMeta.getSubtype());
             return false;
           }
          
           if(!inputMeta.getSource().equalsIgnoreCase(SKY_CHAIN)) {
             LOG.error("Processing performs only for SkyChain. Message will be dropped.");
             addExptInfo(EWVAL.name(), inputMeta.getSource());
             return false;
           }
          
          
        String flightNumber = String
            .format("%s %s%s", inputFlightID.getCarrierCode(),
                formatCedaFltn(inputFlightID
                    .getFlightNumber()), isNullOrEmptyStr(inputFlightID
                    .getFlightSuffix()) ? "" : inputFlightID
                        .getFlightSuffix());
       
        String flightDate = formatFlightDate(inputFlightID.getFlightDate());
       
        if(isNullOrEmptyStr(flightDate)) {
          LOG.error("Flight Date provided format parsing error is encountered. Message will be dropped.");
          addExptInfo(EWVAL.name(), inputFlightID.getFlightDate());
             return false;
        }
       
        LOG.debug("Formed UFIS Flight Number, Flight Date - {}, {}", flightNumber, flightDate);
       
        EntDbAfttab entDbAfttab = afttabBean.findFlightForUldDept(flightNumber, flightDate);
       
        LOG.debug("Flight Search by Departure is done.");
       
        if(entDbAfttab == null) {
          entDbAfttab = afttabBean.findFlightForUldOrg(flightNumber, flightDate);
        }
       
        LOG.debug("Flight Search by Non-Departure is done as the search by Departure is not found.");
       
        if(entDbAfttab == null) {
          LOG.error("Flight provided cannot be found. Message will be dropped.");
          addExptInfo(EnumExceptionCodes.ENOFL.name(), String.format("%s (%s)", flightNumber, flightDate));
             return false;
        }
          
        LOG.debug("DB - URNO : {}, FLDA : {}, Flight Date Match : {}", entDbAfttab.getUrno(), entDbAfttab.getFlda(), flightDate.equals(entDbAfttab.getFlda()));
       
        boolean isDel = inputMeta.getSubtype().equalsIgnoreCase(OP_TYPE.DEL.name());
        HpUfisAppConstants.UfisASCommands cmdForBroadcasting;
       
        EntDbLoadUld oldLoadUld = null;
        EntDbLoadUld loadUld = (EntDbLoadUld) dLLoadUldBean.getUldNum(entDbAfttab.getUrno(), inputUldDetails.getULDNumber());
       
View Full Code Here

Examples of ek.skychain.uws.Cargo.Meta

      String convertToXml = blGroovyHandlerBean.convertToXml(message);
      LOG.debug("Converted Xml by Groovy :\n{}", convertToXml);
     
      Cargo inputUWSInfo = (Cargo) _um.unmarshal(new StreamSource(new StringReader(convertToXml)));
     
      Meta meta = inputUWSInfo.getMeta();
     
      UWSInfo uwsInfo = inputUWSInfo.getUWSInfo();
     
      if(existsMandatory(meta, uwsInfo)) {
        LOG.warn("Compulsory uws info are empty. Message will be dropped.");
        addExptInfo(EMAND.name(), "");
        return false;
      }
     
      if(!meta.getType().equalsIgnoreCase(UWS)) {
        LOG.warn("Processing performs only for UWS. Message will be dropped.");
        addExptInfo(EWVAL.name(), meta.getType());
           return false;
      }

      if(!OP_TYPE.UPD.name().equalsIgnoreCase(meta.getSubtype().trim())) {
        LOG.warn("Processing performs only for UPD sub type. Message will be dropped.");
        addExptInfo(EENUM.name(), meta.getSubtype());
        return false;
      }
     
      if(!meta.getSource().equalsIgnoreCase(SKY_CHAIN)) {
        LOG.error("Processing performs only for SkyChain. Message will be dropped.");
           addExptInfo(EWVAL.name(), meta.getSource());
           return false;
      }
     
      FlightInfo inputFlightID = uwsInfo.getFlightInfo();
      String flightNumber = formatFlightNo(inputFlightID.getFlightNumber());
View Full Code Here

Examples of org.apache.bval.model.Meta

     * @throws InvocationTargetException
     */
    private void addXmlConstraints(Class<?> beanClass, MetaBean metabean) throws IllegalAccessException,
        InvocationTargetException {
        for (final MetaConstraint<?, ? extends Annotation> metaConstraint : factoryContext.getFactory().getMetaConstraints(beanClass)) {
            Meta meta;
            AccessStrategy access = metaConstraint.getAccessStrategy();
            boolean create = false;
            if (access == null) { // class level
                meta = null;
            } else if (access.getElementType() == ElementType.METHOD && !metaConstraint.getMember().getName().startsWith("get")) { // TODO: better getter test
View Full Code Here

Examples of org.apache.ecs.html.Meta

     * @return A TemplatePageAttributes (self).
     */
    public TemplatePageAttributes setKeywords(String keywords)
    {
        data.getPage().getHead().addElement(
                new Meta().setName("keywords").setContent(keywords));
        return this;
    }
View Full Code Here

Examples of org.apache.ecs.html.Meta

     * @return A TemplatePageAttributes (self).
     */
    public TemplatePageAttributes setHttpEquiv(String httpEquiv, String content)
    {
        data.getPage().getHead().addElement(
                new Meta().setHttpEquiv(httpEquiv).setContent(content));
        return this;
    }
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.