|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.storeconfig.StoreAppender
StoreAppends generate really the xml tag elements
| Constructor Summary | |
StoreAppender()
|
|
| Method Summary | |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StoreAppender()
| Method Detail |
public void printCloseTag(java.io.PrintWriter aWriter,
StoreDescription aDesc)
throws java.lang.Exception
aWriter - aDesc -
java.lang.Exception
public void printOpenTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
throws java.lang.Exception
aWriter - indent - bean - aDesc -
java.lang.Exception
public void printTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
throws java.lang.Exception
aWriter - indent - bean - aDesc -
java.lang.Exception
public void printTagContent(java.io.PrintWriter aWriter,
java.lang.String tag,
java.lang.String content)
throws java.lang.Exception
aWriter - tag - content -
java.lang.Exception
public 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.Exception
public void printIndent(java.io.PrintWriter aWriter,
int indent)
aWriter - indent - number of spaces
public 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 storing
public 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 - RegistryDescrpitor from this bean
java.lang.Exception - if an exception occurs while storing
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)
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 bean
public java.lang.Object defaultInstance(java.lang.Object bean)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
bean -
java.lang.InstantiationException
java.lang.IllegalAccessException
public 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 tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||