|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.site.config.AbstractDocumentFactory
public abstract class AbstractDocumentFactory
Utility class for deserialising from an xml document.
| Nested Class Summary | |
|---|---|
static class |
AbstractDocumentFactory.ParseType
|
| Constructor Summary | |
|---|---|
protected |
AbstractDocumentFactory()
Creates a new instance of AbstractDocumentFactory |
| Method Summary | |
|---|---|
static String |
beanToXmlName(String beanName)
The words within the bean name are deduced assuming the first-letter-capital (for example camel's hump) naming convention. |
static void |
fillBeanProperty(Object beanObj,
Object beanParent,
String property,
AbstractDocumentFactory.ParseType type,
Element element,
String def)
TODO implement Type.Property. |
static boolean |
parseBoolean(String s,
boolean def)
try to use fillBeanProperty instead. |
static float |
parseFloat(String s,
float def)
try to use fillBeanProperty instead. |
static int |
parseInt(String s,
int def)
try to use fillBeanProperty instead. |
static String |
parseString(String s,
String def)
try to use fillBeanProperty instead. |
static String |
xmlToBeanName(String xmlName)
The reverse transformation to beanToXmlName(string). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractDocumentFactory()
| Method Detail |
|---|
public static final void fillBeanProperty(Object beanObj,
Object beanParent,
String property,
AbstractDocumentFactory.ParseType type,
Element element,
String def)
beanObj - beanParent - property - type - element - def - public static String beanToXmlName(String beanName)
The words within the bean name are deduced assuming the
first-letter-capital (for example camel's hump) naming convention. For
example, the words in FooBar are foo
and bar.
Then the #getSeparator property value is inserted so that it separates
each word.
beanName - The name string to convert. If a JavaBean
class name, should included only the last part of the name
rather than the fully qualified name (e.g. FooBar rather than
org.example.FooBar).
public static String xmlToBeanName(String xmlName)
xmlName -
public static final boolean parseBoolean(String s,
boolean def)
s - def -
public static final float parseFloat(String s,
float def)
s - def -
public static final int parseInt(String s,
int def)
s - def -
public static final String parseString(String s,
String def)
s - def -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||