|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.javabean.dynamic.BeanMetadata
public class BeanMetadata
Bean metadata.
This class is used to hold additional data about a model bean instance.
| Constructor Summary | |
|---|---|
BeanMetadata(Object bean)
Public constructor. |
|
| Method Summary | |
|---|---|
Object |
getBean()
Get the bean instance with which this metadata instance is associated. |
org.milyn.delivery.Fragment |
getCreateSource()
Get the source Fragment that created the bean instance. |
String |
getNamespace()
Get the XML namespace with which the associated bean instance is associated. |
String |
getNamespacePrefix()
Get the XML namespace prefix. |
List<org.milyn.delivery.Fragment> |
getPopulateSources()
Get the "population" fragments that contributed data to the bean instance
(set data on it's properties). |
String |
getPreText()
Get the "pre text" associated with the bean. |
Map<Object,Object> |
getProperties()
Get user properties/metadata associated with the bean. |
BeanWriter |
getWriter()
Get the BeanWriter instance to be used to serialize the bean instance. |
BeanMetadata |
setCreateSource(org.milyn.delivery.Fragment createSource)
Set the source Fragment that created the bean instance. |
BeanMetadata |
setNamespace(String namespace)
Set the XML namespace with which the associated bean instance is associated. |
BeanMetadata |
setNamespacePrefix(String namespacePrefix)
Set the XML namespace prefix. |
BeanMetadata |
setPreText(String preText)
Set the "pre text" associated with the bean. |
BeanMetadata |
setWriter(BeanWriter writer)
Set the BeanWriter instance to be used to serialize the bean instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanMetadata(Object bean)
bean - The bean instance.| Method Detail |
|---|
public Object getBean()
public String getNamespace()
setNamespace(String),
setNamespacePrefix(String),
getNamespacePrefix()public BeanMetadata setNamespace(String namespace)
registered manually on the Model, the
default namepsace is
set (can be reset).
namespace - The XML namespace with which the bean instance is associated.
this BeanMetadata instance.getNamespace(),
setNamespacePrefix(String),
getNamespacePrefix()public String getNamespacePrefix()
setNamespace(String),
getNamespace(),
setNamespacePrefix(String)public BeanMetadata setNamespacePrefix(String namespacePrefix)
registered manually on the Model, the
default namepsace prefix is
set (can be reset).
namespacePrefix - The XML namespace prefix.
this BeanMetadata instance.setNamespace(String),
getNamespace(),
getNamespacePrefix()public String getPreText()
Model is created/read from a source XML message,
the different fragments in the source message are responsible for triggering creation of beans that go into
the Model instance. The "pre text" of a bean is the XML whitespace, comments, CDATA and non contributing
XML that precedes the XML fragment that created the bean. This is an ad-hoc mechanism for maintaining user comments
etc.
public BeanMetadata setPreText(String preText)
Model is created/read from a source XML message,
the different fragments in the source message are responsible for triggering creation of beans that go into
the Model instance. The "pre text" of a bean is the XML whitespace, comments, CDATA and non contributing
XML that precedes the XML fragment that created the bean. This is an ad-hoc mechanism for maintaining user comments
etc.
preText - The "pre text".
this BeanMetadata instance.public BeanWriter getWriter()
BeanWriter instance to be used to serialize the bean instance.
BeanWriter instance to be used to serialize the bean instance, or null if
no BeanWriter instance is configured for the bean type and namespace combination.public BeanMetadata setWriter(BeanWriter writer)
BeanWriter instance to be used to serialize the bean instance.
writer - The BeanWriter instance to be used to serialize the bean instance.
this BeanMetadata instance.public BeanMetadata setCreateSource(org.milyn.delivery.Fragment createSource)
Fragment that created the bean instance.
createSource - The source fragment.
this BeanMetadata instance.public org.milyn.delivery.Fragment getCreateSource()
Fragment that created the bean instance.
public List<org.milyn.delivery.Fragment> getPopulateSources()
fragments that contributed data to the bean instance
(set data on it's properties).
public Map<Object,Object> getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||