|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.util.xml.XMLSyntax
public class XMLSyntax
Base for objcts that describe the (XML) syntax of data objects in various forms.
Field Summary | |
---|---|
protected Predicate1 |
attributeFieldP
|
protected ClassSyntax |
classSyntax
|
protected InheritanceTree |
inheritance
|
protected XMLTranslator |
xmlt
|
Constructor Summary | |
---|---|
XMLSyntax()
|
|
XMLSyntax(XMLTranslator xmlt)
|
Method Summary | |
---|---|
protected java.util.List |
attributeFields(java.util.List fields)
|
protected void |
collectListofClasses(java.util.List classes,
java.util.Collection collection)
Adds all classes C that need list-of C definitions. |
void |
describeClass(java.lang.String className,
java.io.PrintStream out)
|
protected java.util.List |
elementFields(java.util.List fields)
|
protected ClassDescr |
getClassDescr(java.lang.Class c)
|
protected java.util.List |
getConstraintSyntaxList()
Returns a list of constraint objects that represent the currently supported syntactic possibilities for constaints. |
protected java.lang.String |
getElementName(java.lang.Class c)
|
protected java.lang.String |
getElementName(ClassDescr cd)
|
protected java.lang.String |
getElementName(FieldDescr fd)
|
protected java.util.List |
getEnumerationValues(java.lang.Class c)
Returns a list of the allowed values of an enumeration class. |
protected java.lang.String |
getNTName(java.lang.Class c)
|
protected java.lang.String |
getNTName(ClassDescr cd)
|
protected java.lang.String |
getUpperName(java.lang.Class c)
|
protected java.lang.String |
getUpperName(ClassDescr cd)
|
static void |
main(java.lang.String[] argv)
Test loop that repeatedly asks the user for a class name and prints a description of the syntax for objects of that class. |
java.util.List |
relevantClasses(java.lang.Class rootClass)
|
java.lang.String |
structTextDescription(ClassDescr cd)
|
protected void |
walkStructFields(java.util.List classes,
FieldVisitor fv)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XMLTranslator xmlt
protected ClassSyntax classSyntax
protected InheritanceTree inheritance
protected Predicate1 attributeFieldP
Constructor Detail |
---|
public XMLSyntax()
public XMLSyntax(XMLTranslator xmlt)
Method Detail |
---|
protected ClassDescr getClassDescr(java.lang.Class c)
protected java.lang.String getNTName(ClassDescr cd)
protected java.lang.String getNTName(java.lang.Class c)
protected java.lang.String getUpperName(ClassDescr cd)
protected java.lang.String getUpperName(java.lang.Class c)
protected java.lang.String getElementName(ClassDescr cd)
protected java.lang.String getElementName(java.lang.Class c)
protected java.lang.String getElementName(FieldDescr fd)
public java.util.List relevantClasses(java.lang.Class rootClass)
protected void collectListofClasses(java.util.List classes, java.util.Collection collection)
classes
- candidate classescollection
- cantains the resultprotected void walkStructFields(java.util.List classes, FieldVisitor fv)
protected java.util.List attributeFields(java.util.List fields)
protected java.util.List elementFields(java.util.List fields)
protected java.util.List getConstraintSyntaxList()
protected java.util.List getEnumerationValues(java.lang.Class c)
java.lang.IllegalArgumentException
- if the class is not
a subclass of EnumeratedValue
.EnumeratedValue
public static void main(java.lang.String[] argv)
public void describeClass(java.lang.String className, java.io.PrintStream out)
public java.lang.String structTextDescription(ClassDescr cd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |