本文整理汇总了Java中org.apache.chemistry.opencmis.commons.data.PropertyString类的典型用法代码示例。如果您正苦于以下问题:Java PropertyString类的具体用法?Java PropertyString怎么用?Java PropertyString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyString类属于org.apache.chemistry.opencmis.commons.data包,在下文中一共展示了PropertyString类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getStringProperty
点赞 3
import org.apache.chemistry.opencmis.commons.data.PropertyString; //导入依赖的package包/类
/**
* Returns the value of the given property if it exists and is of the
* correct type.
*/
public String getStringProperty(Properties properties, String propertyId)
{
if ((properties == null) || (properties.getProperties() == null))
{
return null;
}
PropertyData<?> property = properties.getProperties().get(propertyId);
if (!(property instanceof PropertyString))
{
return null;
}
return ((PropertyString) property).getFirstValue();
}
开发者ID:Alfresco,
项目名称:alfresco-repository,
代码行数:20,
代码来源:CMISConnector.java
示例2: getStringProperty
点赞 2
import org.apache.chemistry.opencmis.commons.data.PropertyString; //导入依赖的package包/类
/**
* Returns the first value of a string property.
*/
public static String getStringProperty(Properties properties, String name) {
PropertyData<?> property = properties.getProperties().get(name);
if (!(property instanceof PropertyString)) {
return null;
}
return ((PropertyString) property).getFirstValue();
}
开发者ID:cmisdocs,
项目名称:ServerDevelopmentGuideV2,
代码行数:12,
代码来源:FileBridgeUtils.java
示例3: getStringProperty
点赞 2
import org.apache.chemistry.opencmis.commons.data.PropertyString; //导入依赖的package包/类
/**
* Retrieve a string value.
*
* @param properties
* @param name the name of the value to retrieve
* @return the first value of the given <code>name</code> or <code>null</code> if either
* these are no string properties or no property of <code>name</code> exists.
*/
public static String getStringProperty(Properties properties, String name) {
PropertyData<?> property = properties.getProperties().get(name);
if (!(property instanceof PropertyString)) {
return null;
}
return ((PropertyString) property).getFirstValue();
}
开发者ID:wso2,
项目名称:carbon-registry,
代码行数:17,
代码来源:PropertyHelper.java