Examples of MetaData


Examples of LONI.tree.module.metadata.Metadata

 
    dataModule.setDirSource(false);
    dataModule.setDirDump(false);
    dataModule.setUseDirSourceFilters(false);
    dataModule.setRecursive(false);
    dataModule.setMetadata(new Metadata(new Data()));
    dataModule.getFileTypes().addFileType(new FileType(TavernaType,"",""));
    // Figure out whether the data module will have inputs or outputs by going through the
    // DataLinks and figuring out if one of their source or sink names matches the
    // ports name. Then you can generate inputs or outputs for the data module depending
    // on what you need
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.Metadata

  @SuppressWarnings("unchecked")
  public static BaseMethodBinding bindMethod(Method theMethod, FhirContext theContext, Object theProvider) {
    Read read = theMethod.getAnnotation(Read.class);
    Search search = theMethod.getAnnotation(Search.class);
    Metadata conformance = theMethod.getAnnotation(Metadata.class);
    Create create = theMethod.getAnnotation(Create.class);
    Update update = theMethod.getAnnotation(Update.class);
    Delete delete = theMethod.getAnnotation(Delete.class);
    History history = theMethod.getAnnotation(History.class);
    // ** if you add another annotation above, also add it to the next line:
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.MetaData

     * @param msgType New value of property metaData.
     *
     * @throws ProfileException
     */
    public void setMetaData(MetaData metaData) throws ProfileException {
        MetaData oldMetaData = this.metaData;
        try {
            vetoableChangeSupport.fireVetoableChange("metaData", oldMetaData, metaData);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
View Full Code Here

Examples of ch.ralscha.extdirectspring.bean.MetaData

  @ExtDirectMethod(value = ExtDirectMethodType.STORE_READ)
  public ExtDirectStoreResult<Row> methodMetadata(ExtDirectStoreReadRequest request) {
    ExtDirectStoreResult<Row> response = createExtDirectStoreResult(request, "");

    if (request.getStart() == null && request.getSort() == null) {
      MetaData metaData = new MetaData();

      metaData.setPagingParameter(0, 50);
      metaData.setSortInfo("name", SortDirection.ASCENDING);

      Field field = new Field("id");
      field.setType(DataType.INTEGER);
      field.addCustomProperty("header", "ID");
      field.addCustomProperty("width", 20);
      field.addCustomProperty("sortable", Boolean.TRUE);
      field.addCustomProperty("resizable", Boolean.TRUE);
      field.addCustomProperty("hideable", Boolean.FALSE);
      metaData.addField(field);

      field = new Field("name");
      field.setType(DataType.STRING);
      field.addCustomProperty("header", "Name");
      field.addCustomProperty("width", 70);
      field.addCustomProperty("sortable", Boolean.TRUE);
      field.addCustomProperty("resizable", Boolean.TRUE);
      field.addCustomProperty("hideable", Boolean.FALSE);
      metaData.addField(field);

      field = new Field("admin");
      field.setType(DataType.BOOLEAN);
      field.addCustomProperty("header", "Administrator");
      field.addCustomProperty("width", 30);
      field.addCustomProperty("sortable", Boolean.TRUE);
      field.addCustomProperty("resizable", Boolean.TRUE);
      field.addCustomProperty("hideable", Boolean.TRUE);
      metaData.addField(field);

      field = new Field("salary");
      field.setType(DataType.FLOAT);
      field.addCustomProperty("header", "Salary");
      field.addCustomProperty("width", 50);
      field.addCustomProperty("sortable", Boolean.FALSE);
      field.addCustomProperty("resizable", Boolean.TRUE);
      field.addCustomProperty("hideable", Boolean.TRUE);
      metaData.addField(field);

      response.setMetaData(metaData);
    }

    return response;
View Full Code Here

Examples of com.adobe.ac.pmd.nodes.MetaData

    * com.adobe.ac.pmd.nodes.IMetaDataListHolder#add(com.adobe.ac.pmd.nodes.
    * IMetaData)
    */
   public void add( final IMetaData metaData )
   {
      final MetaData metaDataImpl = MetaData.create( metaData.getName() );

      if ( !metaDataList.containsKey( metaDataImpl ) )
      {
         metaDataList.put( metaDataImpl,
                           new ArrayList< IMetaData >() );
View Full Code Here

Examples of com.datastax.driver.core.Metadata

        this.sendToDaemon = sendToDaemon;
    }

    public SmartThriftClient getSmartThriftClient()
    {
        Metadata metadata = getJavaDriverClient().getCluster().getMetadata();
        return new SmartThriftClient(this, schema.keyspace, metadata);
    }
View Full Code Here

Examples of com.datastax.driver.core.Responses.Result.Rows.Metadata

                    ByteBuffer state = null;
                    if (flags.contains(Flag.HAS_MORE_PAGES))
                        state = CBUtil.readValue(body);

                    if (flags.contains(Flag.NO_METADATA))
                        return new Metadata(columnCount, null, state);

                    boolean globalTablesSpec = flags.contains(Flag.GLOBAL_TABLES_SPEC);

                    String globalKsName = null;
                    String globalCfName = null;
                    if (globalTablesSpec) {
                        globalKsName = CBUtil.readString(body);
                        globalCfName = CBUtil.readString(body);
                    }

                    // metadata (names/types)
                    ColumnDefinitions.Definition[] defs = new ColumnDefinitions.Definition[columnCount];
                    for (int i = 0; i < columnCount; i++) {
                        String ksName = globalTablesSpec ? globalKsName : CBUtil.readString(body);
                        String cfName = globalTablesSpec ? globalCfName : CBUtil.readString(body);
                        String name = CBUtil.readString(body);
                        DataType type = DataType.decode(body);
                        defs[i] = new ColumnDefinitions.Definition(ksName, cfName, name, type);
                    }

                    return new Metadata(columnCount, new ColumnDefinitions(defs), state);
                }
View Full Code Here

Examples of com.dotcms.repackage.org.apache.tika.metadata.Metadata

    // store content metadata on disk
        File contentM=APILocator.getFileAssetAPI().getContentMetadataFile(inode);

    Tika t = new Tika();
    Metadata met = new Metadata();
    t.setMaxStringLength(-1);
    Reader fulltext = null;
    InputStream is = null;
    // if the limit is not "unlimited"
    // I can use the faster parseToString
    try {

      if(forceMemory){
        // no worry about the limit and less time to process.
        String content = t.parseToString(new FileInputStream(binFile), met);
        metaMap = new HashMap<String, String>();
        for (int i = 0; i < met.names().length; i++) {
          String name = met.names()[i];
          if (UtilMethods.isSet(name) && met.get(name) != null) {
            // we will want to normalize our metadata for searching
            String[] x = translateKey(name);
            for (String y : x)
              metaMap.put(y, met.get(name));
          }
        }
        metaMap.put(FileAssetAPI.CONTENT_FIELD, content);
      }
      else {


        is = TikaInputStream.get(binFile);
        fulltext = t.parse(is, met);
        metaMap = new HashMap<String, String>();
        for (int i = 0; i < met.names().length; i++) {
          String name = met.names()[i];
          if (UtilMethods.isSet(name) && met.get(name) != null) {
            // we will want to normalize our metadata for searching
            String[] x = translateKey(name);
            for (String y : x)
              metaMap.put(y, met.get(name));
          }
        }

        if(!contentM.exists() && contentM.getParentFile().mkdirs() && contentM.createNewFile()) {
          OutputStream out=new FileOutputStream(contentM);
View Full Code Here

Examples of com.dotcms.repackage.org.elasticsearch.cluster.metadata.MetaData

            Client client=new ESClient().getClient();
            ClusterStateRequest clusterStateRequest = Requests.clusterStateRequest()
                    .filterRoutingTable(true)
                    .filterNodes(true)
                    .filteredIndices(indexNames);
            MetaData md=client.admin().cluster().state(clusterStateRequest)
                                                .actionGet(30000).getState().metaData();

            for(IndexMetaData imd : md)
                for(AliasMetaData amd : imd.aliases().values())
                    alias.put(imd.index(), amd.alias());
View Full Code Here

Examples of com.drew.metadata.Metadata

       
  }
 
  protected static void showEXIF(File jpegFile) throws Exception{

    Metadata metadata = JpegMetadataReader.readMetadata(jpegFile);
    Directory exif = metadata.getDirectory(ExifDirectory.class);
    int orie = exif.getInt(ExifDirectory.TAG_ORIENTATION);
    if(orie!=1)
      System.out.println(jpegFile.getName()+":"+orie);
   
      Iterator tags = exif.getTagIterator();
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.