org.kuali.student.contract.model.util
Class XmlKradBaseDictionaryCreator
java.lang.Object
org.kuali.student.contract.model.util.XmlKradBaseDictionaryCreator
public class XmlKradBaseDictionaryCreator
- extends Object
- Author:
- nwright
Method Summary |
private void |
addValue(String value)
|
private String |
calcBaseKualiType(MessageStructure ms)
|
private String |
calcFieldName(String className,
String parentFieldName,
MessageStructure ms)
|
private String |
calcObjectLabel()
|
private String |
calcParents(Stack<String> stack)
|
private List<String> |
calcPrimaryKeys()
|
private String |
calcTitleAttribute()
|
private MessageStructure |
findMessageStructure(String shortName)
|
private MessageStructure |
findMessageStructureEndsWith(String shortNameEndsWith)
|
private MessageStructure |
getMessageStructure(String shortName)
|
private static String |
initLower(String str)
|
private static String |
initUpper(String str)
|
private void |
initXmlWriters()
|
private static String |
splitCamelCase(String s)
|
private String |
stripListOffEnd(String name)
|
void |
write()
|
private void |
writeBaseAttributeDefinition(String className,
String parentFieldName,
MessageStructure ms,
XmlWriter out)
|
private void |
writeBaseAttributeDefinitions(String className,
String parentFieldName,
Stack<String> parents,
List<MessageStructure> fields,
XmlWriter out)
|
private void |
writeBaseImports(XmlWriter out)
|
private void |
writeBaseObjectStructure(XmlWriter out)
|
private void |
writeGeneratedAttributeDefinition(String className,
String parentFieldName,
MessageStructure ms,
XmlWriter out)
|
private void |
writeGeneratedAttributeDefinitions(String className,
String parentFieldName,
Stack<String> parents,
List<MessageStructure> fields,
XmlWriter out)
|
private void |
writeGeneratedAttributeRefBeans(String className,
String parentFieldName,
Stack<String> parents,
List<MessageStructure> fields,
XmlWriter out)
|
private void |
writeGeneratedImports(XmlWriter out)
|
private void |
writeGeneratedObjectStructure(XmlWriter out)
|
private void |
writeNote(XmlWriter out)
|
private void |
writeProperty(String propertyName,
String propertyValue)
|
private void |
writeSpringHeaderClose(XmlWriter out)
|
private void |
writeSpringHeaderOpen(XmlWriter out)
|
private void |
writeSubStructures(XmlType type,
Stack<String> stack)
|
private void |
writeWarning(XmlWriter out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
model
private ServiceContractModel model
finder
private ModelFinder finder
directory
private String directory
className
private String className
xmlType
private XmlType xmlType
gwriter
private XmlWriter gwriter
bwriter
private XmlWriter bwriter
messageStructures
private List<MessageStructure> messageStructures
XmlKradBaseDictionaryCreator
public XmlKradBaseDictionaryCreator(String directory,
ServiceContractModel model,
String className)
write
public void write()
initXmlWriters
private void initXmlWriters()
initLower
private static String initLower(String str)
initUpper
private static String initUpper(String str)
writeSpringHeaderClose
private void writeSpringHeaderClose(XmlWriter out)
writeSpringHeaderOpen
private void writeSpringHeaderOpen(XmlWriter out)
writeWarning
private void writeWarning(XmlWriter out)
writeNote
private void writeNote(XmlWriter out)
writeGeneratedImports
private void writeGeneratedImports(XmlWriter out)
writeBaseImports
private void writeBaseImports(XmlWriter out)
stripListOffEnd
private String stripListOffEnd(String name)
writeSubStructures
private void writeSubStructures(XmlType type,
Stack<String> stack)
calcParents
private String calcParents(Stack<String> stack)
writeGeneratedObjectStructure
private void writeGeneratedObjectStructure(XmlWriter out)
addValue
private void addValue(String value)
calcObjectLabel
private String calcObjectLabel()
splitCamelCase
private static String splitCamelCase(String s)
writeGeneratedAttributeRefBeans
private void writeGeneratedAttributeRefBeans(String className,
String parentFieldName,
Stack<String> parents,
List<MessageStructure> fields,
XmlWriter out)
writeGeneratedAttributeDefinitions
private void writeGeneratedAttributeDefinitions(String className,
String parentFieldName,
Stack<String> parents,
List<MessageStructure> fields,
XmlWriter out)
writeGeneratedAttributeDefinition
private void writeGeneratedAttributeDefinition(String className,
String parentFieldName,
MessageStructure ms,
XmlWriter out)
writeBaseObjectStructure
private void writeBaseObjectStructure(XmlWriter out)
writeBaseAttributeDefinitions
private void writeBaseAttributeDefinitions(String className,
String parentFieldName,
Stack<String> parents,
List<MessageStructure> fields,
XmlWriter out)
writeBaseAttributeDefinition
private void writeBaseAttributeDefinition(String className,
String parentFieldName,
MessageStructure ms,
XmlWriter out)
calcBaseKualiType
private String calcBaseKualiType(MessageStructure ms)
calcFieldName
private String calcFieldName(String className,
String parentFieldName,
MessageStructure ms)
calcTitleAttribute
private String calcTitleAttribute()
findMessageStructureEndsWith
private MessageStructure findMessageStructureEndsWith(String shortNameEndsWith)
findMessageStructure
private MessageStructure findMessageStructure(String shortName)
getMessageStructure
private MessageStructure getMessageStructure(String shortName)
calcPrimaryKeys
private List<String> calcPrimaryKeys()
writeProperty
private void writeProperty(String propertyName,
String propertyValue)
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.