Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdFactory

java.lang.Object
  extended by fr.gael.drb.xsd.XsdFactory

public class XsdFactory
extends Object

The XML-Schema factory. The tags and attributes supported are listed below : - complexType name type Content: (annotation?, (simpleContent | complexContent | ((sequence | choice)?, attribute*))) - simpleType name Content: (annotation?, (restriction | list | union)) - element name ref minOccurs maxOccurs type Content: (annotation?, (complexType | simpleType)?) - attribute name type default fixed value use Content: (annotation?, (simpleType?) - sequence minOccurs maxOccurs Content: (annotation?, (element | sequence | choice))* - choice minOccurs maxOccurs Content: (annotation?, (element | sequence | choice))* - include schemaLocation - list itemType


Constructor Summary
XsdFactory()
           
 
Method Summary
static void main(String[] args)
          Makes this class runnable for testing.
 XmlSchema open(DrbNode schema)
          Load a schema from the specified node
 XmlSchema open(DrbNode base, DrbNode schema)
          Load a schema from the specified node
protected  XmlSchema open(DrbNode base, DrbNode schema_node, XmlSchema schema_def)
          Load a schema from the specified node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsdFactory

public XsdFactory()
Method Detail

open

public XmlSchema open(DrbNode schema)
Load a schema from the specified node

Parameters:
schema - the specified node
Returns:
The schema from the specified node

open

public XmlSchema open(DrbNode base,
                      DrbNode schema)
Load a schema from the specified node

Parameters:
base - the context node used for the xs:include instruction.
schema - the schema node
Returns:
the schema from the specified node

open

protected XmlSchema open(DrbNode base,
                         DrbNode schema_node,
                         XmlSchema schema_def)
Load a schema from the specified node

Parameters:
base - the node
schema_node - the schema node
schema_def - the schema definition
Returns:
the schema from the specified node

main

public static void main(String[] args)
Makes this class runnable for testing.

Parameters:
args - string[]

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .