org.exolab.castor.xml.schema
Class SchemaNames

java.lang.Object
  extended by org.exolab.castor.xml.schema.SchemaNames

public class SchemaNames
extends Object

A class which holds the names for many of the Schema related components.

Version:
$Revision: 6230 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Keith Visco

Field Summary
static String ABSTRACT
           
static String ALL
           
static String ANNOTATION
           
static String ANY
           
static String ANY_ATTRIBUTE
           
static String ANYTYPE
           
static String APPINFO
           
static String ATTR_FORM_DEFAULT_ATTR
           
static String ATTRIBUTE
           
static String ATTRIBUTE_GROUP
           
static String BASE_ATTR
           
static String BLOCK_ATTR
           
static String BLOCK_DEFAULT_ATTR
           
static String CHOICE
           
static String COMPLEX_CONTENT
           
static String COMPLEX_TYPE
           
static String DEFAULT_ATTR
           
static String DOCUMENTATION
           
static String ELEM_FORM_DEFAULT_ATTR
           
static String ELEMENT
           
static String ENUMERATION
           
static String EXTENSION
           
static String FIELD
           
static String FINAL_ATTR
           
static String FINAL_DEFAULT_ATTR
           
static String FIXED_ATTR
           
static String FORM
           
static String GROUP
           
static String ID_ATTR
           
static String IMPORT
           
static String INCLUDE
           
static String INT_TYPE
           
static String INTEGER_TYPE
           
static String ITEM_TYPE_ATTR
           
static String KEY
           
static String KEYREF
           
static String LAX
           
static String LIST
           
static String MAX_EXCLUSIVE
           
static String MAX_INCLUSIVE
           
static String MAX_OCCURS_ATTR
           
static String MEMBER_TYPES_ATTR
           
static String MIN_EXCLUSIVE
           
static String MIN_INCLUSIVE
           
static String MIN_OCCURS_ATTR
           
static String MIXED
           
static String NAME_ATTR
           
static String NAMESPACE
           
static String NAMESPACE_ANY
           
static String NAMESPACE_LOCAL
           
static String NAMESPACE_OTHER
           
static String NAMESPACE_TARGET
           
static String NILLABLE_ATTR
           
static String ORDER_ATTR
           
static String PROCESS_CONTENTS
           
static String REDEFINE
           
static String REF_ATTR
           
static String REFER_ATTR
           
static String RESTRICTION
           
static String SCHEMA
           
static String SCHEMA_PACKAGE
           
static String SCHEMALOCATION_ATTR
           
static String SELECTOR
           
static String SEQUENCE
           
static String SIMPLE_CONTENT
           
static String SIMPLE_TYPE
           
static String SIMPLETYPE_REF
           
static String SKIP
           
static String SOURCE_ATTR
           
static String STRICT
           
static String STRING_TYPE
           
static String SUBSTITUTION_GROUP_ATTR
           
static String TARGET_NS_ATTR
           
static String TYPE_ATTR
           
static String UNION
           
static String UNIQUE
           
static String USE_ATTR
           
static String VALUE_ATTR
           
static String VERSION_ATTR
           
static String WILDCARD
           
static String XPATH_ATTR
           
 
Constructor Summary
SchemaNames()
           
 
Method Summary
static String getStructureName(Structure structure)
          Returns the name for the Schema Structure.
static boolean isGroupName(String name)
          Determines whether or not the given name is the name of an XML Schema group structure.
static boolean isNamespaceName(String name)
          Determines whether or not the given name is the name of an XML Schema namespace attributes.
static boolean isProcessName(String name)
          Determines whether or not the given name is the name of an XML Schema Wildcard processContents attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_PACKAGE

public static final String SCHEMA_PACKAGE
See Also:
Constant Field Values

ALL

public static final String ALL
See Also:
Constant Field Values

ANNOTATION

public static final String ANNOTATION
See Also:
Constant Field Values

ANY

public static final String ANY
See Also:
Constant Field Values

ANYTYPE

public static final String ANYTYPE
See Also:
Constant Field Values

ANY_ATTRIBUTE

public static final String ANY_ATTRIBUTE
See Also:
Constant Field Values

APPINFO

public static final String APPINFO
See Also:
Constant Field Values

ATTRIBUTE

public static final String ATTRIBUTE
See Also:
Constant Field Values

ATTRIBUTE_GROUP

public static final String ATTRIBUTE_GROUP
See Also:
Constant Field Values

CHOICE

public static final String CHOICE
See Also:
Constant Field Values

COMPLEX_CONTENT

public static final String COMPLEX_CONTENT
See Also:
Constant Field Values

COMPLEX_TYPE

public static final String COMPLEX_TYPE
See Also:
Constant Field Values

DOCUMENTATION

public static final String DOCUMENTATION
See Also:
Constant Field Values

ELEMENT

public static final String ELEMENT
See Also:
Constant Field Values

ENUMERATION

public static final String ENUMERATION
See Also:
Constant Field Values

EXTENSION

public static final String EXTENSION
See Also:
Constant Field Values

FIELD

public static final String FIELD
See Also:
Constant Field Values

GROUP

public static final String GROUP
See Also:
Constant Field Values

INCLUDE

public static final String INCLUDE
See Also:
Constant Field Values

IMPORT

public static final String IMPORT
See Also:
Constant Field Values

KEY

public static final String KEY
See Also:
Constant Field Values

KEYREF

public static final String KEYREF
See Also:
Constant Field Values

LIST

public static final String LIST
See Also:
Constant Field Values

MAX_EXCLUSIVE

public static final String MAX_EXCLUSIVE
See Also:
Constant Field Values

MAX_INCLUSIVE

public static final String MAX_INCLUSIVE
See Also:
Constant Field Values

MIN_EXCLUSIVE

public static final String MIN_EXCLUSIVE
See Also:
Constant Field Values

MIN_INCLUSIVE

public static final String MIN_INCLUSIVE
See Also:
Constant Field Values

REDEFINE

public static final String REDEFINE
See Also:
Constant Field Values

RESTRICTION

public static final String RESTRICTION
See Also:
Constant Field Values

SCHEMA

public static final String SCHEMA
See Also:
Constant Field Values

SELECTOR

public static final String SELECTOR
See Also:
Constant Field Values

SEQUENCE

public static final String SEQUENCE
See Also:
Constant Field Values

SIMPLETYPE_REF

public static final String SIMPLETYPE_REF
See Also:
Constant Field Values

SIMPLE_CONTENT

public static final String SIMPLE_CONTENT
See Also:
Constant Field Values

SIMPLE_TYPE

public static final String SIMPLE_TYPE
See Also:
Constant Field Values

UNION

public static final String UNION
See Also:
Constant Field Values

UNIQUE

public static final String UNIQUE
See Also:
Constant Field Values

ABSTRACT

public static final String ABSTRACT
See Also:
Constant Field Values

ATTR_FORM_DEFAULT_ATTR

public static final String ATTR_FORM_DEFAULT_ATTR
See Also:
Constant Field Values

BASE_ATTR

public static final String BASE_ATTR
See Also:
Constant Field Values

BLOCK_ATTR

public static final String BLOCK_ATTR
See Also:
Constant Field Values

BLOCK_DEFAULT_ATTR

public static final String BLOCK_DEFAULT_ATTR
See Also:
Constant Field Values

DEFAULT_ATTR

public static final String DEFAULT_ATTR
See Also:
Constant Field Values

ELEM_FORM_DEFAULT_ATTR

public static final String ELEM_FORM_DEFAULT_ATTR
See Also:
Constant Field Values

ID_ATTR

public static final String ID_ATTR
See Also:
Constant Field Values

ITEM_TYPE_ATTR

public static final String ITEM_TYPE_ATTR
See Also:
Constant Field Values

FINAL_ATTR

public static final String FINAL_ATTR
See Also:
Constant Field Values

FINAL_DEFAULT_ATTR

public static final String FINAL_DEFAULT_ATTR
See Also:
Constant Field Values

FIXED_ATTR

public static final String FIXED_ATTR
See Also:
Constant Field Values

FORM

public static final String FORM
See Also:
Constant Field Values

MAX_OCCURS_ATTR

public static final String MAX_OCCURS_ATTR
See Also:
Constant Field Values

MEMBER_TYPES_ATTR

public static final String MEMBER_TYPES_ATTR
See Also:
Constant Field Values

MIN_OCCURS_ATTR

public static final String MIN_OCCURS_ATTR
See Also:
Constant Field Values

MIXED

public static final String MIXED
See Also:
Constant Field Values

NAME_ATTR

public static final String NAME_ATTR
See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values

NILLABLE_ATTR

public static final String NILLABLE_ATTR
See Also:
Constant Field Values

ORDER_ATTR

public static final String ORDER_ATTR
See Also:
Constant Field Values

PROCESS_CONTENTS

public static final String PROCESS_CONTENTS
See Also:
Constant Field Values

REF_ATTR

public static final String REF_ATTR
See Also:
Constant Field Values

REFER_ATTR

public static final String REFER_ATTR
See Also:
Constant Field Values

SCHEMALOCATION_ATTR

public static final String SCHEMALOCATION_ATTR
See Also:
Constant Field Values

SOURCE_ATTR

public static final String SOURCE_ATTR
See Also:
Constant Field Values

SUBSTITUTION_GROUP_ATTR

public static final String SUBSTITUTION_GROUP_ATTR
See Also:
Constant Field Values

TARGET_NS_ATTR

public static final String TARGET_NS_ATTR
See Also:
Constant Field Values

TYPE_ATTR

public static final String TYPE_ATTR
See Also:
Constant Field Values

USE_ATTR

public static final String USE_ATTR
See Also:
Constant Field Values

VALUE_ATTR

public static final String VALUE_ATTR
See Also:
Constant Field Values

VERSION_ATTR

public static final String VERSION_ATTR
See Also:
Constant Field Values

XPATH_ATTR

public static final String XPATH_ATTR
See Also:
Constant Field Values

INTEGER_TYPE

public static final String INTEGER_TYPE
See Also:
Constant Field Values

INT_TYPE

public static final String INT_TYPE
See Also:
Constant Field Values

STRING_TYPE

public static final String STRING_TYPE
See Also:
Constant Field Values

NAMESPACE_ANY

public static final String NAMESPACE_ANY
See Also:
Constant Field Values

NAMESPACE_LOCAL

public static final String NAMESPACE_LOCAL
See Also:
Constant Field Values

NAMESPACE_OTHER

public static final String NAMESPACE_OTHER
See Also:
Constant Field Values

NAMESPACE_TARGET

public static final String NAMESPACE_TARGET
See Also:
Constant Field Values

LAX

public static final String LAX
See Also:
Constant Field Values

SKIP

public static final String SKIP
See Also:
Constant Field Values

STRICT

public static final String STRICT
See Also:
Constant Field Values

WILDCARD

public static final String WILDCARD
See Also:
Constant Field Values
Constructor Detail

SchemaNames

public SchemaNames()
Method Detail

getStructureName

public static String getStructureName(Structure structure)
Returns the name for the Schema Structure.

Parameters:
structure - the Structure to return the name for
Returns:
the Structure name

isGroupName

public static boolean isGroupName(String name)
Determines whether or not the given name is the name of an XML Schema group structure.

Parameters:
name - the name to test
Returns:
true if the given name is the name of a schema group

isNamespaceName

public static boolean isNamespaceName(String name)
Determines whether or not the given name is the name of an XML Schema namespace attributes. Note: it assumes that the URI used are valid URL TODO: change the above restriction

Parameters:
name - the name to test
Returns:
true if the given name is the name of a schema group

isProcessName

public static boolean isProcessName(String name)
Determines whether or not the given name is the name of an XML Schema Wildcard processContents attribute.

Parameters:
name - the name to test
Returns:
true if the given name is a valid name of a processContents attribute


Copyright © 2012. All Rights Reserved.