Examples of MetaData


Examples of org.apache.tika.metadata.Metadata

    public void execute(InputStream in, GraphPropertyWorkData data) throws Exception {
        String mimeType = (String) data.getProperty().getMetadata().get(LumifyProperties.MIME_TYPE.getPropertyName());
        checkNotNull(mimeType, LumifyProperties.MIME_TYPE.getPropertyName() + " is a required metadata field");

        Charset charset = Charset.forName("UTF-8");
        Metadata metadata = new Metadata();
        metadata.set(Metadata.CONTENT_TYPE, mimeType);
        String text = extractText(in, mimeType, metadata);

        ExistingElementMutation<Vertex> m = data.getElement().prepareMutation();

        // TODO set("url", extractUrl(metadata));
View Full Code Here

Examples of org.apache.xindice.core.meta.MetaData

    {
        Collection mcol = getMetaCollection(collection, true);

        if( null != mcol )
        {
            MetaData meta = (MetaData)mcol.getObject(COLLECTION_META_DATA);
            if ( meta == null )
                meta = new MetaData();

            if( meta.getType() == MetaData.UNKNOWN )
                meta.setType(MetaData.COLLECTION);
            meta.setOwner(collection.getCanonicalName());
            meta.setDirty(false);
            return meta;
        }
        return null;
    }
View Full Code Here

Examples of org.apache.xmlgraphics.xmp.Metadata

            renderBookmarkItem(bookmarkItem.getSubData(i), pdfOutline);
        }
    }

    private void renderXMPMetadata(XMPMetadata metadata) {
        Metadata docXMP = metadata.getMetadata();
        Metadata fopXMP = PDFMetadata.createXMPFromUserAgent(pdfDoc);
        //Merge FOP's own metadata into the one from the XSL-FO document
        fopXMP.mergeInto(docXMP);
        XMPBasicAdapter xmpBasic = XMPBasicSchema.getAdapter(docXMP);
        //Metadata was changed so update metadata date
        xmpBasic.setMetadataDate(new java.util.Date());
        PDFMetadata.updateInfoFromMetadata(docXMP, pdfDoc.getInfo());
View Full Code Here

Examples of org.astrogrid.samp.Metadata

        makeFrameLayout(showNavigator, imageFileOrUrl);


        if (useSamp || usePlastic) {
            Metadata meta = createApplicationMetadata();
            if (useSamp) {
                initSamp(meta);
            }
            if (usePlastic) {
                initPlastic(meta);
View Full Code Here

Examples of org.axonframework.common.annotation.MetaData

        for (int i = 0; i < parameterAnnotations.length; i++) {
            if (org.axonframework.domain.MetaData.class.isAssignableFrom(parameterTypes[i])) {
                extractors.add(new MetaDataExtractor(i, null));
            } else {
                Annotation[] annotations = parameterAnnotations[i];
                final MetaData metaDataAnnotation = CollectionUtils.getAnnotation(annotations, MetaData.class);
                if (metaDataAnnotation != null) {
                    extractors.add(new MetaDataExtractor(i, metaDataAnnotation.value()));
                }
            }
        }
        return extractors.toArray(new MetaDataExtractor[extractors.size()]);
    }
View Full Code Here

Examples of org.axonframework.domain.MetaData

*/
public class CommandMetaDataProviderTest {

    @Test
    public void testProvideAuditData() {
        MetaData metaData = MetaData.emptyInstance();
        GenericCommandMessage<String> message = new GenericCommandMessage<String>("command", metaData);

        Map<String, Object> actual = new CommandMetaDataProvider().provideAuditDataFor(message);
        assertSame(metaData, actual);
    }
View Full Code Here

Examples of org.chinasb.framework.core.base.search.Metadata

  public Metadata get(Class<?> klass) {
    return JPAAnnotationMetadata.getMetadata(klass);
  }

  public Metadata get(Class<?> rootEntityClass, String propertyPath) {
    Metadata md = get(rootEntityClass);
    if (propertyPath == null || propertyPath.equals("")) {
      return md;
    } else {
      for (String prop : propertyPath.split("\\.")) {
        if ("id".equals(prop)) {
          md = md.getIdType();
        } else {
          md = md.getPropertyType(prop);
        }
        if (md == null)
          throw new IllegalArgumentException("Property path '" + propertyPath + "' invalid for type " + rootEntityClass.getName());
      }
      return md;
View Full Code Here

Examples of org.datanucleus.metadata.MetaData

{
    public void testParseDefaultNamespace()
    {
        MetaDataParser parser = new MetaDataParser(
            new JDOMetaDataManager(new NucleusContext("JDO", null)),true);
        MetaData md = parser.parseMetaDataURL(getClass().getResource("/org/datanucleus/api/jdo/metadata/xml/persistence1.xml"), "persistence");
        assertNotNull(md);
    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MetaData

        if ( isAssetUpdatedInRepository( asset,
                                         repoAsset ) ) {
            return "ERR: Unable to save this asset, as it has been recently updated by [" + repoAsset.getLastContributor() + "]";
        }

        MetaData meta = asset.getMetaData();
        MetaDataMapper.getInstance().copyFromMetaData( meta,
                                                       repoAsset );

        repoAsset.updateDateEffective( dateToCalendar( meta.getDateEffective() ) );
        repoAsset.updateDateExpired( dateToCalendar( meta.getDateExpired() ) );

        repoAsset.updateCategoryList( meta.getCategories() );
        repoAsset.updateDescription( asset.getDescription() );

        ContentHandler handler = ContentManager.getHandler( repoAsset.getFormat() );
        handler.storeAssetContent( asset,
                                   repoAsset );
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Metadata

  public void addPageMeta(PageMeta pageMeta) throws WingException
    {
       
    if (active)
    {
          Metadata alert = pageMeta.addMetadata("alert","message");
         
          long time = countDownToo - System.currentTimeMillis();
          if (time > 0)
          {
            // from milliseconds to minutes
            time = time / (60*1000);
           
            alert.addContent(T_COUNTDOWN.parameterize(time));
          }

          alert.addContent(message);
    }
    }
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.