|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.xsd.XmlSchema
public class XmlSchema
Declaration of an XML-Schema.
| Field Summary | |
|---|---|
protected Namespace |
namespaces
Namespace definition. |
protected String |
targetNamespace
The target namespace of this type. |
| Constructor Summary | |
|---|---|
XmlSchema(XsdElement[] root_elements,
XsdType[] global_types,
Namespace namespaces)
Build an XML-Schema |
|
| Method Summary | |
|---|---|
XsdAnnotation |
getAnnotation()
Returns annotation of this component. |
XsdElement |
getDefaultRootElement()
Returns the default root element of this schema |
static XmlSchema |
getDefaultSchema()
Returns the default schema including the standard types. |
protected Set<XsdType> |
getDerivation(XsdType global_type)
Returns the local derivation of a global type. |
DrbAttributeList |
getExternalAttributes()
Returns the external attributes of this component. |
DrbNodeList |
getExternalNodes()
Returns the external nodes of this component. |
XsdType[] |
getGlobalTypes()
Returns the global type of this schema. |
XsdElement |
getRootElement(String qname)
Returns an element from its qualified name. |
XsdElement[] |
getRootElements()
Returns the root elements of this schema |
String |
getTargetNamespace()
Returns the target namespace of this type. |
XsdType |
getType(String qname)
Returns a type from its qualified name. |
static void |
main(String[] args)
Makes this class runnable for testing. |
void |
setAnnotation(XsdAnnotation annotation)
Set annotation of this component. |
void |
setExternalAttributes(DrbAttributeList external_attributes)
Set the external attributes of this component. |
void |
setExternalNodes(DrbNodeList external_nodes)
Set the external nodes of this component. |
void |
setTargetNamespace(String target_namespace)
Set the target namespace of this type. |
DrbNode |
toNode()
Format this component into a string. |
static XsdInvalid |
validate(String xml_filename,
String xsd_filename,
boolean deep)
Allow to validate an xml file using an xml schema file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Namespace namespaces
protected String targetNamespace
| Constructor Detail |
|---|
public XmlSchema(XsdElement[] root_elements,
XsdType[] global_types,
Namespace namespaces)
root_elements - All the elements of the rootglobal_types - The globals typesnamespaces - The name space| Method Detail |
|---|
public final XsdElement getDefaultRootElement()
public final XsdElement[] getRootElements()
public final XsdElement getRootElement(String qname)
qname - the name root
public final XsdType[] getGlobalTypes()
public XsdType getType(String qname)
qname - The qualified name
protected final Set<XsdType> getDerivation(XsdType global_type)
global-type - a global type definition
public static XmlSchema getDefaultSchema()
public DrbNode toNode()
public static XsdInvalid validate(String xml_filename,
String xsd_filename,
boolean deep)
xml_filename - the xml filename to be validatexsd_filename - the xml schema file used for validationdeep - true for deep validation and false otherwise
public static void main(String[] args)
args - String[]public final XsdAnnotation getAnnotation()
public final void setAnnotation(XsdAnnotation annotation)
annotation - The annotation of this componentpublic final DrbNodeList getExternalNodes()
public final void setExternalNodes(DrbNodeList external_nodes)
external_nodes - The list of the nodepublic final DrbAttributeList getExternalAttributes()
public final void setExternalAttributes(DrbAttributeList external_attributes)
external_attributes - The list of the attributespublic final String getTargetNamespace()
public final void setTargetNamespace(String target_namespace)
target_namespace - the target namespace of this type.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||