org.apache.tika.metadata.Property.getSecondaryExtractProperties()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.apache.tika.metadata.Property.getSecondaryExtractProperties()方法的一些代码示例,展示了Property.getSecondaryExtractProperties()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.getSecondaryExtractProperties()方法的具体详情如下:
包路径:org.apache.tika.metadata.Property
类名称:Property
方法名:getSecondaryExtractProperties

Property.getSecondaryExtractProperties介绍

[英]Gets the secondary properties for a composite property
[中]获取复合属性的辅助属性

代码示例

代码示例来源:origin: apache/tika

/**
 * Sets the values of the identified metadata property.
 *
 * @since Apache Tika 1.2
 * @param property property definition
 * @param values    property values
 */
public void set(Property property, String[] values) {
  if (property == null) {
    throw new NullPointerException("property must not be null");
  }
  if (property.getPropertyType() == PropertyType.COMPOSITE) {
    set(property.getPrimaryProperty(), values);
    if (property.getSecondaryExtractProperties() != null) {
      for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
        set(secondaryExtractProperty, values);
      }
    }
  } else {
    metadata.put(property.getName(), values);
  }
}

代码示例来源:origin: apache/tika

/**
 * Sets the value of the identified metadata property.
 *
 * @since Apache Tika 0.7
 * @param property property definition
 * @param value    property value
 */
public void set(Property property, String value) {
  if (property == null) {
    throw new NullPointerException("property must not be null");
  }
  if (property.getPropertyType() == PropertyType.COMPOSITE) {
    set(property.getPrimaryProperty(), value);
    if (property.getSecondaryExtractProperties() != null) {
      for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
        set(secondaryExtractProperty, value);
      }
    }
  } else {
    set(property.getName(), value);
  }
}

代码示例来源:origin: apache/tika

if (property.getSecondaryExtractProperties() != null) {
  for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
    add(secondaryExtractProperty, value);

代码示例来源:origin: org.apache.tika/tika-core

/**
 * Sets the values of the identified metadata property.
 *
 * @since Apache Tika 1.2
 * @param property property definition
 * @param values    property values
 */
public void set(Property property, String[] values) {
  if (property == null) {
    throw new NullPointerException("property must not be null");
  }
  if (property.getPropertyType() == PropertyType.COMPOSITE) {
    set(property.getPrimaryProperty(), values);
    if (property.getSecondaryExtractProperties() != null) {
      for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
        set(secondaryExtractProperty, values);
      }
    }
  } else {
    metadata.put(property.getName(), values);
  }
}

代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-core

/**
 * Sets the values of the identified metadata property.
 *
 * @since Apache Tika 1.2
 * @param property property definition
 * @param values    property values
 */
public void set(Property property, String[] values) {
  if (property == null) {
    throw new NullPointerException("property must not be null");
  }
  if (property.getPropertyType() == PropertyType.COMPOSITE) {
    set(property.getPrimaryProperty(), values);
    if (property.getSecondaryExtractProperties() != null) {
      for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
        set(secondaryExtractProperty, values);
      }
    }
  } else {
    metadata.put(property.getName(), values);
  }
}

代码示例来源:origin: org.apache.tika/tika-core

/**
 * Sets the value of the identified metadata property.
 *
 * @since Apache Tika 0.7
 * @param property property definition
 * @param value    property value
 */
public void set(Property property, String value) {
  if (property == null) {
    throw new NullPointerException("property must not be null");
  }
  if (property.getPropertyType() == PropertyType.COMPOSITE) {
    set(property.getPrimaryProperty(), value);
    if (property.getSecondaryExtractProperties() != null) {
      for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
        set(secondaryExtractProperty, value);
      }
    }
  } else {
    set(property.getName(), value);
  }
}

代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-core

/**
 * Sets the value of the identified metadata property.
 *
 * @since Apache Tika 0.7
 * @param property property definition
 * @param value    property value
 */
public void set(Property property, String value) {
  if (property == null) {
    throw new NullPointerException("property must not be null");
  }
  if (property.getPropertyType() == PropertyType.COMPOSITE) {
    set(property.getPrimaryProperty(), value);
    if (property.getSecondaryExtractProperties() != null) {
      for (Property secondaryExtractProperty : property.getSecondaryExtractProperties()) {
        set(secondaryExtractProperty, value);
      }
    }
  } else {
    set(property.getName(), value);
  }
}

相关文章