|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.object.BoundPropertiesContentProvider
com.webmethods.caf.faces.data.export.AtomFeedExportProvider
public class AtomFeedExportProvider
Provider, specialized for atom data, which limits a wrapped provider to exposing a specified set of properties; the properties are specified via binding expressions. The specialization includes optionally generating author, links, base uri, and language info.
Consumers should specify at least the following properties:
Consumers may also specify following standard atom properties:
Field Summary | |
---|---|
protected Object[] |
m_aggregatePropertyKeys
Aggregate bound properties keys and autogenerated keys. |
protected Map |
m_autogeneratedValues
Autogenerated property values cache. |
Fields inherited from class com.webmethods.caf.faces.data.object.BoundPropertiesContentProvider |
---|
m_keys, m_provider, m_var |
Constructor Summary | |
---|---|
AtomFeedExportProvider()
Blank provider. |
|
AtomFeedExportProvider(IContentProvider provider,
Map keys,
String var)
Provider limiting specified provider to specified keys. |
Method Summary | |
---|---|
protected Map |
getAutogeneratedValues()
|
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider. |
Class |
getType(Object propertyKey)
Returns java type of the given property |
Object |
getValue(Object propertyKey)
Returns value of the given property |
boolean |
hasProperty(Object propertyKey)
Checks if the given property is supported by this content provider |
boolean |
isReadOnly(Object propertyKey)
Returns true if the given property is readonly. |
void |
setValue(Object propertyKey,
Object value)
Sets new value of the given property |
Methods inherited from class com.webmethods.caf.faces.data.object.BoundPropertiesContentProvider |
---|
createDefaultKeys, getKeys, getProvider, getVar, setKeys, setProvider, setVar, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object[] m_aggregatePropertyKeys
protected Map m_autogeneratedValues
Constructor Detail |
---|
public AtomFeedExportProvider()
BoundPropertiesContentProvider.setProvider(com.webmethods.caf.faces.data.IContentProvider)
, BoundPropertiesContentProvider.setKeys(java.util.Map)
, and BoundPropertiesContentProvider.setVar(java.lang.String)
.
public AtomFeedExportProvider(IContentProvider provider, Map keys, String var)
Method Detail |
---|
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.
getPropertyKeys
in interface IContentProvider
getPropertyKeys
in class BoundPropertiesContentProvider
String
or Integer
public Class getType(Object propertyKey) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
getType
in class BoundPropertiesContentProvider
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic Object getValue(Object propertyKey) throws EvaluationException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
getValue
in class BoundPropertiesContentProvider
propertyKey
- the property key of type String
or Integer
null
EvaluationException
- if error during property evaluation
PropertyNotFoundException
- if property is not supportedpublic boolean hasProperty(Object propertyKey)
IContentProvider
hasProperty
in interface IContentProvider
hasProperty
in class BoundPropertiesContentProvider
propertyKey
- property key of type String
or Integer
true
if property is supportedpublic boolean isReadOnly(Object propertyKey) throws EvaluationException, PropertyNotFoundException
IUpdateableContentProvider
Returns true if the given property is readonly. If it is readonly, IUpdateableContentProvider.setValue(Object, Object)
will
definitely fail.
isReadOnly
in interface IUpdateableContentProvider
isReadOnly
in class BoundPropertiesContentProvider
propertyKey
- property key of type String
or Integer
EvaluationException
PropertyNotFoundException
public void setValue(Object propertyKey, Object value) throws EvaluationException, PropertyNotFoundException
IUpdateableContentProvider
Sets new value of the given property
setValue
in interface IUpdateableContentProvider
setValue
in class BoundPropertiesContentProvider
propertyKey
- property key of type String
or Integer
value
- new property value
EvaluationException
- if error happens during property assigment
PropertyNotFoundException
- if property is not foundprotected Map getAutogeneratedValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |