A B C D E F G H I L M N P R S T V W X _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addChild(Leaf) - Method in class com.sun.tools.txw2.model.Node
- alternativeName - Variable in class com.sun.tools.txw2.model.WriterNode
-
If this node is the sole child of a pattern block, this field points to its name.
- AntErrorListener - Class in com.sun.tools.txw2
- AntErrorListener(Project) - Constructor for class com.sun.tools.txw2.AntErrorListener
- Attribute - Class in com.sun.tools.txw2.model
-
Attribute declaration.
- Attribute(Locator, QName, Leaf) - Constructor for class com.sun.tools.txw2.model.Attribute
- AttributeProp - Class in com.sun.tools.txw2.model.prop
- AttributeProp(QName, JType) - Constructor for class com.sun.tools.txw2.model.prop.AttributeProp
B
- BadCommandLineException - Exception in com.sun.tools.txw2
-
Signals a bad command line argument.
- BadCommandLineException() - Constructor for exception com.sun.tools.txw2.BadCommandLineException
- BadCommandLineException(String) - Constructor for exception com.sun.tools.txw2.BadCommandLineException
- BadCommandLineException(String, Throwable) - Constructor for exception com.sun.tools.txw2.BadCommandLineException
- build(TxwOptions) - Method in interface com.sun.tools.txw2.SchemaBuilder
C
- capitalize(String) - Static method in class com.sun.tools.txw2.NameUtil
-
Capitalizes the first character of the specified string, and de-capitalize the rest of characters.
- chainMethod - Variable in class com.sun.tools.txw2.TxwOptions
-
If true, generate attribute/value methods that returns the
thisobject for chaining. - codeModel - Variable in class com.sun.tools.txw2.TxwOptions
- collectChildren() - Method in class com.sun.tools.txw2.model.XmlNode
-
Expand all refs and collect all children.
- com.sun.tools.txw2 - module com.sun.tools.txw2
- com.sun.tools.txw2 - package com.sun.tools.txw2
- com.sun.tools.txw2.model - package com.sun.tools.txw2.model
- com.sun.tools.txw2.model.prop - package com.sun.tools.txw2.model.prop
- COMPACT - com.sun.tools.txw2.TxwOptions.Language
- ConsoleErrorReporter - Class in com.sun.tools.txw2
-
Prints the error to a stream.
- ConsoleErrorReporter(PrintStream) - Constructor for class com.sun.tools.txw2.ConsoleErrorReporter
- createDataMethod(JDefinedClass, JType, NodeSet, Set<Prop>) - Method in class com.sun.tools.txw2.model.Leaf
-
Creates a prop of the data value method.
D
- Data - Class in com.sun.tools.txw2.model
- Data(Locator, JType) - Constructor for class com.sun.tools.txw2.model.Data
- def - Variable in class com.sun.tools.txw2.model.Ref
- Define - Class in com.sun.tools.txw2.model
-
A named pattern.
- Define(Grammar, String) - Constructor for class com.sun.tools.txw2.model.Define
E
- Element - Class in com.sun.tools.txw2.model
-
Element declaration.
- Element(Locator, QName, Leaf) - Constructor for class com.sun.tools.txw2.model.Element
- ElementProp - Class in com.sun.tools.txw2.model.prop
-
Property generated from elements.
- ElementProp(QName, JType) - Constructor for class com.sun.tools.txw2.model.prop.ElementProp
- Empty - Class in com.sun.tools.txw2.model
- Empty(Locator) - Constructor for class com.sun.tools.txw2.model.Empty
- equal(String, String) - Static method in class com.sun.tools.txw2.NameUtil
-
determine if two Strings are iqual allowing null values
- equals(Object) - Method in class com.sun.tools.txw2.model.prop.ValueProp
- equalsIgnoreCase(String, String) - Static method in class com.sun.tools.txw2.NameUtil
-
determine if two Strings are equal ignoring case allowing null values
- error(SAXParseException) - Method in class com.sun.tools.txw2.AntErrorListener
- error(SAXParseException) - Method in class com.sun.tools.txw2.ConsoleErrorReporter
- error(SAXParseException) - Method in interface com.sun.tools.txw2.ErrorListener
- errorListener - Variable in class com.sun.tools.txw2.TxwOptions
-
Always non-null.
- ErrorListener - Interface in com.sun.tools.txw2
-
Used internally to report errors.
- escape(StringBuffer, String, int) - Static method in class com.sun.tools.txw2.NameUtil
-
Escapes characters is the given string so that they can be printed by only using US-ASCII characters.
- escapeURI(String) - Static method in class com.sun.tools.txw2.NameUtil
-
Escape any characters that would cause the single arg constructor of java.net.URI to complain about illegal chars.
- execute() - Method in class com.sun.tools.txw2.TxwTask
-
launch txw
F
- fatalError(SAXParseException) - Method in class com.sun.tools.txw2.AntErrorListener
- fatalError(SAXParseException) - Method in class com.sun.tools.txw2.ConsoleErrorReporter
- fatalError(SAXParseException) - Method in interface com.sun.tools.txw2.ErrorListener
G
- get(String) - Method in class com.sun.tools.txw2.model.Grammar
- getDatatype(NodeSet) - Method in class com.sun.tools.txw2.model.Data
- getDatatype(NodeSet) - Method in class com.sun.tools.txw2.model.List
- getDatatype(NodeSet) - Method in interface com.sun.tools.txw2.model.Text
-
Obtains the Java class of this
Text. - getDatatype(NodeSet) - Method in class com.sun.tools.txw2.model.Value
- getDefinitions() - Method in class com.sun.tools.txw2.model.Grammar
- getNext() - Method in class com.sun.tools.txw2.model.Leaf
- getParentUriPath(String) - Static method in class com.sun.tools.txw2.NameUtil
-
Calculate the parent URI path of the given URI path.
- getPrev() - Method in class com.sun.tools.txw2.model.Leaf
- getVersion() - Static method in class com.sun.tools.txw2.TxwOptions
-
Gets the version number of TXW.
- Grammar - Class in com.sun.tools.txw2.model
-
Represents a RELAX NG grammar.
- Grammar() - Constructor for class com.sun.tools.txw2.model.Grammar
H
- hashCode() - Method in class com.sun.tools.txw2.model.prop.ValueProp
- hasOneChild() - Method in class com.sun.tools.txw2.model.Node
-
Returns true if this node has only one child node.
I
- isDigit(char) - Static method in class com.sun.tools.txw2.NameUtil
- isInline() - Method in class com.sun.tools.txw2.model.Define
-
Returns true if this define only contains one child (and thus considered inlinable.) A pattern definition is also inlineable if it's the start of the grammar (because "start" isn't a meaningful name)
- isInline() - Method in class com.sun.tools.txw2.model.Ref
- isLetter(char) - Static method in class com.sun.tools.txw2.NameUtil
- isLower(char) - Static method in class com.sun.tools.txw2.NameUtil
- isPunct(char) - Static method in class com.sun.tools.txw2.NameUtil
- isRoot - Variable in class com.sun.tools.txw2.model.Element
-
True if this element can be a root element.
- isUpper(char) - Static method in class com.sun.tools.txw2.NameUtil
- iterator() - Method in class com.sun.tools.txw2.model.Node
-
Iterates all the children.
L
- language - Variable in class com.sun.tools.txw2.TxwOptions
-
Type of input schema language.
- leaf - Variable in class com.sun.tools.txw2.model.Node
-
Children of this node.
- Leaf - Class in com.sun.tools.txw2.model
-
Leafs form a set (by a cyclic doubly-linked list.) - Leaf(Locator) - Constructor for class com.sun.tools.txw2.model.Leaf
- LeafElementProp - Class in com.sun.tools.txw2.model.prop
- LeafElementProp(QName, JType) - Constructor for class com.sun.tools.txw2.model.prop.LeafElementProp
- List - Class in com.sun.tools.txw2.model
- List(Locator, Leaf) - Constructor for class com.sun.tools.txw2.model.List
- location - Variable in class com.sun.tools.txw2.model.Leaf
-
Source location where this leaf was defined.
M
- main(String[]) - Static method in class com.sun.tools.txw2.Main
- Main - Class in com.sun.tools.txw2
-
Programmatic entry point to the TXW compiler.
- Main(TxwOptions) - Constructor for class com.sun.tools.txw2.Main
- merge(Leaf) - Method in class com.sun.tools.txw2.model.Leaf
-
Combines two sets into one set.
N
- name - Variable in class com.sun.tools.txw2.model.Define
- name - Variable in class com.sun.tools.txw2.model.Value
-
Constant name.
- name - Variable in class com.sun.tools.txw2.model.XmlNode
-
Name of the attribute/element.
- NameUtil - Class in com.sun.tools.txw2
- NameUtil() - Constructor for class com.sun.tools.txw2.NameUtil
- nextBreak(String, int) - Static method in class com.sun.tools.txw2.NameUtil
- Node - Class in com.sun.tools.txw2.model
- Node(Locator, Leaf) - Constructor for class com.sun.tools.txw2.model.Node
- NodeSet - Class in com.sun.tools.txw2.model
-
Root of the model.
- NodeSet(TxwOptions, Leaf) - Constructor for class com.sun.tools.txw2.model.NodeSet
- noPackageNamespace - Variable in class com.sun.tools.txw2.TxwOptions
-
If true, the generated code will not use the package-level
XmlNamespaceannotation. - normalizeUriPath(String) - Static method in class com.sun.tools.txw2.NameUtil
-
Calculate the normalized form of the given uriPath.
P
- printUsage() - Method in class com.sun.tools.txw2.TxwOptions
- Prop - Class in com.sun.tools.txw2.model.prop
-
Immutable object that captures the characterstic of the generated writer method.
- Prop() - Constructor for class com.sun.tools.txw2.model.prop.Prop
R
- Ref - Class in com.sun.tools.txw2.model
-
A reference to a named pattern.
- Ref(Locator, Define) - Constructor for class com.sun.tools.txw2.model.Ref
- Ref(Locator, Grammar, String) - Constructor for class com.sun.tools.txw2.model.Ref
- run(TxwOptions) - Static method in class com.sun.tools.txw2.Main
- run(String[]) - Static method in class com.sun.tools.txw2.Main
S
- SchemaBuilder - Interface in com.sun.tools.txw2
-
Encapsulation of the schema file and the builder.
- scope - Variable in class com.sun.tools.txw2.model.Define
- setDestdir(File) - Method in class com.sun.tools.txw2.TxwTask
-
parse @destdir
- setMethodChaining(boolean) - Method in class com.sun.tools.txw2.TxwTask
-
parse @methodChaining
- setPackage(String) - Method in class com.sun.tools.txw2.TxwTask
-
Parse @package
- setSchema(File) - Method in class com.sun.tools.txw2.TxwTask
-
parse @schema
- setSyntax(String) - Method in class com.sun.tools.txw2.TxwTask
-
Parse @syntax
- siblings() - Method in class com.sun.tools.txw2.model.Leaf
-
Returns the collection of all the siblings (including itself)
- START - Static variable in class com.sun.tools.txw2.model.Grammar
-
The name for the start pattern
- subset(Class<T>) - Method in class com.sun.tools.txw2.model.NodeSet
T
- Text - Interface in com.sun.tools.txw2.model
-
Implemented by
Leafs that map to PCDATA in XML. - toClassName(String) - Static method in class com.sun.tools.txw2.NameUtil
- toConstantName(String) - Static method in class com.sun.tools.txw2.NameUtil
-
Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF".
- toConstantName(String[]) - Static method in class com.sun.tools.txw2.NameUtil
-
Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF".
- toInterfaceName(String) - Static method in class com.sun.tools.txw2.NameUtil
- toMethodName(String) - Static method in class com.sun.tools.txw2.NameUtil
- toMixedCaseName(String[], boolean) - Static method in class com.sun.tools.txw2.NameUtil
- toMixedCaseVariableName(String[], boolean, boolean) - Static method in class com.sun.tools.txw2.NameUtil
- toPackageName(String) - Static method in class com.sun.tools.txw2.NameUtil
- toPropertyName(String) - Static method in class com.sun.tools.txw2.NameUtil
- toString() - Method in class com.sun.tools.txw2.model.Attribute
- toString() - Method in class com.sun.tools.txw2.model.Define
- toString() - Method in class com.sun.tools.txw2.model.Element
- toVariableName(String) - Static method in class com.sun.tools.txw2.NameUtil
- toWordList(String) - Static method in class com.sun.tools.txw2.NameUtil
-
Tokenizes a string into words and capitalizes the first character of each word.
- TxwOptions - Class in com.sun.tools.txw2
-
Controls the various aspects of the TXW generation.
- TxwOptions() - Constructor for class com.sun.tools.txw2.TxwOptions
- TxwOptions.Language - Enum in com.sun.tools.txw2
-
Type of the schema language.
- TxwTask - Class in com.sun.tools.txw2
-
Ant task interface for txw compiler.
- TxwTask() - Constructor for class com.sun.tools.txw2.TxwTask
- type - Variable in class com.sun.tools.txw2.model.Data
-
The Java representation of the datatype.
- type - Variable in class com.sun.tools.txw2.model.Value
-
The underlying datatype, in case we need to revert to
Data.
V
- Value - Class in com.sun.tools.txw2.model
-
A constant value.
- Value(Locator, JType, String) - Constructor for class com.sun.tools.txw2.model.Value
- valueOf(String) - Static method in enum com.sun.tools.txw2.TxwOptions.Language
-
Returns the enum constant of this type with the specified name.
- ValueProp - Class in com.sun.tools.txw2.model.prop
- ValueProp(JType) - Constructor for class com.sun.tools.txw2.model.prop.ValueProp
- values() - Static method in enum com.sun.tools.txw2.TxwOptions.Language
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- warning(SAXParseException) - Method in class com.sun.tools.txw2.AntErrorListener
- warning(SAXParseException) - Method in class com.sun.tools.txw2.ConsoleErrorReporter
- warning(SAXParseException) - Method in interface com.sun.tools.txw2.ErrorListener
- write(TxwOptions) - Method in class com.sun.tools.txw2.model.NodeSet
-
Generate code
- WriterNode - Class in com.sun.tools.txw2.model
-
The
Nodethat maps to the program element. - WriterNode(Locator, Leaf) - Constructor for class com.sun.tools.txw2.model.WriterNode
X
- XML - com.sun.tools.txw2.TxwOptions.Language
- XmlNode - Class in com.sun.tools.txw2.model
- XmlNode(Locator, QName, Leaf) - Constructor for class com.sun.tools.txw2.model.XmlNode
- XMLSCHEMA - com.sun.tools.txw2.TxwOptions.Language
_
- _package - Variable in class com.sun.tools.txw2.TxwOptions
-
The package to put the generated code into.
All Classes All Packages