org.kuali.student.common.dictionary.service.impl
Class DictionaryFormatter

java.lang.Object
  extended by org.kuali.student.common.dictionary.service.impl.DictionaryFormatter

public class DictionaryFormatter
extends Object


Nested Class Summary
private static class DictionaryFormatter.FieldDefinitionNameComparator
           
 
Field Summary
private  StringBuilder builder
           
private  String className
           
private  String colSeperator
           
private  int level
           
private static String LINK_TO_DEFINITIONS
           
private  String name
           
private  ObjectStructureDefinition os
           
private static String PAGE_PREFIX
           
private static String PAGE_SUFFIX
           
private  boolean processSubstructures
           
private  String rowSeperator
           
private  Set<ObjectStructureDefinition> subStructuresAlreadyProcessed
           
private  Map<String,ObjectStructureDefinition> subStructuresToProcess
           
static String UNBOUNDED
           
 
Constructor Summary
DictionaryFormatter(String name, String className, ObjectStructureDefinition os, Set<ObjectStructureDefinition> subStructuresAlreadyProcessed, int level, boolean processSubstructures)
           
 
Method Summary
private  String asString(Object value)
           
private  String calcComplexSubStructureName(FieldDefinition fd)
           
private  String calcCrossField(FieldDefinition fd)
           
private  String calcCrossFieldRequire(FieldDefinition fd)
           
private  String calcCrossFieldWhen(FieldDefinition fd)
           
private  String calcDataType(FieldDefinition fd)
           
private  String calcDefaultValue(FieldDefinition fd)
           
private  String calcDynamicOrHidden(FieldDefinition fd)
           
private  String calcLength(FieldDefinition fd)
           
private  String calcLookup(FieldDefinition fd)
           
private  String calcLookup(LookupConstraint lc)
           
private  String calcMinMax(FieldDefinition fd)
           
private  String calcNotSoSimpleName(String name)
           
private  String calcOverride(FieldDefinition fd, Constraint cons)
           
private  String calcOverride(String attribute, boolean val1, boolean val2)
           
private  String calcOverride(String attribute, LookupConstraint val1, LookupConstraint val2)
           
private  String calcOverride(String attribute, Object val1, Object val2)
           
private  String calcOverride(String attribute, String val1, String val2)
           
private  String calcOverride(String attribute, ValidCharsConstraint val1, ValidCharsConstraint val2)
           
private  String calcRepeating(FieldDefinition fd)
           
private  String calcRequired(FieldDefinition fd)
           
private  String calcSimpleName(String name)
           
private  String calcValidChars(FieldDefinition fd)
           
private  String calcValidChars(ValidCharsConstraint cons)
           
private  String calcValidCharsMinMax(FieldDefinition fd)
           
private  String calcWikigPageAbbrev(String searchType)
           
private  String calcWikiSearchPage(String searchType)
           
private  String escapeWiki(String str)
           
private  List<CommonLookupParam> filterConfiguredParams(List<CommonLookupParam> params)
           
private  String formatAsString(List<String> discrepancies)
           
 String formatForWiki()
           
private  Class getClass(String className)
           
 String getColSeparator()
           
 String getRowSeperator()
           
private  List<FieldDefinition> getSortedFields()
           
private  String pad(String str, int size)
           
 void setColSeparator(String separator)
           
 void setRowSeperator(String rowSeperator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

private StringBuilder builder

os

private ObjectStructureDefinition os

rowSeperator

private String rowSeperator

colSeperator

private String colSeperator

name

private String name

className

private String className

processSubstructures

private boolean processSubstructures

level

private int level

subStructuresToProcess

private Map<String,ObjectStructureDefinition> subStructuresToProcess

subStructuresAlreadyProcessed

private Set<ObjectStructureDefinition> subStructuresAlreadyProcessed

UNBOUNDED

public static final String UNBOUNDED
See Also:
Constant Field Values

LINK_TO_DEFINITIONS

private static final String LINK_TO_DEFINITIONS
See Also:
Constant Field Values

PAGE_PREFIX

private static final String PAGE_PREFIX
See Also:
Constant Field Values

PAGE_SUFFIX

private static final String PAGE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

DictionaryFormatter

public DictionaryFormatter(String name,
                           String className,
                           ObjectStructureDefinition os,
                           Set<ObjectStructureDefinition> subStructuresAlreadyProcessed,
                           int level,
                           boolean processSubstructures)
Method Detail

getRowSeperator

public String getRowSeperator()

setRowSeperator

public void setRowSeperator(String rowSeperator)

getColSeparator

public String getColSeparator()

setColSeparator

public void setColSeparator(String separator)

pad

private String pad(String str,
                   int size)

formatForWiki

public String formatForWiki()

getSortedFields

private List<FieldDefinition> getSortedFields()

getClass

private Class getClass(String className)

formatAsString

private String formatAsString(List<String> discrepancies)

calcDataType

private String calcDataType(FieldDefinition fd)

calcDefaultValue

private String calcDefaultValue(FieldDefinition fd)

calcDynamicOrHidden

private String calcDynamicOrHidden(FieldDefinition fd)

calcComplexSubStructureName

private String calcComplexSubStructureName(FieldDefinition fd)

calcSimpleName

private String calcSimpleName(String name)

calcNotSoSimpleName

private String calcNotSoSimpleName(String name)

calcRequired

private String calcRequired(FieldDefinition fd)

calcValidChars

private String calcValidChars(FieldDefinition fd)

calcValidChars

private String calcValidChars(ValidCharsConstraint cons)

escapeWiki

private String escapeWiki(String str)

calcLookup

private String calcLookup(FieldDefinition fd)

calcLookup

private String calcLookup(LookupConstraint lc)

calcValidCharsMinMax

private String calcValidCharsMinMax(FieldDefinition fd)

calcMinMax

private String calcMinMax(FieldDefinition fd)

calcWikiSearchPage

private String calcWikiSearchPage(String searchType)

calcWikigPageAbbrev

private String calcWikigPageAbbrev(String searchType)

filterConfiguredParams

private List<CommonLookupParam> filterConfiguredParams(List<CommonLookupParam> params)

calcRepeating

private String calcRepeating(FieldDefinition fd)

calcLength

private String calcLength(FieldDefinition fd)

calcCrossField

private String calcCrossField(FieldDefinition fd)

calcCrossFieldRequire

private String calcCrossFieldRequire(FieldDefinition fd)

calcCrossFieldWhen

private String calcCrossFieldWhen(FieldDefinition fd)

calcOverride

private String calcOverride(FieldDefinition fd,
                            Constraint cons)

calcOverride

private String calcOverride(String attribute,
                            LookupConstraint val1,
                            LookupConstraint val2)

calcOverride

private String calcOverride(String attribute,
                            ValidCharsConstraint val1,
                            ValidCharsConstraint val2)

calcOverride

private String calcOverride(String attribute,
                            boolean val1,
                            boolean val2)

calcOverride

private String calcOverride(String attribute,
                            String val1,
                            String val2)

calcOverride

private String calcOverride(String attribute,
                            Object val1,
                            Object val2)

asString

private String asString(Object value)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.