|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basecmp.core.persistence.util.XmlBean
Hilfsklasse die XML-Daten nach XML-Attributes-Schema parsed und die Daten über get/setXmlProperty() liefert bzw setzt. Created on 12.06.2004
| Field Summary | |
protected java.lang.String |
xmlProperties
|
| Constructor Summary | |
XmlBean()
Bean-Constructor |
|
| Method Summary | |
java.lang.String |
getDataType(java.lang.String xmlPropertyName)
Returns the java-type for the given xml-property-name, which was defined by the xml-definition at instantiation. |
java.util.Iterator |
getPropertyNames()
Return an iterator on xml property names. |
java.lang.String |
getXmlProperties()
Returns the internal xml-representation of all xml-properties. |
java.lang.Object |
getXmlProperty(java.lang.String propertyname)
Return the value of the given xml-property-name in it's natural datatype. |
XmlBeanMetaData |
init(java.lang.String xml)
Initialisiert die Bean mit der Defaut-Datendefinition, nach der XML-Properties gesetzt bzw gelesen werden können. |
XmlBeanMetaData |
initFilename(java.lang.String filename)
Liest die angegebene Datei und initialisiert die Bean durch Auruf von init(String xml). |
boolean |
isArray(java.lang.String xmlPropertyName)
Returns true, if the value for the given xml-property-name is an array, otherwise false. |
boolean |
isNotNull(java.lang.String xmlPropertyName)
Returns true, if the value for the given xml-property-name may become null, otherwise false. |
boolean |
isXmlPropertyNull(java.lang.String propertyname)
Returns true, if the current value for the given xml-property-name is null or non-existent, otherwise false. |
void |
postProcess()
This method is used internally by the factory-method and has no functionality after initialization-phase of the bean-instance has been done. |
void |
setBodyValue(java.lang.String bodyValue)
This method is used internally by the factory-method and has no functionality after initialization-phase of the bean-instance has been done. |
void |
setIsArray(java.lang.String isArray)
This method is used internally by the factory-method and has no functionality after initialization-phase of the bean-instance has been done. |
void |
setIsNull(java.lang.String isNull)
This method is used internally by the factory-method and has no functionality after initialization-phase of the bean-instance has been done. |
void |
setName(java.lang.String name)
This method is used internally by the factory-method and has no functionality after initialization-phase of the bean-instance has been done. |
void |
setXmlProperty(java.lang.String name,
java.lang.Object value)
Set the given xml-property-name to the given value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String xmlProperties
| Constructor Detail |
public XmlBean()
| Method Detail |
public java.lang.String getDataType(java.lang.String xmlPropertyName)
public java.util.Iterator getPropertyNames()
public java.lang.String getXmlProperties()
public java.lang.Object getXmlProperty(java.lang.String propertyname)
public XmlBeanMetaData init(java.lang.String xml)
xml - XML-Defaultdaten als Stringpublic XmlBeanMetaData initFilename(java.lang.String filename)
filename - Dateiname innerhalb des Klassenpfades, beginnend mit einem
Pfad-oder Dateinamen ohne Slash!public boolean isArray(java.lang.String xmlPropertyName)
public boolean isNotNull(java.lang.String xmlPropertyName)
public boolean isXmlPropertyNull(java.lang.String propertyname)
public void postProcess()
public void setBodyValue(java.lang.String bodyValue)
public void setIsArray(java.lang.String isArray)
public void setIsNull(java.lang.String isNull)
public void setName(java.lang.String name)
public void setXmlProperty(java.lang.String name,
java.lang.Object value)
name - value -
java.lang.IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||