當前位置: 首頁>>代碼示例>>Java>>正文


Java PropertyReadException類代碼示例

本文整理匯總了Java中com.holonplatform.core.property.Property.PropertyReadException的典型用法代碼示例。如果您正苦於以下問題:Java PropertyReadException類的具體用法?Java PropertyReadException怎麽用?Java PropertyReadException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PropertyReadException類屬於com.holonplatform.core.property.Property包,在下文中一共展示了PropertyReadException類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: deserialize

import com.holonplatform.core.property.Property.PropertyReadException; //導入依賴的package包/類
/**
 * Deserialize given property <code>value</code> from <code>application/x-www-form-urlencoded</code> media type.
 * @param property Property to deserialize
 * @param value Value to deserialize
 * @return Deserialized value
 * @throws PropertyReadException If an error occurred
 */
@SuppressWarnings("unchecked")
private <T> T deserialize(final Property<?> property, final String value) throws PropertyReadException {
	if (value != null) {
		return (T) getDeserializer().deserialize(property, value);
	}
	return null;
}
 
開發者ID:holon-platform,項目名稱:holon-jaxrs,代碼行數:15,代碼來源:PropertyBoxFormDataProvider.java

示例2: getValueProviderPropertyValue

import com.holonplatform.core.property.Property.PropertyReadException; //導入依賴的package包/類
/**
 * Get value of a {@link VirtualProperty} using {@link PropertyValueProvider#getPropertyValue(PropertyBox)}.
 * @param <T> Property type
 * @param property Property
 * @return Property value
 * @throws PropertyAccessException Error obtaining property value from provider
 */
protected <T> T getValueProviderPropertyValue(VirtualProperty<T> property) throws PropertyAccessException {
	PropertyValueProvider<T> valueProvider = property.getValueProvider();
	if (valueProvider == null) {
		throw new PropertyReadException(property, "Property " + property
				+ " declares to provide a value using a PropertyValueProvider, but returned PropertyValueProvider is null");
	}
	try {
		return valueProvider.getPropertyValue(this);
	} catch (Exception e) {
		throw new PropertyReadException(property, e);
	}
}
 
開發者ID:holon-platform,項目名稱:holon-core,代碼行數:20,代碼來源:AbstractPropertyBox.java

示例3: deserialize

import com.holonplatform.core.property.Property.PropertyReadException; //導入依賴的package包/類
/**
 * Deserialize given property <code>value</code> from <code>application/x-www-form-urlencoded</code> media type
 * String.
 * @param property Property to deserialize the value for
 * @param value Property value
 * @return Serialized value
 * @throws PropertyReadException If an error occurred
 */
Object deserialize(final Property<?> property, final String value) throws PropertyReadException;
 
開發者ID:holon-platform,項目名稱:holon-jaxrs,代碼行數:10,代碼來源:FormDataPropertyValueDeserializer.java


注:本文中的com.holonplatform.core.property.Property.PropertyReadException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。