本文整理了Java中org.apache.tika.metadata.Property.getSecondaryExtractProperties()
方法的一些代码示例,展示了Property.getSecondaryExtractProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.getSecondaryExtractProperties()
方法的具体详情如下:
包路径:org.apache.tika.metadata.Property
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!