org.databene.platform.xml
Class XMLSchemaDescriptorProvider

java.lang.Object
  extended by org.databene.model.data.DefaultDescriptorProvider
      extended by org.databene.platform.xml.XMLSchemaDescriptorProvider
All Implemented Interfaces:
java.io.Closeable, ResourceManager, org.databene.commons.context.ContextAware, DescriptorProvider

public class XMLSchemaDescriptorProvider
extends DefaultDescriptorProvider
implements org.databene.commons.context.ContextAware, ResourceManager

Parses an XML schema file into a benerator metadata structure.

Created: 27.02.2008 09:40:45

Since:
0.5.0
Author:
Volker Bergmann

Field Summary
static java.lang.String ANNOTATION
           
static java.lang.String ATTRIBUTE_GROUP
           
static java.lang.String BASE
           
static java.lang.String CHOICE
           
static java.lang.String COMPLEX_TYPE
           
static java.lang.String ELEMENT
           
static java.lang.String ENUMERATION
           
static java.lang.String EXTENSION
           
static java.lang.String GROUP
           
static java.lang.String IMPORT
           
static java.lang.String INCLUDE
           
static java.lang.String LENGTH
           
static java.lang.String MAX_EXCLUSIVE
           
static java.lang.String MAX_INCLUSIVE
           
static java.lang.String MIN_EXCLUSIVE
           
static java.lang.String MIN_INCLUSIVE
           
static java.lang.String NAME
           
static java.lang.String RESTRICTION
           
static java.lang.String SEQUENCE
           
static java.lang.String SIMPLE_TYPE
           
static java.lang.String UNION
           
static java.lang.String VALUE
           
 
Fields inherited from class org.databene.model.data.DefaultDescriptorProvider
dataModel, id, typeMap
 
Constructor Summary
XMLSchemaDescriptorProvider(java.lang.String schemaUri, BeneratorContext context)
           
 
Method Summary
 boolean addResource(java.io.Closeable resource)
           
 void close()
           
 BeneratorContext getContext()
           
 void setContext(org.databene.commons.Context context)
           
 void setSchemaUri(java.lang.String schemaUri)
           
 
Methods inherited from class org.databene.model.data.DefaultDescriptorProvider
addTypeDescriptor, getDataModel, getId, getTypeDescriptor, getTypeDescriptors, setDataModel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INCLUDE

public static final java.lang.String INCLUDE
See Also:
Constant Field Values

IMPORT

public static final java.lang.String IMPORT
See Also:
Constant Field Values

SIMPLE_TYPE

public static final java.lang.String SIMPLE_TYPE
See Also:
Constant Field Values

COMPLEX_TYPE

public static final java.lang.String COMPLEX_TYPE
See Also:
Constant Field Values

ANNOTATION

public static final java.lang.String ANNOTATION
See Also:
Constant Field Values

SEQUENCE

public static final java.lang.String SEQUENCE
See Also:
Constant Field Values

CHOICE

public static final java.lang.String CHOICE
See Also:
Constant Field Values

EXTENSION

public static final java.lang.String EXTENSION
See Also:
Constant Field Values

UNION

public static final java.lang.String UNION
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values

GROUP

public static final java.lang.String GROUP
See Also:
Constant Field Values

ATTRIBUTE_GROUP

public static final java.lang.String ATTRIBUTE_GROUP
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

RESTRICTION

public static final java.lang.String RESTRICTION
See Also:
Constant Field Values

BASE

public static final java.lang.String BASE
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

LENGTH

public static final java.lang.String LENGTH
See Also:
Constant Field Values

MIN_INCLUSIVE

public static final java.lang.String MIN_INCLUSIVE
See Also:
Constant Field Values

MIN_EXCLUSIVE

public static final java.lang.String MIN_EXCLUSIVE
See Also:
Constant Field Values

MAX_EXCLUSIVE

public static final java.lang.String MAX_EXCLUSIVE
See Also:
Constant Field Values

MAX_INCLUSIVE

public static final java.lang.String MAX_INCLUSIVE
See Also:
Constant Field Values

ENUMERATION

public static final java.lang.String ENUMERATION
See Also:
Constant Field Values
Constructor Detail

XMLSchemaDescriptorProvider

public XMLSchemaDescriptorProvider(java.lang.String schemaUri,
                                   BeneratorContext context)
Method Detail

setSchemaUri

public void setSchemaUri(java.lang.String schemaUri)

setContext

public void setContext(org.databene.commons.Context context)
Specified by:
setContext in interface org.databene.commons.context.ContextAware

getContext

public BeneratorContext getContext()

addResource

public boolean addResource(java.io.Closeable resource)
Specified by:
addResource in interface ResourceManager

close

public void close()
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface ResourceManager


Copyright © 2013. All Rights Reserved.