public class StoreAppender
extends java.lang.Object
| Constructor and Description |
|---|
StoreAppender() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertStr(java.lang.String input)
Given a string, this method replaces all occurrences of '<', '>',
'&', and '"'.
|
java.lang.Object |
defaultInstance(java.lang.Object bean)
generate default Instance
|
protected boolean |
isPersistable(java.lang.Class<?> clazz)
Is the specified property type one for which we should generate a
persistence attribute?
|
boolean |
isPrintValue(java.lang.Object bean,
java.lang.Object bean2,
java.lang.String attrName,
StoreDescription desc)
print this Attribute value or not
|
protected void |
printAttribute(java.io.PrintWriter writer,
int indent,
java.lang.Object bean,
StoreDescription desc,
java.lang.String attributeName,
java.lang.Object bean2,
java.lang.Object value) |
void |
printAttributes(java.io.PrintWriter writer,
int indent,
boolean include,
java.lang.Object bean,
StoreDescription desc)
Store the relevant attributes of the specified JavaBean.
|
void |
printAttributes(java.io.PrintWriter writer,
int indent,
java.lang.Object bean,
StoreDescription desc)
Store the relevant attributes of the specified JavaBean, plus a
className attribute defining the fully qualified Java
class name of the bean. |
void |
printCloseTag(java.io.PrintWriter aWriter,
StoreDescription aDesc)
print the closing tag
|
void |
printIndent(java.io.PrintWriter aWriter,
int indent)
Print some spaces
|
void |
printOpenTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
print only the open tag with all attributes
|
void |
printTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
Print tag with all attributes
|
void |
printTagArray(java.io.PrintWriter aWriter,
java.lang.String tag,
int indent,
java.lang.String[] elements)
print a array of elements
|
void |
printTagContent(java.io.PrintWriter aWriter,
java.lang.String tag,
java.lang.String content)
print the value from tag as content
|
void |
printTagValueArray(java.io.PrintWriter aWriter,
java.lang.String tag,
int indent,
java.lang.String[] elements)
print an array of values
|
void |
printValue(java.io.PrintWriter writer,
int indent,
java.lang.String name,
java.lang.Object value)
print an attribute value
|
public void printCloseTag(java.io.PrintWriter aWriter,
StoreDescription aDesc)
throws java.lang.Exception
aWriter - aDesc - java.lang.Exceptionpublic void printOpenTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
throws java.lang.Exception
aWriter - indent - bean - aDesc - java.lang.Exceptionpublic void printTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
throws java.lang.Exception
aWriter - indent - bean - aDesc - java.lang.Exceptionpublic void printTagContent(java.io.PrintWriter aWriter,
java.lang.String tag,
java.lang.String content)
throws java.lang.Exception
aWriter - tag - content - java.lang.Exceptionpublic void printTagValueArray(java.io.PrintWriter aWriter,
java.lang.String tag,
int indent,
java.lang.String[] elements)
aWriter - tag - indent - elements - public void printTagArray(java.io.PrintWriter aWriter,
java.lang.String tag,
int indent,
java.lang.String[] elements)
throws java.lang.Exception
aWriter - tag - indent - elements - java.lang.Exceptionpublic void printIndent(java.io.PrintWriter aWriter,
int indent)
aWriter - indent - number of spacespublic void printAttributes(java.io.PrintWriter writer,
int indent,
java.lang.Object bean,
StoreDescription desc)
throws java.lang.Exception
className attribute defining the fully qualified Java
class name of the bean.writer - PrintWriter to which we are storingbean - Bean whose properties are to be rendered as attributes,java.lang.Exception - if an exception occurs while storingpublic void printAttributes(java.io.PrintWriter writer,
int indent,
boolean include,
java.lang.Object bean,
StoreDescription desc)
throws java.lang.Exception
writer - PrintWriter to which we are storinginclude - Should we include a className attribute?bean - Bean whose properties are to be rendered as attributes,desc - RegistryDescriptor from this beanjava.lang.Exception - if an exception occurs while storingprotected void printAttribute(java.io.PrintWriter writer,
int indent,
java.lang.Object bean,
StoreDescription desc,
java.lang.String attributeName,
java.lang.Object bean2,
java.lang.Object value)
writer - indent - bean - desc - attributeName - bean2 - value - public boolean isPrintValue(java.lang.Object bean,
java.lang.Object bean2,
java.lang.String attrName,
StoreDescription desc)
bean - orginal beanbean2 - default beanattrName - attribute namedesc - StoreDescription from beanpublic java.lang.Object defaultInstance(java.lang.Object bean)
throws java.lang.ReflectiveOperationException
bean - java.lang.ReflectiveOperationException - Error creating a new instancepublic void printValue(java.io.PrintWriter writer,
int indent,
java.lang.String name,
java.lang.Object value)
writer - name - value - public java.lang.String convertStr(java.lang.String input)
protected boolean isPersistable(java.lang.Class<?> clazz)
clazz - Java class to be testedCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.