Added providerHost in language module and remove name.
Added default uri/schemaUri/etc on namespace contexts. Added default for id/tag of Element. Added attribute aliases to xsd output. Added name alias for id on namespace. Added tag alias for id on element.
This commit is contained in:
parent
d271edb1ee
commit
8f2408a207
33 changed files with 695 additions and 395 deletions
|
|
@ -1,13 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ==================================================================== -->
|
||||
<!-- ===== Automatic generated schema for language: eld ===== -->
|
||||
<!-- ==================================================================== -->
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ==================================================================== -->
|
||||
<!-- ===== Automatic generated schema for language: eld ===== -->
|
||||
<!-- ==================================================================== -->
|
||||
<!--
|
||||
ProviderName: eld.x4o.org
|
||||
ModuleName: Element Language Definition
|
||||
ID: eld-module
|
||||
ProviderName: Element Language Definition
|
||||
ProviderHost: eld.x4o.org
|
||||
Namespaces: 3
|
||||
Namespace: http://eld.x4o.org/xml/ns/eld-conv
|
||||
Created on: Sat Apr 27 20:06:33 CEST 2013
|
||||
Uri: http://eld.x4o.org/xml/ns/eld-conv
|
||||
Uri schema: http://eld.x4o.org/xml/ns/eld-conv-0.8.xsd
|
||||
Created on: Sun Apr 28 11:56:32 CEST 2013
|
||||
-->
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:this="http://eld.x4o.org/xml/ns/eld-conv"
|
||||
|
|
@ -25,7 +27,12 @@
|
|||
</complexType>
|
||||
<complexType name="beanConverterType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded"/>
|
||||
<attribute name="bean.class" type="string"/>
|
||||
<attribute name="bean.class" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class name of the converter to load.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="stringSplitConverterStepType">
|
||||
|
|
@ -42,10 +49,30 @@
|
|||
<element name="stringSplitConverter" type="this:stringSplitConverterType"/>
|
||||
<element name="urlConverter" type="this:urlConverterType"/>
|
||||
</choice>
|
||||
<attribute name="toMethod" type="string"/>
|
||||
<attribute name="fromOrder" type="string" use="required"/>
|
||||
<attribute name="fromMethod" type="string" use="required"/>
|
||||
<attribute name="toOrder" type="string" use="required"/>
|
||||
<attribute name="toMethod" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The convert 'to' method step.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="fromOrder" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The convert 'from' order.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="fromMethod" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The convert 'from' method step.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="toOrder" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The convert 'to' order.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="objectConverter" type="string"/>
|
||||
</complexType>
|
||||
<complexType name="doubleConverterType">
|
||||
|
|
@ -61,11 +88,36 @@
|
|||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="stringSplitConverterStep" type="this:stringSplitConverterStepType"/>
|
||||
</choice>
|
||||
<attribute name="useNativeType" type="string"/>
|
||||
<attribute name="singleToMethod" type="string"/>
|
||||
<attribute name="splitSize" type="string" use="required"/>
|
||||
<attribute name="split" type="string" use="required"/>
|
||||
<attribute name="classTo" type="string" use="required"/>
|
||||
<attribute name="useNativeType" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">Set to true to convert to native data type.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="singleToMethod" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">Shortcut to use only this method for the 'to' convert.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="splitSize" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The split value expected size.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="split" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The split regex.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="classTo" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class name to convert the string to.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
<complexType name="integerConverterType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded"/>
|
||||
|
|
@ -98,4 +150,4 @@
|
|||
<element name="floatConverter" type="this:floatConverterType"/>
|
||||
<element name="characterConverter" type="this:characterConverterType"/>
|
||||
<element name="enumConverter" type="this:enumConverterType"/>
|
||||
</schema>
|
||||
</schema>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ==================================================================== -->
|
||||
<!-- ===== Automatic generated schema for language: eld ===== -->
|
||||
<!-- ==================================================================== -->
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ==================================================================== -->
|
||||
<!-- ===== Automatic generated schema for language: eld ===== -->
|
||||
<!-- ==================================================================== -->
|
||||
<!--
|
||||
ProviderName: eld.x4o.org
|
||||
ModuleName: Element Language Definition
|
||||
ID: eld-module
|
||||
ProviderName: Element Language Definition
|
||||
ProviderHost: eld.x4o.org
|
||||
Namespaces: 3
|
||||
Namespace: http://eld.x4o.org/xml/ns/eld-lang
|
||||
Created on: Sat Apr 27 20:06:33 CEST 2013
|
||||
Uri: http://eld.x4o.org/xml/ns/eld-lang
|
||||
Uri schema: http://eld.x4o.org/xml/ns/eld-lang-0.8.xsd
|
||||
Created on: Sun Apr 28 11:56:32 CEST 2013
|
||||
-->
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:conv="http://eld.x4o.org/xml/ns/eld-conv"
|
||||
|
|
@ -19,15 +21,20 @@
|
|||
<element name="description" type="this:descriptionType"/>
|
||||
<element name="element" type="this:elementType"/>
|
||||
</choice>
|
||||
<attribute name="uri" type="string" use="required"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The namespace id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string"/>
|
||||
<attribute name="prefixMapping" type="string"/>
|
||||
<attribute name="languageRoot" type="boolean"/>
|
||||
<attribute name="elementNamespaceInstanceProvider" type="string"/>
|
||||
<attribute name="uri" type="string"/>
|
||||
<attribute name="schemaUri" type="string"/>
|
||||
<attribute name="schemaResource" type="string"/>
|
||||
<attribute name="schemaPrefix" type="string"/>
|
||||
<attribute name="id" type="string"/>
|
||||
<attribute name="prefixMapping" type="string"/>
|
||||
<attribute name="languageRoot" type="boolean"/>
|
||||
<attribute name="description" type="string"/>
|
||||
</complexType>
|
||||
<complexType name="descriptionType">
|
||||
|
|
@ -39,7 +46,12 @@
|
|||
</complexType>
|
||||
<complexType name="elementSkipPhaseType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded"/>
|
||||
<attribute name="name" type="string" use="required"/>
|
||||
<attribute name="name" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The name of the phase to skip.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="elementType">
|
||||
|
|
@ -52,60 +64,145 @@
|
|||
<element name="elementParent" type="this:elementParentType"/>
|
||||
<element name="elementSkipPhase" type="this:elementSkipPhaseType"/>
|
||||
</choice>
|
||||
<attribute name="objectClass" type="string"/>
|
||||
<attribute name="elementClass" type="string"/>
|
||||
<attribute name="id" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The attribute id. (with tag as alias)
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="tag" type="string"/>
|
||||
<attribute name="schemaContentMixed" type="boolean"/>
|
||||
<attribute name="objectClass" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class of the wrapped object.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="elementClass" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">An custom element class to config object.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="schemaContentComplex" type="boolean"/>
|
||||
<attribute name="autoAttributes" type="boolean"/>
|
||||
<attribute name="schemaContentMixed" type="boolean"/>
|
||||
<attribute name="schemaContentBase" type="string"/>
|
||||
<attribute name="id" type="string"/>
|
||||
<attribute name="description" type="string"/>
|
||||
</complexType>
|
||||
<complexType name="attributeAliasType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded"/>
|
||||
<attribute name="name" type="string" use="required"/>
|
||||
<attribute name="name" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The alias name to add to the attribute.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="configuratorGlobalType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="bean.class" type="string" use="required"/>
|
||||
<attribute name="configAction" type="string"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The global element configurator id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="bean.class" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class of the element configurator.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="configAction" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">If set to true then run in config phase.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="configuratorType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="bean.class" type="string" use="required"/>
|
||||
<attribute name="configAction" type="string"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The element configurator id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="bean.class" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class of the global element configurator.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="configAction" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">If set to true then run in config phase.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="attributeFromBodyType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="bodyType" type="string"/>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="name" type="string" use="required"/>
|
||||
<attribute name="bodyType" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">See org.x4o.xml.element.Element.ElementType for options defaults to 'characters'.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The id for this configurator.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The attribute name to fill the value.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
<complexType name="attributeHandlerType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="attributeHandlerNextAttribute" type="this:attributeHandlerNextAttributeType"/>
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="attributeName" type="string" use="required"/>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="bean.class" type="string" use="required"/>
|
||||
<attribute name="attributeName" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The xml attribute name.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The atttribute handler id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="bean.class" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class of the attribute handler.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="attributeHandlerNextAttributeType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded"/>
|
||||
<attribute name="attributeName" type="string" use="required"/>
|
||||
<attribute name="attributeName" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The attribute name to run after this attribute.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="attributeType">
|
||||
|
|
@ -126,41 +223,86 @@
|
|||
<element name="bean" type="this:beanType"/>
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The attribute id. (with name as alias)
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string"/>
|
||||
<attribute name="defaultValue" type="string"/>
|
||||
<attribute name="required" type="boolean"/>
|
||||
<attribute name="writeOrder" type="integer"/>
|
||||
<attribute name="runBeanValue" type="boolean"/>
|
||||
<attribute name="runResolveEL" type="boolean"/>
|
||||
<attribute name="runConverters" type="boolean"/>
|
||||
<attribute name="defaultValue" type="string"/>
|
||||
<attribute name="objectConverter" type="string"/>
|
||||
<attribute name="id" type="string"/>
|
||||
<attribute name="runBeanValue" type="boolean"/>
|
||||
<attribute name="writeOrder" type="integer"/>
|
||||
<attribute name="runConverters" type="boolean"/>
|
||||
<attribute name="runResolveEL" type="boolean"/>
|
||||
<attribute name="description" type="string"/>
|
||||
</complexType>
|
||||
<complexType name="bindingHandlerType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="bean.class" type="string" use="required"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The binding handler id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="bean.class" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class of the binding handler.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="beanType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="attributeHandlerNextAttribute" type="this:attributeHandlerNextAttributeType"/>
|
||||
</choice>
|
||||
<attribute name="bean.class" type="string"/>
|
||||
<attribute name="bean.class" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The class name of the the class to load.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<complexType name="classBindingHandlerType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<element name="description" type="this:descriptionType"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="childClass" type="string" use="required"/>
|
||||
<attribute name="parentClass" type="string" use="required"/>
|
||||
<attribute name="getMethod" type="string" use="required"/>
|
||||
<attribute name="addMethod" type="string" use="required"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The id for this binding handler.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="childClass" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The child class.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="parentClass" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The parent class.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="getMethod" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The method name of the method used to get the childeren of the parent.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="addMethod" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The method name of the method used to add the child to the parent.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
<complexType name="elementInterfaceType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
|
|
@ -173,14 +315,34 @@
|
|||
<element name="description" type="this:descriptionType"/>
|
||||
<element name="elementParent" type="this:elementParentType"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="interfaceClass" type="string" use="required"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The interface id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="interfaceClass" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The interface class.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="description" type="string"/>
|
||||
</complexType>
|
||||
<complexType name="elementParentType">
|
||||
<choice minOccurs="0" maxOccurs="unbounded"/>
|
||||
<attribute name="tag" type="string"/>
|
||||
<attribute name="uri" type="string"/>
|
||||
<attribute name="tag" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The parent tag to have object for.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="uri" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The element namespace uri if non local parent.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<anyAttribute/>
|
||||
</complexType>
|
||||
<element name="namespace" type="this:namespaceType">
|
||||
|
|
@ -279,4 +441,4 @@
|
|||
</documentation>
|
||||
</annotation>
|
||||
</element>
|
||||
</schema>
|
||||
</schema>
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@
|
|||
xmlns="http://cel.x4o.org/xml/ns/cel-core"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://cel.x4o.org/xml/ns/cel-root http://cel.x4o.org/xml/ns/cel-root-1.0.xsd"
|
||||
name="Element Language Definition"
|
||||
providerName="eld.x4o.org"
|
||||
providerName="Element Language Definition"
|
||||
providerHost="eld.x4o.org"
|
||||
id="eld-module"
|
||||
>
|
||||
<description>The full element language definition(eld) which is used to define xml languages.</description>
|
||||
|
|
@ -52,11 +52,17 @@
|
|||
id="eld-root"
|
||||
>
|
||||
<description>Single root namespace so xsd schema generation works correct.</description>
|
||||
<element tag="module" objectClass="${parentLanguageConfiguration.defaultElementLanguageModule}" elementClass="org.x4o.xml.eld.lang.ModuleElement">
|
||||
<element id="module" objectClass="${parentLanguageConfiguration.defaultElementLanguageModule}" elementClass="org.x4o.xml.eld.lang.ModuleElement">
|
||||
<description>The module root element.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The module id.</description>
|
||||
</attribute>
|
||||
<description>The module root element.</description>
|
||||
<attribute id="providerHost" required="true">
|
||||
<description>The provider host like langx.someorg.domain for uri/etc defaults.</description>
|
||||
</attribute>
|
||||
<attribute id="providerName">
|
||||
<description>The provider name in normal en:lang.</description>
|
||||
</attribute>
|
||||
</element>
|
||||
</namespace>
|
||||
|
||||
|
|
@ -71,24 +77,28 @@
|
|||
<description>Some basic language definitions and some helper tags.</description>
|
||||
|
||||
<!-- First copy some core elements over from parent config -->
|
||||
<element tag="namespace" objectClass="${parentLanguageConfiguration.defaultElementNamespaceContext}">
|
||||
<element id="namespace" objectClass="${parentLanguageConfiguration.defaultElementNamespaceContext}">
|
||||
<description>Defines an namespace for the language.</description>
|
||||
<attribute id="uri" required="true">
|
||||
<attribute id="id" required="true">
|
||||
<description>The namespace id.</description>
|
||||
</attribute>
|
||||
</element>
|
||||
<element tag="element" objectClass="${parentLanguageConfiguration.defaultElementClass}">
|
||||
<element id="element" objectClass="${parentLanguageConfiguration.defaultElementClass}">
|
||||
<description>The xml element.</description>
|
||||
<attribute id="id">
|
||||
<attributeAlias name="tag"/>
|
||||
<description>The attribute id. (with tag as alias)</description>
|
||||
</attribute>
|
||||
<attribute id="objectClass">
|
||||
<description>The class of the wrapped object.</description>
|
||||
<classConverter/>
|
||||
</attribute>
|
||||
<attribute id="elementClass">
|
||||
<attribute id="elementClass">
|
||||
<description>An custom element class to config object.</description>
|
||||
<classConverter/>
|
||||
</attribute>
|
||||
</element>
|
||||
<element tag="elementInterface" objectClass="${parentLanguageConfiguration.defaultElementInterface}">
|
||||
<element id="elementInterface" objectClass="${parentLanguageConfiguration.defaultElementInterface}">
|
||||
<description>Config element objects by java interface.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The interface id.</description>
|
||||
|
|
@ -98,13 +108,17 @@
|
|||
<classConverter/>
|
||||
</attribute>
|
||||
</element>
|
||||
<element tag="attribute" objectClass="${parentLanguageConfiguration.defaultElementClassAttribute}">
|
||||
<element id="attribute" objectClass="${parentLanguageConfiguration.defaultElementClassAttribute}">
|
||||
<description>XML Element Attribute tag.</description>
|
||||
<attribute id="id">
|
||||
<attributeAlias name="name"/>
|
||||
<description>The attribute id. (with name as alias)</description>
|
||||
</attribute>
|
||||
</element>
|
||||
|
||||
<!-- Create some support elements to make language readable. -->
|
||||
|
||||
<element tag="bindingHandler" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<element id="bindingHandler" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<description>Define an className in bean.class for an ElementBindingHandler interface.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The binding handler id.</description>
|
||||
|
|
@ -116,7 +130,7 @@
|
|||
<elementParent tag="elementInterface"/>
|
||||
</element>
|
||||
|
||||
<element tag="attributeHandler" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<element id="attributeHandler" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<description>Define an className in bean.class for an ElementAttributeHandler.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The atttribute handler id.</description>
|
||||
|
|
@ -130,7 +144,7 @@
|
|||
<elementParent tag="module" uri="http://eld.x4o.org/xml/ns/eld-root"/>
|
||||
</element>
|
||||
|
||||
<element tag="configuratorGlobal" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<element id="configuratorGlobal" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<description>Define an className in bean.class for an ElementConfiguratorGlobal.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The global element configurator id.</description>
|
||||
|
|
@ -144,7 +158,7 @@
|
|||
<elementParent tag="module" uri="http://eld.x4o.org/xml/ns/eld-root"/>
|
||||
</element>
|
||||
|
||||
<element tag="configurator" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<element id="configurator" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<description>Define an className in bean.class for an ElementConfigurator.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The element configurator id.</description>
|
||||
|
|
@ -159,7 +173,7 @@
|
|||
<elementParent tag="element"/>
|
||||
</element>
|
||||
|
||||
<element tag="description" elementClass="org.x4o.xml.eld.lang.DescriptionElement" schemaContentBase="string">
|
||||
<element id="description" elementClass="org.x4o.xml.eld.lang.DescriptionElement" schemaContentBase="string">
|
||||
<description>An ELD elementDescription field which lets you type text like this one in xml characters instead of an attribute.</description>
|
||||
<elementParent tag="module" uri="http://eld.x4o.org/xml/ns/eld-root"/>
|
||||
<elementParent tag="namespace"/>
|
||||
|
|
@ -177,7 +191,7 @@
|
|||
|
||||
<!-- Add some special tags which do actions. -->
|
||||
|
||||
<element tag="elementParent" elementClass="org.x4o.xml.eld.lang.ElementClassAddParentElement">
|
||||
<element id="elementParent" elementClass="org.x4o.xml.eld.lang.ElementClassAddParentElement">
|
||||
<description>Adds an parent element tag for xsd</description>
|
||||
<elementParent tag="element"/>
|
||||
<elementParent tag="elementInterface"/>
|
||||
|
|
@ -189,7 +203,7 @@
|
|||
</attribute>
|
||||
</element>
|
||||
|
||||
<element tag="elementSkipPhase" elementClass="org.x4o.xml.eld.lang.SkipPhaseElement">
|
||||
<element id="elementSkipPhase" elementClass="org.x4o.xml.eld.lang.SkipPhaseElement">
|
||||
<description>Adds an phase to skip to the parent element.</description>
|
||||
<attribute id="name" required="true">
|
||||
<description>The name of the phase to skip.</description>
|
||||
|
|
@ -197,7 +211,7 @@
|
|||
<elementParent tag="element"/>
|
||||
</element>
|
||||
|
||||
<element tag="attributeHandlerNextAttribute" elementClass="org.x4o.xml.eld.lang.NextAttributeElement">
|
||||
<element id="attributeHandlerNextAttribute" elementClass="org.x4o.xml.eld.lang.NextAttributeElement">
|
||||
<description>Defines the parameter order.</description>
|
||||
<attribute id="attributeName" required="true">
|
||||
<description>The attribute name to run after this attribute.</description>
|
||||
|
|
@ -206,7 +220,7 @@
|
|||
<elementParent tag="bean"/>
|
||||
</element>
|
||||
|
||||
<element tag="attributeAlias" elementClass="org.x4o.xml.eld.lang.AttributeAliasElement">
|
||||
<element id="attributeAlias" elementClass="org.x4o.xml.eld.lang.AttributeAliasElement">
|
||||
<description>Defines an alias for an attribute name.</description>
|
||||
<attribute id="name" required="true">
|
||||
<description>The alias name to add to the attribute.</description>
|
||||
|
|
@ -214,7 +228,7 @@
|
|||
<elementParent tag="attribute"/>
|
||||
</element>
|
||||
|
||||
<element tag="attributeFromBody" objectClass="org.x4o.xml.eld.lang.AttributeFromBodyConfigurator" autoAttributes="false">
|
||||
<element id="attributeFromBody" objectClass="org.x4o.xml.eld.lang.AttributeFromBodyConfigurator" autoAttributes="false">
|
||||
<description>Defines an alias for an attribute name.</description>
|
||||
<attribute id="id" required="true">
|
||||
<description>The id for this configurator.</description>
|
||||
|
|
@ -227,7 +241,7 @@
|
|||
</attribute>
|
||||
</element>
|
||||
|
||||
<element tag="classBindingHandler" objectClass="org.x4o.xml.eld.lang.ElementRefectionBindingHandler"
|
||||
<element id="classBindingHandler" objectClass="org.x4o.xml.eld.lang.ElementRefectionBindingHandler"
|
||||
autoAttributes="false"
|
||||
>
|
||||
<description>Lets you dynamicly bind to object togecher.</description>
|
||||
|
|
@ -253,7 +267,7 @@
|
|||
<!-- Config some helper elements -->
|
||||
|
||||
<!-- Helper elements for eld -->
|
||||
<element tag="bean" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<element id="bean" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<!-- BIG NOTE: maybe beanElement most go to meta to have clean impl. -->
|
||||
<description>Loads bean into the Element</description>
|
||||
<attribute id="bean.class">
|
||||
|
|
@ -276,7 +290,7 @@
|
|||
>
|
||||
<description>Basic set of attribute value converters.</description>
|
||||
|
||||
<element tag="beanConverter" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<element id="beanConverter" elementClass="org.x4o.xml.eld.lang.BeanElement">
|
||||
<description>Define an loadable in bean.class for an ObjectConverter.</description>
|
||||
<attribute id="bean.class">
|
||||
<description>The class name of the converter to load.</description>
|
||||
|
|
@ -284,18 +298,18 @@
|
|||
<elementParent tag="attribute" uri="http://eld.x4o.org/xml/ns/eld-lang"/>
|
||||
<!-- todo: make converter which loads converter so xsd is correct. -->
|
||||
</element>
|
||||
<element tag="booleanConverter" objectClass="org.x4o.xml.conv.text.BooleanConverter" />
|
||||
<element tag="byteConverter" objectClass="org.x4o.xml.conv.text.ByteConverter" />
|
||||
<element tag="characterConverter" objectClass="org.x4o.xml.conv.text.CharacterConverter" />
|
||||
<element tag="doubleConverter" objectClass="org.x4o.xml.conv.text.DoubleConverter" />
|
||||
<element tag="floatConverter" objectClass="org.x4o.xml.conv.text.FloatConverter" />
|
||||
<element tag="integerConverter" objectClass="org.x4o.xml.conv.text.IntegerConverter" />
|
||||
<element tag="longConverter" objectClass="org.x4o.xml.conv.text.LongConverter" />
|
||||
<element tag="urlConverter" objectClass="org.x4o.xml.conv.text.URLConverter" />
|
||||
<element tag="classConverter" objectClass="org.x4o.xml.conv.text.ClassConverter" />
|
||||
<element tag="enumConverter" objectClass="org.x4o.xml.conv.text.EnumConverter" />
|
||||
<element id="booleanConverter" objectClass="org.x4o.xml.conv.text.BooleanConverter" />
|
||||
<element id="byteConverter" objectClass="org.x4o.xml.conv.text.ByteConverter" />
|
||||
<element id="characterConverter" objectClass="org.x4o.xml.conv.text.CharacterConverter" />
|
||||
<element id="doubleConverter" objectClass="org.x4o.xml.conv.text.DoubleConverter" />
|
||||
<element id="floatConverter" objectClass="org.x4o.xml.conv.text.FloatConverter" />
|
||||
<element id="integerConverter" objectClass="org.x4o.xml.conv.text.IntegerConverter" />
|
||||
<element id="longConverter" objectClass="org.x4o.xml.conv.text.LongConverter" />
|
||||
<element id="urlConverter" objectClass="org.x4o.xml.conv.text.URLConverter" />
|
||||
<element id="classConverter" objectClass="org.x4o.xml.conv.text.ClassConverter" />
|
||||
<element id="enumConverter" objectClass="org.x4o.xml.conv.text.EnumConverter" />
|
||||
|
||||
<element tag="stringSplitConverter" objectClass="org.x4o.xml.conv.text.StringSplitConverter">
|
||||
<element id="stringSplitConverter" objectClass="org.x4o.xml.conv.text.StringSplitConverter">
|
||||
<attribute id="classTo" required="true">
|
||||
<description>The class name to convert the string to.</description>
|
||||
<classConverter/>
|
||||
|
|
@ -305,7 +319,7 @@
|
|||
<attribute id="singleToMethod" description="Shortcut to use only this method for the 'to' convert."/>
|
||||
<attribute id="useNativeType" description="Set to true to convert to native data type."/>
|
||||
</element>
|
||||
<element tag="stringSplitConverterStep" objectClass="org.x4o.xml.conv.text.StringSplitConverterStep">
|
||||
<element id="stringSplitConverterStep" objectClass="org.x4o.xml.conv.text.StringSplitConverterStep">
|
||||
<attribute id="fromMethod" required="true" description="The convert 'from' method step."/>
|
||||
<attribute id="toMethod" required="false" description="The convert 'to' method step."/>
|
||||
<attribute id="fromOrder" required="true" description="The convert 'from' order."/>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ==================================================================== -->
|
||||
<!-- ===== Automatic generated schema for language: eld ===== -->
|
||||
<!-- ==================================================================== -->
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ==================================================================== -->
|
||||
<!-- ===== Automatic generated schema for language: eld ===== -->
|
||||
<!-- ==================================================================== -->
|
||||
<!--
|
||||
ProviderName: eld.x4o.org
|
||||
ModuleName: Element Language Definition
|
||||
ID: eld-module
|
||||
ProviderName: Element Language Definition
|
||||
ProviderHost: eld.x4o.org
|
||||
Namespaces: 3
|
||||
Namespace: http://eld.x4o.org/xml/ns/eld-root
|
||||
Created on: Sat Apr 27 20:06:33 CEST 2013
|
||||
Uri: http://eld.x4o.org/xml/ns/eld-root
|
||||
Uri schema: http://eld.x4o.org/xml/ns/eld-root-1.0.xsd
|
||||
Created on: Sun Apr 28 11:56:32 CEST 2013
|
||||
-->
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:conv="http://eld.x4o.org/xml/ns/eld-conv"
|
||||
|
|
@ -27,12 +29,27 @@
|
|||
<element ref="lang:elementInterface"/>
|
||||
<element ref="lang:namespace"/>
|
||||
</choice>
|
||||
<attribute name="id" type="string" use="required"/>
|
||||
<attribute name="name" type="string"/>
|
||||
<attribute name="providerName" type="string"/>
|
||||
<attribute name="sourceResource" type="string"/>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The module id.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="providerName" type="string">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The provider name in normal en:lang.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="providerHost" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation xml:lang="en">The provider host like langx.someorg.domain for uri/etc defaults.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="languageModuleLoader" type="string"/>
|
||||
<attribute name="sourceResource" type="string"/>
|
||||
<attribute name="description" type="string"/>
|
||||
</complexType>
|
||||
</element>
|
||||
</schema>
|
||||
</schema>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue