|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.xml.ClassDescriptor<ES>
public class ClassDescriptor<ES extends ElementState>
Cached object that holds all of the structures needed to optimize translations to and from XML for a single subclass of ElementState. A rootOptimizationsMap keeps track of these, using the XML tag as the key.
This structure itself, as well as the structure within it, are created just in time, by lazy evaluation.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, NORMAL, UTF16, UTF16_LE, UTF8 |
| Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes |
|---|
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN |
| Constructor Summary | |
|---|---|
ClassDescriptor()
Default constructor only for use by translateFromXML(). |
|
| Method Summary | ||
|---|---|---|
java.util.ArrayList<FieldDescriptor> |
attributeFieldDescriptors()
|
|
java.lang.Class<ES> |
describedClass()
|
|
java.util.ArrayList<FieldDescriptor> |
elementFieldOptimizations()
|
|
static ClassDescriptor |
getClassDescriptor(java.lang.Class<? extends ElementState> thatClass)
Obtain Optimizations object in the global scope of root Optimizations. |
|
static ClassDescriptor |
getClassDescriptor(ElementState elementState)
Obtain Optimizations object in the global scope of root Optimizations. |
|
java.lang.String |
getDecribedClassSimpleName()
|
|
java.lang.Class<ES> |
getDescribedClass()
|
|
java.lang.String |
getDescribedClassPackageName()
|
|
FieldDescriptor |
getFieldDescriptorByTag(java.lang.String tag,
TranslationScope tScope,
ElementState context)
|
|
static
|
getFieldDescriptors(java.lang.Class<? extends ElementState> thatClass,
java.lang.Class<T> fieldDescriptorClass)
Construct a set of FieldDescriptor objects for the class. |
|
HashMapArrayList<java.lang.String,FieldDescriptor> |
getFieldDescriptorsByFieldName()
|
|
ES |
getInstance()
|
|
java.lang.String |
getSuperClassName()
|
|
java.lang.String |
getTagName()
|
|
static HashMapArrayList<java.lang.String,FieldDescriptor> |
getTheFieldDescriptors(java.lang.Class<? extends ElementState> thatClass)
Construct a set of FieldDescriptor objects for the class. |
|
boolean |
hasScalarTextField()
|
|
boolean |
isEmpty()
|
|
java.lang.String |
key()
The tagName. |
|
static void |
main(java.lang.String[] s)
|
|
int |
numFields()
|
|
FieldDescriptor |
pseudoFieldDescriptor()
Form a pseudo-FieldDescriptor-object for a root element. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassDescriptor()
| Method Detail |
|---|
public java.lang.String getTagName()
public static ClassDescriptor getClassDescriptor(ElementState elementState)
elementState - An ElementState object that we're looking up Optimizations for.
public static ClassDescriptor getClassDescriptor(java.lang.Class<? extends ElementState> thatClass)
thatClass -
public FieldDescriptor pseudoFieldDescriptor()
public java.util.ArrayList<FieldDescriptor> attributeFieldDescriptors()
public java.util.ArrayList<FieldDescriptor> elementFieldOptimizations()
public FieldDescriptor getFieldDescriptorByTag(java.lang.String tag,
TranslationScope tScope,
ElementState context)
public static HashMapArrayList<java.lang.String,FieldDescriptor> getTheFieldDescriptors(java.lang.Class<? extends ElementState> thatClass)
thatClass -
public static <T extends FieldDescriptor> HashMapArrayList<java.lang.String,FieldDescriptor> getFieldDescriptors(java.lang.Class<? extends ElementState> thatClass,
java.lang.Class<T> fieldDescriptorClass)
T - thatClass - fieldDescriptorClass - Subclass of FieldDescriptor to use to construct.
public java.lang.String toString()
toString in class Debugpublic java.lang.Class<ES> describedClass()
public boolean hasScalarTextField()
hasScalarTextField in class ElementStatepublic java.lang.Class<ES> getDescribedClass()
public boolean isEmpty()
public java.lang.String getDecribedClassSimpleName()
public java.lang.String getDescribedClassPackageName()
public ES getInstance()
throws XMLTranslationException
XMLTranslationExceptionpublic int numFields()
public java.lang.String key()
key in interface Mappable<java.lang.String>public HashMapArrayList<java.lang.String,FieldDescriptor> getFieldDescriptorsByFieldName()
public java.lang.String getSuperClassName()
public static void main(java.lang.String[] s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||