| java.lang.Object org.openlaszlo.xml.internal.Schema
All known Subclasses: org.openlaszlo.compiler.ViewSchema,
Schema | abstract public class Schema (Code) | | Describes the content model of an XML document.
author: Oliver Steele version: 1.0 |
Inner Class :public static class Type | |
Field Summary | |
final public static Schema | DEFAULT_SCHEMA An empty Schema, all of whose attribute types are unknown. | final public static Type | ID_TYPE Represents an XML ID. | final public static Type | NUMBER_TYPE Represents a number. | final public static Type | STRING_TYPE Represents a String. | final public static Type | UNKNOWN_TYPE Represents the type of an attribute whose type isn't known. | static Map | typeNames |
DEFAULT_SCHEMA | final public static Schema DEFAULT_SCHEMA(Code) | | An empty Schema, all of whose attribute types are unknown.
|
ID_TYPE | final public static Type ID_TYPE(Code) | | Represents an XML ID.
|
NUMBER_TYPE | final public static Type NUMBER_TYPE(Code) | | Represents a number.
|
STRING_TYPE | final public static Type STRING_TYPE(Code) | | Represents a String.
|
UNKNOWN_TYPE | final public static Type UNKNOWN_TYPE(Code) | | Represents the type of an attribute whose type isn't known.
|
typeNames | static Map typeNames(Code) | | Hold mapping from Javascript type names to Types
|
addTypeAlias | public static void addTypeAlias(String typeName, Type type)(Code) | | |
getAttributeType | abstract public Type getAttributeType(Element element, String attributeName)(Code) | | Returns a value representing the type of an attribute within an
XML element.
Parameters: element - an Element Parameters: attributeName - an attribute name a value represting the type of the attribute's |
getTypeForName | public Type getTypeForName(String typeName)(Code) | | Look up the Type object from a Javascript type name
|
newType | public static Type newType(String typeName)(Code) | | Returns a unique type.
a unique type |
|
|