User: jung
Date: 00/12/04 04:36:35
Modified: src/org/zoap/xml/meta AppearanceNameAttribute.java
AppearanceRefAttribute.java AttributeElement.java
AttributeType.java BooleanType.java ByteType.java
ComplexTypeElement.java ComplexTypeType.java
DoubleType.java ElementElement.java
ElementType.java FloatType.java IDRefType.java
IDType.java ImportElement.java ImportType.java
IntegerType.java LongType.java MetaBinding.java
PrimitiveType.java QNameType.java
SchemaElement.java SchemaType.java ShortType.java
SimpleTypeAttribute.java SimpleTypeElement.java
SimpleTypeType.java StringType.java
TargetNamespaceAttribute.java The Xml Schema
Meta-Model.dfClass TypeAttribute.java
TypeBaseAttribute.java TypeNameAttribute.java
URIType.java XmlSchema.java meta.dfPackage
Added: src/org/zoap/xml/meta DecimalType.java
Log:
adopted to latest jboss container,
added decimal and date
removed some problems due to forward-referencing in meta-data
added serialisation policy
Revision Changes Path
1.2 +97 -97 zoap/src/org/zoap/xml/meta/AppearanceNameAttribute.java
Index: AppearanceNameAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/AppearanceNameAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AppearanceNameAttribute.java 2000/08/10 21:07:44 1.1
+++ AppearanceNameAttribute.java 2000/12/04 12:36:27 1.2
@@ -1,97 +1,97 @@
-/*
- * $Id: AppearanceNameAttribute.java,v 1.1 2000/08/10 21:07:44 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * Meta-Meta Attribute xsd:name that should set the name of a particular appearance
- */
-
-public class AppearanceNameAttribute extends Attribute {
-
- private AppearanceNameAttribute() {
- setAppearanceName("name");
-
-
- setType(IDType.getIDType());
-
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- // no output for now
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
-
Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+references+")\n");
-
- if(target instanceof Appearance && value instanceof String) {
-
- ((Appearance) target).setAppearanceName((String) value);
- references.put(value,target);
- } else if(target==null)
- target=references.get(value);
-
- return target;
- }
-
- private static AppearanceNameAttribute appearanceNameAttribute=
- new AppearanceNameAttribute();
-
- public static AppearanceNameAttribute getAppearanceNameAttribute() {
- return appearanceNameAttribute;
- }
-
-}
+/*
+ * $Id: AppearanceNameAttribute.java,v 1.2 2000/12/04 12:36:27 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+
+/**
+ * Meta-Meta Attribute xsd:name that should set the name of a particular appearance
+ */
+
+public class AppearanceNameAttribute extends Attribute {
+
+ private AppearanceNameAttribute() {
+ setAppearanceName("name");
+
+
+ setType(IDType.getIDType());
+
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ // no output for now
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+
Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+references+")\n");
+
+ if(target instanceof Appearance && value instanceof String) {
+
+ ((Appearance) target).setAppearanceName((String) value);
+ references.put(value,target);
+ } else if(target==null)
+ target=references.get(value);
+
+ return target;
+ }
+
+ private static AppearanceNameAttribute appearanceNameAttribute=
+ new AppearanceNameAttribute();
+
+ public static AppearanceNameAttribute getAppearanceNameAttribute() {
+ return appearanceNameAttribute;
+ }
+
+}
1.2 +113 -96 zoap/src/org/zoap/xml/meta/AppearanceRefAttribute.java
Index: AppearanceRefAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/AppearanceRefAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AppearanceRefAttribute.java 2000/08/10 21:07:44 1.1
+++ AppearanceRefAttribute.java 2000/12/04 12:36:27 1.2
@@ -1,96 +1,113 @@
-/*
- * $Id: AppearanceRefAttribute.java,v 1.1 2000/08/10 21:07:44 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Element;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Type;
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * Meta-Meta Attribute xsd:ref that should refer to the name of a particular
appearance
- */
-
-public class AppearanceRefAttribute extends Attribute {
-
- private AppearanceRefAttribute() {
- setAppearanceName("ref");
- setType(IDRefType.getIDRefType());
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- // no write for now
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
-
Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+references+")");
-
- if(target instanceof Appearance && value instanceof String) {
- ((Appearance) target).setAppearanceName((String) value);
- references.put(value,target);
- } else if(target==null)
- target=references.get(value);
-
- return target;
- }
-
- private static AppearanceRefAttribute appearanceRefAttribute=
- new AppearanceRefAttribute();
-
- public static AppearanceRefAttribute getAppearanceRefAttribute() {
- return appearanceRefAttribute;
- }
-
-}
+/*
+ * $Id: AppearanceRefAttribute.java,v 1.2 2000/12/04 12:36:27 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Type;
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+
+/**
+ * Meta-Meta Attribute xsd:ref that should refer to the name of a particular
appearance
+ */
+
+public class AppearanceRefAttribute extends Attribute {
+
+ private AppearanceRefAttribute() {
+ setAppearanceName("ref");
+ setType(IDRefType.getIDRefType());
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ // no write for now
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+
Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+references+")");
+
+ if(target instanceof Appearance && value instanceof String) {
+ ((Appearance) target).setAppearanceName((String) value);
+ references.put(value,target);
+ } else if(target==null) {
+
+ // first we try to interpret the qname as prefix:type
+ Schema schema = (Schema)nameSpaces.
+ get(Environment.getNameSpacePrefix((String)value));
+
+ if(schema!=null) {
+
+ Element element=
+ schema.getElement(Environment.getProperName((String)value));
+
+ if(element!=null)
+ target=element.clone();
+
+ } else {
+ target=references.get(value);
+ }
+ }
+
+ return target;
+ }
+
+ private static AppearanceRefAttribute appearanceRefAttribute=
+ new AppearanceRefAttribute();
+
+ public static AppearanceRefAttribute getAppearanceRefAttribute() {
+ return appearanceRefAttribute;
+ }
+
+}
1.2 +106 -106 zoap/src/org/zoap/xml/meta/AttributeElement.java
Index: AttributeElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/AttributeElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AttributeElement.java 2000/08/10 21:07:45 1.1
+++ AttributeElement.java 2000/12/04 12:36:28 1.2
@@ -1,106 +1,106 @@
-/*
- * $Id: AttributeElement.java,v 1.1 2000/08/10 21:07:45 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-import org.zoap.xml.meta.builtin.FieldAttribute;
-
-import java.util.Properties;
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes xsd:attribute appearances
- */
-
-public class AttributeElement extends Element {
-
- private AttributeElement() {
- setAppearanceName("Attribute");
- setType(AttributeType.getAttributeType());
- }
-
- public Schema getAppearanceSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- // no output for now
- public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString()+".addElementContent("+target+","+value+","+
- references+","+nameSpaces+")\n");
-
- if(target instanceof ComplexType && value instanceof Attribute) {
-
- if(((Attribute) value).getAppearanceSchema()==null) {
- ((Attribute) value).setAppearanceSchema(((ComplexType)
target).getTypeSchema());
- }
-
- if(value instanceof FieldAttribute)
- ((FieldAttribute) value).setAssociatedClass(((ComplexType) target).
- getAssociatedClass());
-
- ((ComplexType) target).addAttribute((Attribute) value);
- }
-
- return target;
- }
-
- private static AttributeElement attributeElement=new AttributeElement();
-
- public static AttributeElement getAttributeElement() {
- return attributeElement;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: AttributeElement.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+import org.zoap.xml.meta.builtin.FieldAttribute;
+
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes xsd:attribute appearances
+ */
+
+public class AttributeElement extends Element {
+
+ private AttributeElement() {
+ setAppearanceName("Attribute");
+ setType(AttributeType.getAttributeType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ // no output for now
+ public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString()+".addElementContent("+target+","+value+","+
+ references+","+nameSpaces+")\n");
+
+ if(target instanceof ComplexType && value instanceof Attribute) {
+
+ if(((Attribute) value).getAppearanceSchema()==null) {
+ ((Attribute) value).setAppearanceSchema(((ComplexType)
target).getTypeSchema());
+ }
+
+ if(value instanceof FieldAttribute)
+ ((FieldAttribute) value).setAssociatedClass(((ComplexType) target).
+ getAssociatedClass());
+
+ ((ComplexType) target).addAttribute((Attribute) value);
+ }
+
+ return target;
+ }
+
+ private static AttributeElement attributeElement=new AttributeElement();
+
+ public static AttributeElement getAttributeElement() {
+ return attributeElement;
+ }
+
+}
1.2 +80 -80 zoap/src/org/zoap/xml/meta/AttributeType.java
Index: AttributeType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/AttributeType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AttributeType.java 2000/08/10 21:07:45 1.1
+++ AttributeType.java 2000/12/04 12:36:28 1.2
@@ -1,80 +1,80 @@
-/*
- * $Id: AttributeType.java,v 1.1 2000/08/10 21:07:45 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:attribute appearances.
- */
-
-public class AttributeType extends ComplexType {
-
- private AttributeType() {
- setTypeName("Attribute");
- setAssociatedClass(Attribute.class);
- addAttribute(AppearanceNameAttribute.getAppearanceNameAttribute());
- addAttribute(AppearanceRefAttribute.getAppearanceRefAttribute());
- addAttribute(SimpleTypeAttribute.getSimpleTypeAttribute());
- }
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static AttributeType attributeType=new AttributeType();
-
- public static AttributeType getAttributeType() {
- return attributeType;
- }
-
-}
+/*
+ * $Id: AttributeType.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:attribute appearances.
+ */
+
+public class AttributeType extends ComplexType {
+
+ private AttributeType() {
+ setTypeName("Attribute");
+ setAssociatedClass(Attribute.class);
+ addAttribute(AppearanceNameAttribute.getAppearanceNameAttribute());
+ addAttribute(AppearanceRefAttribute.getAppearanceRefAttribute());
+ addAttribute(SimpleTypeAttribute.getSimpleTypeAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static AttributeType attributeType=new AttributeType();
+
+ public static AttributeType getAttributeType() {
+ return attributeType;
+ }
+
+}
1.2 +100 -96 zoap/src/org/zoap/xml/meta/BooleanType.java
Index: BooleanType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/BooleanType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BooleanType.java 2000/08/10 21:07:45 1.1
+++ BooleanType.java 2000/12/04 12:36:28 1.2
@@ -1,99 +1,109 @@
-/*
- * $Id: BooleanType.java,v 1.1 2000/08/10 21:07:45 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-/**
- * XML type around java.lang.Boolean. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class BooleanType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private BooleanType() {
- setAssociatedClass(Boolean.class);
- setTypeName("boolean");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static BooleanType booleanType=new BooleanType();
-
- /** global access */
- public static BooleanType getBooleanType() {
- return booleanType;
- }
-
-}
-
-/*
+/*
+ * $Id: BooleanType.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+/**
+ * XML type around java.lang.Boolean. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class BooleanType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private BooleanType() {
+ setAssociatedClass(Boolean.class);
+ setTypeName("boolean");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static BooleanType booleanType=new BooleanType();
+
+ /** global access */
+ public static BooleanType getBooleanType() {
+ return booleanType;
+ }
+
+}
+
+/*
* $Log: BooleanType.java,v $
- * Revision 1.1 2000/08/10 21:07:45 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:28 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:28 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:45 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:28 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +103 -99 zoap/src/org/zoap/xml/meta/ByteType.java
Index: ByteType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ByteType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ByteType.java 2000/08/10 21:07:45 1.1
+++ ByteType.java 2000/12/04 12:36:28 1.2
@@ -1,102 +1,112 @@
-/*
- * $Id: ByteType.java,v 1.1 2000/08/10 21:07:45 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-/**
- * XML type around java.lang.Byte. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class ByteType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private ByteType() {
- setAssociatedClass(Byte.class);
- setTypeName("byte");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static ByteType byteType=new ByteType();
-
- /** global access */
- public static ByteType getByteType() {
- return byteType;
- }
-
-}
-
-
-
-
-/*
+/*
+ * $Id: ByteType.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+/**
+ * XML type around java.lang.Byte. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class ByteType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private ByteType() {
+ setAssociatedClass(Byte.class);
+ setTypeName("byte");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static ByteType byteType=new ByteType();
+
+ /** global access */
+ public static ByteType getByteType() {
+ return byteType;
+ }
+
+}
+
+
+
+
+/*
* $Log: ByteType.java,v $
- * Revision 1.1 2000/08/10 21:07:45 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:28 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:28 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:45 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:28 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +95 -95 zoap/src/org/zoap/xml/meta/ComplexTypeElement.java
Index: ComplexTypeElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ComplexTypeElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ComplexTypeElement.java 2000/08/10 21:07:46 1.1
+++ ComplexTypeElement.java 2000/12/04 12:36:28 1.2
@@ -1,95 +1,95 @@
-/*
- * $Id: ComplexTypeElement.java,v 1.1 2000/08/10 21:07:46 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Type;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes xsd:complexType appearances
- */
-
-public class ComplexTypeElement extends Element {
-
- private ComplexTypeElement() {
- setAppearanceName("ComplexType");
- setType(ComplexTypeType.getComplexTypeType());
- }
-
- public Schema getAppearanceSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- // no output for now
- public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpace) {
-
- if(target instanceof Schema && value instanceof ComplexType) {
- ((Type) value).setTypeSchema((Schema) target);
- ((Schema) target).addType((Type) value);
- } else if(target instanceof Element && value instanceof ComplexType) {
- ((Type) value).setTypeSchema(((Element) target).getAppearanceSchema());
- ((Element) target).setType((Type) value);
- }
-
- return target;
- }
-
- private static ComplexTypeElement complexTypeElement=new ComplexTypeElement();
-
- public static ComplexTypeElement getComplexTypeElement() {
- return complexTypeElement;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: ComplexTypeElement.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Type;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes xsd:complexType appearances
+ */
+
+public class ComplexTypeElement extends Element {
+
+ private ComplexTypeElement() {
+ setAppearanceName("ComplexType");
+ setType(ComplexTypeType.getComplexTypeType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ // no output for now
+ public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpace) {
+
+ if(target instanceof Schema && value instanceof ComplexType) {
+ ((Type) value).setTypeSchema((Schema) target);
+ ((Schema) target).addType((Type) value);
+ } else if(target instanceof Element && value instanceof ComplexType) {
+ ((Type) value).setTypeSchema(((Element) target).getAppearanceSchema());
+ ((Element) target).setType((Type) value);
+ }
+
+ return target;
+ }
+
+ private static ComplexTypeElement complexTypeElement=new ComplexTypeElement();
+
+ public static ComplexTypeElement getComplexTypeElement() {
+ return complexTypeElement;
+ }
+
+}
1.2 +80 -80 zoap/src/org/zoap/xml/meta/ComplexTypeType.java
Index: ComplexTypeType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ComplexTypeType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ComplexTypeType.java 2000/08/10 21:07:46 1.1
+++ ComplexTypeType.java 2000/12/04 12:36:28 1.2
@@ -1,80 +1,80 @@
-/*
- * $Id: ComplexTypeType.java,v 1.1 2000/08/10 21:07:46 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:complexType appearances.
- */
-
-public class ComplexTypeType extends ComplexType {
-
- private ComplexTypeType() {
- setTypeName("ComplexType");
- setAssociatedClass(ComplexType.class);
- addAttribute(TypeNameAttribute.getTypeNameAttribute());
- addAttribute(TypeBaseAttribute.getTypeBaseAttribute());
- addElement(ElementElement.getElementElement());
- addElement(AttributeElement.getAttributeElement());
- }
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static ComplexTypeType complexTypeType=new ComplexTypeType();
-
- public static ComplexTypeType getComplexTypeType() {
- return complexTypeType;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: ComplexTypeType.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:complexType appearances.
+ */
+
+public class ComplexTypeType extends ComplexType {
+
+ private ComplexTypeType() {
+ setTypeName("ComplexType");
+ setAssociatedClass(ComplexType.class);
+ addAttribute(TypeNameAttribute.getTypeNameAttribute());
+ addAttribute(TypeBaseAttribute.getTypeBaseAttribute());
+ addElement(ElementElement.getElementElement());
+ addElement(AttributeElement.getAttributeElement());
+ }
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static ComplexTypeType complexTypeType=new ComplexTypeType();
+
+ public static ComplexTypeType getComplexTypeType() {
+ return complexTypeType;
+ }
+
+}
1.2 +101 -97 zoap/src/org/zoap/xml/meta/DoubleType.java
Index: DoubleType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/DoubleType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DoubleType.java 2000/08/10 21:07:46 1.1
+++ DoubleType.java 2000/12/04 12:36:28 1.2
@@ -1,100 +1,110 @@
-/*
- * $Id: DoubleType.java,v 1.1 2000/08/10 21:07:46 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-
-/**
- * XML type around java.lang.Double Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class DoubleType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private DoubleType() {
- setAssociatedClass(Double.class);
- setTypeName("double");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static DoubleType doubleType=new DoubleType();
-
- /** global access */
- public static DoubleType getDoubleType() {
- return doubleType;
- }
-
-}
-
-/*
+/*
+ * $Id: DoubleType.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+
+/**
+ * XML type around java.lang.Double Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class DoubleType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private DoubleType() {
+ setAssociatedClass(Double.class);
+ setTypeName("double");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static DoubleType doubleType=new DoubleType();
+
+ /** global access */
+ public static DoubleType getDoubleType() {
+ return doubleType;
+ }
+
+}
+
+/*
* $Log: DoubleType.java,v $
- * Revision 1.1 2000/08/10 21:07:46 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:28 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:46 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +121 -120 zoap/src/org/zoap/xml/meta/ElementElement.java
Index: ElementElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ElementElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ElementElement.java 2000/08/10 21:07:47 1.1
+++ ElementElement.java 2000/12/04 12:36:28 1.2
@@ -1,120 +1,121 @@
-/*
- * $Id: ElementElement.java,v 1.1 2000/08/10 21:07:47 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-import org.zoap.xml.meta.builtin.FieldElement;
-
-import java.util.Properties;
-import java.util.Map;
-
-/**
- * The meta-meta Element that describes xsd:element appearances.
- */
-
-public class ElementElement extends Element {
-
- /** constructor */
-
- private ElementElement() {
- setAppearanceName("Element");
- setType(ElementType.getElementType());
- }
-
-
- /**
- * @link association
- * @label appearanceSchema
- */
-
- /*#XmlSchema xmlSchema;*/
-
- public Schema getAppearanceSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- /** no output for now */
- public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
- return null;
- }
-
- /** register the element in the embedding schema */
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(target instanceof Schema && value instanceof Element) {
-
- ((Element) value).setAppearanceSchema((Schema) target);
- ((Schema) target).addElement((Element) value);
-
- } else if(target instanceof ComplexType && value instanceof Element) {
-
- if(((Element) value).getAppearanceSchema()==null) {
- ((Element) value).setAppearanceSchema(((ComplexType)
target).getTypeSchema());
- }
-
- if(value instanceof FieldElement)
- ((FieldElement) value).setAssociatedClass(((ComplexType) target).
- getAssociatedClass());
-
- ((ComplexType) target).addElement((Element) value);
- }
-
- return target;
- }
-
- /** its a singleton */
- private static ElementElement elementElement=new ElementElement();
-
- /** public accessor to element */
- public static ElementElement getElementElement() {
- return elementElement;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: ElementElement.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+import org.zoap.xml.meta.builtin.FieldElement;
+
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * The meta-meta Element that describes xsd:element appearances.
+ */
+
+public class ElementElement extends Element {
+
+ /** constructor */
+
+ private ElementElement() {
+ setAppearanceName("Element");
+ setType(ElementType.getElementType());
+ }
+
+
+ /**
+ * @link association
+ * @label appearanceSchema
+ */
+
+ /*#XmlSchema xmlSchema;*/
+
+ public Schema getAppearanceSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ /** no output for now */
+ public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ /** register the element in the embedding schema */
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(target instanceof Schema && value instanceof Element) {
+
+ ((Element) value).setAppearanceSchema((Schema) target);
+ ((Schema) target).addElement((Element) value);
+
+ } else if(target instanceof ComplexType && value instanceof Element) {
+
+ if(((Element) value).getAppearanceSchema()==null) {
+ ((Element) value).setAppearanceSchema(((ComplexType) target).
+ getTypeSchema());
+ }
+
+ if(value instanceof FieldElement)
+ ((FieldElement) value).setAssociatedClass(((ComplexType) target).
+ getAssociatedClass());
+
+ ((ComplexType) target).addElement((Element) value);
+ }
+
+ return target;
+ }
+
+ /** its a singleton */
+ private static ElementElement elementElement=new ElementElement();
+
+ /** public accessor to element */
+ public static ElementElement getElementElement() {
+ return elementElement;
+ }
+
+}
1.2 +80 -80 zoap/src/org/zoap/xml/meta/ElementType.java
Index: ElementType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ElementType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ElementType.java 2000/08/10 21:07:47 1.1
+++ ElementType.java 2000/12/04 12:36:28 1.2
@@ -1,80 +1,80 @@
-/*
- * $Id: ElementType.java,v 1.1 2000/08/10 21:07:47 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Element;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:element appearances.
- */
-
-public class ElementType extends ComplexType {
-
- private ElementType() {
- setTypeName("Element");
- setAssociatedClass(Element.class);
- addAttribute(AppearanceNameAttribute.getAppearanceNameAttribute());
- addAttribute(AppearanceRefAttribute.getAppearanceRefAttribute());
- addAttribute(TypeAttribute.getTypeAttribute());
- }
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static ElementType elementType=new ElementType();
-
- public static ElementType getElementType() {
- return elementType;
- }
-
-}
+/*
+ * $Id: ElementType.java,v 1.2 2000/12/04 12:36:28 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Element;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:element appearances.
+ */
+
+public class ElementType extends ComplexType {
+
+ private ElementType() {
+ setTypeName("Element");
+ setAssociatedClass(Element.class);
+ addAttribute(AppearanceNameAttribute.getAppearanceNameAttribute());
+ addAttribute(AppearanceRefAttribute.getAppearanceRefAttribute());
+ addAttribute(TypeAttribute.getTypeAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static ElementType elementType=new ElementType();
+
+ public static ElementType getElementType() {
+ return elementType;
+ }
+
+}
1.2 +100 -96 zoap/src/org/zoap/xml/meta/FloatType.java
Index: FloatType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/FloatType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FloatType.java 2000/08/10 21:07:47 1.1
+++ FloatType.java 2000/12/04 12:36:29 1.2
@@ -1,99 +1,109 @@
-/*
- * $Id: FloatType.java,v 1.1 2000/08/10 21:07:47 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-/**
- * XML wrapper around java.lang.Float Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class FloatType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private FloatType() {
- setAssociatedClass(Float.class);
- setTypeName("float");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static FloatType floatType=new FloatType();
-
- /** global access */
- public static FloatType getFloatType() {
- return floatType;
- }
-
-}
-
-/*
+/*
+ * $Id: FloatType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+/**
+ * XML wrapper around java.lang.Float Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class FloatType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private FloatType() {
+ setAssociatedClass(Float.class);
+ setTypeName("float");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static FloatType floatType=new FloatType();
+
+ /** global access */
+ public static FloatType getFloatType() {
+ return floatType;
+ }
+
+}
+
+/*
* $Log: FloatType.java,v $
- * Revision 1.1 2000/08/10 21:07:47 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:47 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +133 -129 zoap/src/org/zoap/xml/meta/IDRefType.java
Index: IDRefType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/IDRefType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IDRefType.java 2000/08/10 21:07:48 1.1
+++ IDRefType.java 2000/12/04 12:36:29 1.2
@@ -1,132 +1,142 @@
-/*
- * $Id: IDRefType.java,v 1.1 2000/08/10 21:07:48 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.Schema;
-
-import java.util.Map;
-
-/**
- * the IDREF type as defined in the XMLSchema specification
- * maybe we need the extended data-structure schema for this type,
- * check this.
- */
-
-public class IDRefType extends SimpleType {
-
- /**
- * @label typeSchema
- */
- /*#XmlSchema lnkSchemaType;*/
- private IDRefType() {
- setTypeName("IDRef");
- }
-
- /** override getTypeSchema method to avoid circular dependencies */
- /*#XmlSchema lnkSchemaType;*/
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
- public Object newInstance(Map attributes, Map references, Map nameSpaces) {
- return null;
- }
-
- public String getContent(Object object) {
- if(object!=null)
- return object.toString();
- else
- return null;
- }
-
- public Object setContent(Object target, String body, String verboseElements,Map
references,Map nameSpaces) {
- return body;
- }
-
- public boolean isStateless() {
- return true;
- }
-
- private static IDRefType idType=new IDRefType();
-
- public static IDRefType getIDRefType() {
- return idType;
- }
-
-}
-
-/*
+/*
+ * $Id: IDRefType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.Schema;
+
+import java.util.Map;
+
+/**
+ * the IDREF type as defined in the XMLSchema specification
+ * maybe we need the extended data-structure schema for this type,
+ * check this.
+ */
+
+public class IDRefType extends SimpleType {
+
+ /**
+ * @label typeSchema
+ */
+ /*#XmlSchema lnkSchemaType;*/
+ private IDRefType() {
+ setTypeName("IDRef");
+ }
+
+ /** override getTypeSchema method to avoid circular dependencies */
+ /*#XmlSchema lnkSchemaType;*/
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+ public Object newInstance(Map attributes, Map references, Map nameSpaces) {
+ return null;
+ }
+
+ public String getContent(Object object) {
+ if(object!=null)
+ return object.toString();
+ else
+ return null;
+ }
+
+ public Object setContent(Object target, String body, String verboseElements,Map
references,Map nameSpaces) {
+ return body;
+ }
+
+ public boolean isStateless() {
+ return true;
+ }
+
+ private static IDRefType idType=new IDRefType();
+
+ public static IDRefType getIDRefType() {
+ return idType;
+ }
+
+}
+
+/*
* $Log: IDRefType.java,v $
- * Revision 1.1 2000/08/10 21:07:48 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:27 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1.2.1 2000/07/11 08:08:35 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:48 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.2 2000/07/20 14:35:27 jung
+ * some refactoring inside infor:xml
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1.2.1 2000/07/11 08:08:35 jung
+ * added functionality to store retrieve a part of a types elements
+ * within "ignored" strings. Useful for writing generic handlers that
+ * just process a part of the XML and transfer the rest.
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +132 -128 zoap/src/org/zoap/xml/meta/IDType.java
Index: IDType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/IDType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IDType.java 2000/08/10 21:07:48 1.1
+++ IDType.java 2000/12/04 12:36:29 1.2
@@ -1,131 +1,141 @@
-/*
- * $Id: IDType.java,v 1.1 2000/08/10 21:07:48 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.Schema;
-
-import java.util.Map;
-
-/**
- * the XmlSchema defined IDType. Since used in various contexts, it will just
produce
- * and accept string-based indexes.
- */
-
-public class IDType extends SimpleType {
-
- /** private constructor - its a singleton */
- private IDType() {
- setTypeName("ID");
- }
-
- /** override getTypeSchema method to avoid circular dependencies
- * @label typeSchema
- */
- /*#XmlSchema lnkSchemaType;*/
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
-
- public Object newInstance(Map attributes, Map references, Map nameSpaces) {
- return null;
- }
-
- public String getContent(Object object) {
- if(object!=null)
- return object.toString();
- else
- return null;
- }
-
- public Object setContent(Object target,String body, String verboseElements,Map
references,Map nameSpaces) {
- return body;
- }
-
- public boolean isStateless() {
- return true;
- }
-
- private static IDType idType=new IDType();
-
- public static IDType getIDType() {
- return idType;
- }
-
-}
-
-/*
+/*
+ * $Id: IDType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.Schema;
+
+import java.util.Map;
+
+/**
+ * the XmlSchema defined IDType. Since used in various contexts, it will just
produce
+ * and accept string-based indexes.
+ */
+
+public class IDType extends SimpleType {
+
+ /** private constructor - its a singleton */
+ private IDType() {
+ setTypeName("ID");
+ }
+
+ /** override getTypeSchema method to avoid circular dependencies
+ * @label typeSchema
+ */
+ /*#XmlSchema lnkSchemaType;*/
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+
+ public Object newInstance(Map attributes, Map references, Map nameSpaces) {
+ return null;
+ }
+
+ public String getContent(Object object) {
+ if(object!=null)
+ return object.toString();
+ else
+ return null;
+ }
+
+ public Object setContent(Object target,String body, String verboseElements,Map
references,Map nameSpaces) {
+ return body;
+ }
+
+ public boolean isStateless() {
+ return true;
+ }
+
+ private static IDType idType=new IDType();
+
+ public static IDType getIDType() {
+ return idType;
+ }
+
+}
+
+/*
* $Log: IDType.java,v $
- * Revision 1.1 2000/08/10 21:07:48 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:27 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1.2.1 2000/07/11 08:08:35 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:48 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.2 2000/07/20 14:35:27 jung
+ * some refactoring inside infor:xml
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1.2.1 2000/07/11 08:08:35 jung
+ * added functionality to store retrieve a part of a types elements
+ * within "ignored" strings. Useful for writing generic handlers that
+ * just process a part of the XML and transfer the rest.
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +76 -76 zoap/src/org/zoap/xml/meta/ImportElement.java
Index: ImportElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ImportElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ImportElement.java 2000/08/10 21:07:48 1.1
+++ ImportElement.java 2000/12/04 12:36:29 1.2
@@ -1,76 +1,76 @@
-/*
- * $Id: ImportElement.java,v 1.1 2000/08/10 21:07:48 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes xsd:import appearances
- */
-
-public class ImportElement extends Element {
-
- private ImportElement() {
- setAppearanceName("import");
- setType(ImportType.getImportType());
- }
-
- public Schema getAppearanceSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- private static ImportElement importElement=new ImportElement();
-
- public static ImportElement getImportElement() {
- return importElement;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: ImportElement.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes xsd:import appearances
+ */
+
+public class ImportElement extends Element {
+
+ private ImportElement() {
+ setAppearanceName("import");
+ setType(ImportType.getImportType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ private static ImportElement importElement=new ImportElement();
+
+ public static ImportElement getImportElement() {
+ return importElement;
+ }
+
+}
1.2 +169 -169 zoap/src/org/zoap/xml/meta/ImportType.java
Index: ImportType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ImportType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ImportType.java 2000/08/10 21:07:49 1.1
+++ ImportType.java 2000/12/04 12:36:29 1.2
@@ -1,169 +1,169 @@
-/*
- * $Id: ImportType.java,v 1.1 2000/08/10 21:07:49 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Element;
-import org.zoap.xml.Attribute;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.XmlObjectReader;
-import org.zoap.xml.Environment;
-
-import de.infor.ce.util.URN;
-
-import java.util.Map;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:element appearances.
- */
-
-public class ImportType extends ComplexType {
-
- public static class Import {
-
- public Import() {
- }
-
- private URN location;
- private URN nameSpace;
- }
-
- private class ImportNamespaceAttribute extends Attribute {
-
- ImportNamespaceAttribute() {
- setAppearanceName("namespace");
- setAppearanceSchema(XmlSchema.getXmlSchema());
- setType(URIType.getURIType());
- }
-
- public Object setAttributeContent(Object target, Object value, Map
references, Map nameSpaces)
- throws AttributeException {
-
- if(target instanceof Import && value instanceof URN) {
- ((Import) target).nameSpace=(URN) value;
-
- if(((Import) target).location!=null) {
- try{
- importSchema((Import) target,(XmlObjectReader)
- references.get("org.zoap.xml.XmlObjectReader"),nameSpaces);
- } catch(java.io.IOException e) {
-
- e.printStackTrace();
-
- throw new AttributeException();
- }
- }
- }
-
- return target;
- }
-
- }
-
- private class ImportLocationAttribute extends Attribute {
-
- ImportLocationAttribute() {
- setAppearanceName("location");
- setAppearanceSchema(XmlSchema.getXmlSchema());
- setType(URIType.getURIType());
- }
-
- public Object setAttributeContent(Object target, Object value, Map
references, Map nameSpaces)
- throws AttributeException {
-
- if(target instanceof Import && value instanceof URN) {
- ((Import) target).location=(URN) value;
-
- if(((Import) target).nameSpace!=null) {
- try{
- importSchema((Import) target,(XmlObjectReader)
- references.get("org.zoap.xml.XmlObjectReader"),nameSpaces);
- } catch(java.io.IOException e) {
-
- e.printStackTrace();
-
- throw new AttributeException();
- }
- }
- }
-
- return target;
- }
-
- }
-
- private ImportType() {
- setTypeName("import");
- setAssociatedClass(Import.class);
- addAttribute(new ImportNamespaceAttribute());
- addAttribute(new ImportLocationAttribute());
- }
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- public static void importSchema(Import specification, XmlObjectReader
superReader, Map nameSpaces)
- throws java.io.IOException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
-
Environment.out.print(ImportType.class.toString()+".importSchema("+specification+","+
- superReader+","+nameSpaces+")\n");
-
- XmlObjectReader subReader=superReader.resolveURN(specification.location);
- if(subReader!=null) {
- subReader.setBinding(superReader.getBinding());
- subReader.readObject();
- }
- }
-
- private static ImportType importType=new ImportType();
-
- public static ImportType getImportType() {
- return importType;
- }
-
-}
+/*
+ * $Id: ImportType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Element;
+import org.zoap.xml.Attribute;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.XmlObjectReader;
+import org.zoap.xml.Environment;
+
+import de.infor.ce.util.URN;
+
+import java.util.Map;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:element appearances.
+ */
+
+public class ImportType extends ComplexType {
+
+ public static class Import {
+
+ public Import() {
+ }
+
+ private URN location;
+ private URN nameSpace;
+ }
+
+ private class ImportNamespaceAttribute extends Attribute {
+
+ ImportNamespaceAttribute() {
+ setAppearanceName("namespace");
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ setType(URIType.getURIType());
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map
references, Map nameSpaces)
+ throws AttributeException {
+
+ if(target instanceof Import && value instanceof URN) {
+ ((Import) target).nameSpace=(URN) value;
+
+ if(((Import) target).location!=null) {
+ try{
+ importSchema((Import) target,(XmlObjectReader)
+ references.get("org.zoap.xml.XmlObjectReader"),nameSpaces);
+ } catch(java.io.IOException e) {
+
+ e.printStackTrace();
+
+ throw new AttributeException();
+ }
+ }
+ }
+
+ return target;
+ }
+
+ }
+
+ private class ImportLocationAttribute extends Attribute {
+
+ ImportLocationAttribute() {
+ setAppearanceName("location");
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ setType(URIType.getURIType());
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map
references, Map nameSpaces)
+ throws AttributeException {
+
+ if(target instanceof Import && value instanceof URN) {
+ ((Import) target).location=(URN) value;
+
+ if(((Import) target).nameSpace!=null) {
+ try{
+ importSchema((Import) target,(XmlObjectReader)
+ references.get("org.zoap.xml.XmlObjectReader"),nameSpaces);
+ } catch(java.io.IOException e) {
+
+ e.printStackTrace();
+
+ throw new AttributeException();
+ }
+ }
+ }
+
+ return target;
+ }
+
+ }
+
+ private ImportType() {
+ setTypeName("import");
+ setAssociatedClass(Import.class);
+ addAttribute(new ImportNamespaceAttribute());
+ addAttribute(new ImportLocationAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ public static void importSchema(Import specification, XmlObjectReader
superReader, Map nameSpaces)
+ throws java.io.IOException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+
Environment.out.print(ImportType.class.toString()+".importSchema("+specification+","+
+ superReader+","+nameSpaces+")\n");
+
+ XmlObjectReader subReader=superReader.resolveURN(specification.location);
+ if(subReader!=null) {
+ subReader.setBinding(superReader.getBinding());
+ subReader.readObject();
+ }
+ }
+
+ private static ImportType importType=new ImportType();
+
+ public static ImportType getImportType() {
+ return importType;
+ }
+
+}
1.2 +102 -98 zoap/src/org/zoap/xml/meta/IntegerType.java
Index: IntegerType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/IntegerType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IntegerType.java 2000/08/10 21:07:49 1.1
+++ IntegerType.java 2000/12/04 12:36:29 1.2
@@ -1,101 +1,111 @@
-/*
- * $Id: IntegerType.java,v 1.1 2000/08/10 21:07:49 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-/**
- * XML type around java.lang.Integer. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class IntegerType extends PrimitiveType {
-
- private static Integer defaultInteger=new Integer(0);
-
- /** constructor cannot be faked anymore */
- private IntegerType() {
- setAssociatedClass(Integer.class);
- setTypeName("integer");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static IntegerType integerType=new IntegerType();
-
- /** global access */
- public static IntegerType getIntegerType() {
- return integerType;
- }
-
-}
-
-/*
+/*
+ * $Id: IntegerType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+/**
+ * XML type around java.lang.Integer. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class IntegerType extends PrimitiveType {
+
+ private static Integer defaultInteger=new Integer(0);
+
+ /** constructor cannot be faked anymore */
+ private IntegerType() {
+ setAssociatedClass(Integer.class);
+ setTypeName("integer");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static IntegerType integerType=new IntegerType();
+
+ /** global access */
+ public static IntegerType getIntegerType() {
+ return integerType;
+ }
+
+}
+
+/*
* $Log: IntegerType.java,v $
- * Revision 1.1 2000/08/10 21:07:49 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:49 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +113 -109 zoap/src/org/zoap/xml/meta/LongType.java
Index: LongType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/LongType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- LongType.java 2000/08/10 21:07:49 1.1
+++ LongType.java 2000/12/04 12:36:29 1.2
@@ -1,112 +1,122 @@
-/*
- * $Id: LongType.java,v 1.1 2000/08/10 21:07:49 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.TypeException;
-
-/**
- * XML type around java.lang.Long. Implemented as a singleton. Demonstrates how
defaults can be inserted. <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class LongType extends PrimitiveType {
- /** constructor cannot be faked anymore */
- private LongType() {
- setAssociatedClass(Long.class);
- setTypeName("long");
- }
-
- /**
- * produce a printable "body" representation @return Object of the given
- * java @arg object. defaults to return the given Java object
- */
-
- public String getContent(Object object) throws TypeException {
-
- if (object != null && !defaultLong.equals(object))
- return object.toString();
-
- return null;
- }
-
- private static Long defaultLong = new Long(0);
-
- /** static reference, non-lazy since usage of this class is equivalent with
instantiation */
-
- private static LongType longType = new LongType();
-
- /** global access */
- public static LongType getLongType() {
- return longType;
- }
-
-
-}
-
-/*
+/*
+ * $Id: LongType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.TypeException;
+
+/**
+ * XML type around java.lang.Long. Implemented as a singleton. Demonstrates how
defaults can be inserted. <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class LongType extends PrimitiveType {
+ /** constructor cannot be faked anymore */
+ private LongType() {
+ setAssociatedClass(Long.class);
+ setTypeName("long");
+ }
+
+ /**
+ * produce a printable "body" representation @return Object of the given
+ * java @arg object. defaults to return the given Java object
+ */
+
+ public String getContent(Object object) throws TypeException {
+
+ if (object != null) // && !defaultLong.equals(object))
+ return object.toString();
+
+ return null;
+ }
+
+ private static Long defaultLong = new Long(0);
+
+ /** static reference, non-lazy since usage of this class is equivalent with
instantiation */
+
+ private static LongType longType = new LongType();
+
+ /** global access */
+ public static LongType getLongType() {
+ return longType;
+ }
+
+
+}
+
+/*
* $Log: LongType.java,v $
- * Revision 1.1 2000/08/10 21:07:49 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:49 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +80 -80 zoap/src/org/zoap/xml/meta/MetaBinding.java
Index: MetaBinding.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/MetaBinding.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MetaBinding.java 2000/08/10 21:07:51 1.1
+++ MetaBinding.java 2000/12/04 12:36:29 1.2
@@ -1,80 +1,80 @@
-/*
- * $Id: MetaBinding.java,v 1.1 2000/08/10 21:07:51 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Binding;
-import org.zoap.xml.Environment;
-
-/**
- * This "bootstrap" binding carries the necessary information to read in and
- * extend it by XML-Schema definitions. Since it is restricted to XmlSchema, it is
not
- * possible to generate fully functional meta-data for infor:Xml with it. Use
- * org.zoap.xml.meta.builtin.DefaultMetaBinding for that purpose.
- */
-
-public class MetaBinding extends Binding {
-
- /** adds XmlSchema in this public constructor */
-
- public MetaBinding() {
- addSchema(XmlSchema.getXmlSchema());
- }
-
- /** singleton is lazily initialised */
- private static MetaBinding metaBinding;
-
- /** public singleton accessor */
-
- public static MetaBinding getMetaBinding() {
- if(metaBinding==null)
- synchronized(MetaBinding.class) {
- if(metaBinding==null)
- metaBinding=new MetaBinding();
- }
-
- return metaBinding;
- }
-
-}
+/*
+ * $Id: MetaBinding.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Binding;
+import org.zoap.xml.Environment;
+
+/**
+ * This "bootstrap" binding carries the necessary information to read in and
+ * extend it by XML-Schema definitions. Since it is restricted to XmlSchema, it is
not
+ * possible to generate fully functional meta-data for infor:Xml with it. Use
+ * org.zoap.xml.meta.builtin.DefaultMetaBinding for that purpose.
+ */
+
+public class MetaBinding extends Binding {
+
+ /** adds XmlSchema in this public constructor */
+
+ public MetaBinding() {
+ addSchema(XmlSchema.getXmlSchema());
+ }
+
+ /** singleton is lazily initialised */
+ private static MetaBinding metaBinding;
+
+ /** public singleton accessor */
+
+ public static MetaBinding getMetaBinding() {
+ if(metaBinding==null)
+ synchronized(MetaBinding.class) {
+ if(metaBinding==null)
+ metaBinding=new MetaBinding();
+ }
+
+ return metaBinding;
+ }
+
+}
1.2 +184 -180 zoap/src/org/zoap/xml/meta/PrimitiveType.java
Index: PrimitiveType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/PrimitiveType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PrimitiveType.java 2000/08/10 21:07:52 1.1
+++ PrimitiveType.java 2000/12/04 12:36:29 1.2
@@ -1,183 +1,193 @@
-/*
- * $Id: PrimitiveType.java,v 1.1 2000/08/10 21:07:52 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.ElementException;
-import org.zoap.xml.Type;
-import org.zoap.xml.TypeException;
-import org.zoap.xml.Environment;
-
-import java.util.Map;
-import java.util.Properties;
-import java.util.Collection;
-
-import java.lang.reflect.InvocationTargetException;
-
-/**
- * XML type around most primitive Java classes that accept a single string in
- * their constructor, such as Integer, String, Boolean, etc.
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public abstract class PrimitiveType extends SimpleType {
-
-
- public PrimitiveType() {
- }
-
- /**
- * @link association
- * @label typeSchema
- */
- /*#XmlSchema typeSchema;*/
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- /**
- * create some primitive value. Defaults to
- * noop, since most of the builtin Java types need a non-mutable
- * input body string to operate correctly
- */
-
- public Object newInstance(Map attributes, Map references, Map nameSpaces)
- throws TypeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
-
Environment.out.print(toString()+".newInstance("+attributes+","+references+","+nameSpaces+")\n");
-
- return null;
- }
-
- /**
- * reading the content of a primitive happens via simply
- * calling the toString method.
- */
-
- public String getContent(Object object) throws TypeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString()+".getContent("+object+")");
-
- if(object!=null)
- return object.toString();
- else
- return null;
- }
-
- /**
- * we have deferred the creation of values to the setContent method
- * to set the immutable content correctly. We assume primitives to
- * accept a single string as the only argument to their constructor
- */
-
- public Object setContent(Object target,String body,String verboseElements,Map
references,Map nameSpaces)
- throws TypeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
-
Environment.out.print(toString()+".setContent("+target+","+body+","+verboseElements+","+references+","+nameSpaces+")\n");
-
- try{
-
- return getAssociatedClass().getConstructor(new Class[] {String.class}).
- newInstance(new Object[] {body});
-
- } catch(NoSuchMethodException e) {
- throw new TypeException();
- } catch(InvocationTargetException e) {
- throw new TypeException();
- } catch(IllegalAccessException e) {
- throw new TypeException();
- } catch(InstantiationException e) {
- throw new TypeException();
- }
- }
-
- public boolean isStateless() {
- return true;
- }
-}
-
-/*
+/*
+ * $Id: PrimitiveType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.ElementException;
+import org.zoap.xml.Type;
+import org.zoap.xml.TypeException;
+import org.zoap.xml.Environment;
+
+import java.util.Map;
+import java.util.Properties;
+import java.util.Collection;
+
+import java.lang.reflect.InvocationTargetException;
+
+/**
+ * XML type around most primitive Java classes that accept a single string in
+ * their constructor, such as Integer, String, Boolean, etc.
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public abstract class PrimitiveType extends SimpleType {
+
+
+ public PrimitiveType() {
+ }
+
+ /**
+ * @link association
+ * @label typeSchema
+ */
+ /*#XmlSchema typeSchema;*/
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ /**
+ * create some primitive value. Defaults to
+ * noop, since most of the builtin Java types need a non-mutable
+ * input body string to operate correctly
+ */
+
+ public Object newInstance(Map attributes, Map references, Map nameSpaces)
+ throws TypeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+
Environment.out.print(toString()+".newInstance("+attributes+","+references+","+nameSpaces+")\n");
+
+ return null;
+ }
+
+ /**
+ * reading the content of a primitive happens via simply
+ * calling the toString method.
+ */
+
+ public String getContent(Object object) throws TypeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString()+".getContent("+object+")");
+
+ if(object!=null)
+ return object.toString();
+ else
+ return null;
+ }
+
+ /**
+ * we have deferred the creation of values to the setContent method
+ * to set the immutable content correctly. We assume primitives to
+ * accept a single string as the only argument to their constructor
+ */
+
+ public Object setContent(Object target,String body,String verboseElements,Map
references,Map nameSpaces)
+ throws TypeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+
Environment.out.print(toString()+".setContent("+target+","+body+","+verboseElements+","+references+","+nameSpaces+")\n");
+
+ try{
+
+ return getAssociatedClass().getConstructor(new Class[] {String.class}).
+ newInstance(new Object[] {body});
+
+ } catch(NoSuchMethodException e) {
+ throw new TypeException();
+ } catch(InvocationTargetException e) {
+ throw new TypeException();
+ } catch(IllegalAccessException e) {
+ throw new TypeException();
+ } catch(InstantiationException e) {
+ throw new TypeException();
+ }
+ }
+
+ public boolean isStateless() {
+ return true;
+ }
+}
+
+/*
* $Log: PrimitiveType.java,v $
- * Revision 1.1 2000/08/10 21:07:52 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:27 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.2.2.1 2000/07/11 08:08:35 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.2 2000/07/06 16:55:06 jung
- * moved the default binding caches in order to make apartments
- * with different versions of the same class possible.
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:52 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.2 2000/07/20 14:35:27 jung
+ * some refactoring inside infor:xml
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.2.2.1 2000/07/11 08:08:35 jung
+ * added functionality to store retrieve a part of a types elements
+ * within "ignored" strings. Useful for writing generic handlers that
+ * just process a part of the XML and transfer the rest.
+ *
+ * Revision 1.2 2000/07/06 16:55:06 jung
+ * moved the default binding caches in order to make apartments
+ * with different versions of the same class possible.
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +103 -99 zoap/src/org/zoap/xml/meta/QNameType.java
Index: QNameType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/QNameType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- QNameType.java 2000/08/10 21:07:52 1.1
+++ QNameType.java 2000/12/04 12:36:29 1.2
@@ -1,102 +1,112 @@
-/*
- * $Id: QNameType.java,v 1.1 2000/08/10 21:07:52 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import de.infor.ce.util.URN;
-
-/**
- * XML wrapper around de.infor.ce.util.URN. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class QNameType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private QNameType() {
- setAssociatedClass(String.class);
- setTypeName("QName");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static QNameType qNameType=new QNameType();
-
- /** global access */
- public static QNameType getQNameType() {
- return qNameType;
- }
-
-
-}
-
-/*
+/*
+ * $Id: QNameType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import de.infor.ce.util.URN;
+
+/**
+ * XML wrapper around de.infor.ce.util.URN. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class QNameType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private QNameType() {
+ setAssociatedClass(String.class);
+ setTypeName("QName");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static QNameType qNameType=new QNameType();
+
+ /** global access */
+ public static QNameType getQNameType() {
+ return qNameType;
+ }
+
+
+}
+
+/*
* $Log: QNameType.java,v $
- * Revision 1.1 2000/08/10 21:07:52 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:52 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +92 -92 zoap/src/org/zoap/xml/meta/SchemaElement.java
Index: SchemaElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/SchemaElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SchemaElement.java 2000/08/10 21:07:52 1.1
+++ SchemaElement.java 2000/12/04 12:36:29 1.2
@@ -1,92 +1,92 @@
-/*
- * $Id: SchemaElement.java,v 1.1 2000/08/10 21:07:52 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/**
- * The meta-element that describes xsd:schema appearances. We currently
- * assume that schema is a top-level element and does not appear
- * within other tags, hence it must not be set, just collected in reading.
- * Writing is disabled at the moment.
- */
-
-public class SchemaElement extends Element {
-
- /** constructor
- * @link association
- * @label type
- */
- /*#SchemaType lnkSchemaType;*/
-
- private SchemaElement() {
- setAppearanceName("Schema");
- setType(SchemaType.getSchemaType());
- }
-
- /**
- * @link association
- * @label appearanceSchema
- */
-
- /*#XmlSchema lnkXmlSchema;*/
-
- public Schema getAppearanceSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- /** is a singleton */
-
- private static SchemaElement schemaElement=new SchemaElement();
-
- /* public accessor */
-
- public static SchemaElement getSchemaElement() {
- return schemaElement;
- }
-
-}
+/*
+ * $Id: SchemaElement.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/**
+ * The meta-element that describes xsd:schema appearances. We currently
+ * assume that schema is a top-level element and does not appear
+ * within other tags, hence it must not be set, just collected in reading.
+ * Writing is disabled at the moment.
+ */
+
+public class SchemaElement extends Element {
+
+ /** constructor
+ * @link association
+ * @label type
+ */
+ /*#SchemaType lnkSchemaType;*/
+
+ private SchemaElement() {
+ setAppearanceName("Schema");
+ setType(SchemaType.getSchemaType());
+ }
+
+ /**
+ * @link association
+ * @label appearanceSchema
+ */
+
+ /*#XmlSchema lnkXmlSchema;*/
+
+ public Schema getAppearanceSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ /** is a singleton */
+
+ private static SchemaElement schemaElement=new SchemaElement();
+
+ /* public accessor */
+
+ public static SchemaElement getSchemaElement() {
+ return schemaElement;
+ }
+
+}
1.2 +89 -89 zoap/src/org/zoap/xml/meta/SchemaType.java
Index: SchemaType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/SchemaType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SchemaType.java 2000/08/10 21:07:52 1.1
+++ SchemaType.java 2000/12/04 12:36:29 1.2
@@ -1,89 +1,89 @@
-/*
- * $Id: SchemaType.java,v 1.1 2000/08/10 21:07:52 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/** The meta-meta type that describes the structure of xsd:Schema appearances. */
-
-public class SchemaType extends ComplexType {
-
- /** constructor
- * @link association
- * @label typeSchema
- */
-
- /*#TargetNamespaceAttribute lnkTargetNameSpaceAttribute;*/
-
- private SchemaType() {
- setTypeName("Schema");
- setAssociatedClass(Schema.class);
- addAttribute(TargetNamespaceAttribute.getTargetNamespaceAttribute());
- addElement(ElementElement.getElementElement());
- addElement(ComplexTypeElement.getComplexTypeElement());
- addElement(SimpleTypeElement.getSimpleTypeElement());
- addElement(ImportElement.getImportElement());
- }
-
- /**
- * @link association
- * @label typeSchema
- */
-
- /*#XmlSchema lnkXmlSchema */
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- private static SchemaType schemaType = new SchemaType();
-
- public static SchemaType getSchemaType() {
- return schemaType;
- }
-
-}
+/*
+ * $Id: SchemaType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/** The meta-meta type that describes the structure of xsd:Schema appearances. */
+
+public class SchemaType extends ComplexType {
+
+ /** constructor
+ * @link association
+ * @label typeSchema
+ */
+
+ /*#TargetNamespaceAttribute lnkTargetNameSpaceAttribute;*/
+
+ private SchemaType() {
+ setTypeName("Schema");
+ setAssociatedClass(Schema.class);
+ addAttribute(TargetNamespaceAttribute.getTargetNamespaceAttribute());
+ addElement(ElementElement.getElementElement());
+ addElement(ComplexTypeElement.getComplexTypeElement());
+ addElement(SimpleTypeElement.getSimpleTypeElement());
+ addElement(ImportElement.getImportElement());
+ }
+
+ /**
+ * @link association
+ * @label typeSchema
+ */
+
+ /*#XmlSchema lnkXmlSchema */
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ private static SchemaType schemaType = new SchemaType();
+
+ public static SchemaType getSchemaType() {
+ return schemaType;
+ }
+
+}
1.2 +101 -97 zoap/src/org/zoap/xml/meta/ShortType.java
Index: ShortType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/ShortType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ShortType.java 2000/08/10 21:07:53 1.1
+++ ShortType.java 2000/12/04 12:36:29 1.2
@@ -1,100 +1,110 @@
-/*
- * $Id: ShortType.java,v 1.1 2000/08/10 21:07:53 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-/**
- * XML wrapper around java.lang.Short. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class ShortType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private ShortType() {
- setAssociatedClass(Short.class);
- setTypeName("short");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static ShortType shortType=new ShortType();
-
- /** global access */
- public static ShortType getShortType() {
- return shortType;
- }
-
-
-}
-
-/*
+/*
+ * $Id: ShortType.java,v 1.2 2000/12/04 12:36:29 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+/**
+ * XML wrapper around java.lang.Short. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class ShortType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private ShortType() {
+ setAssociatedClass(Short.class);
+ setTypeName("short");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static ShortType shortType=new ShortType();
+
+ /** global access */
+ public static ShortType getShortType() {
+ return shortType;
+ }
+
+
+}
+
+/*
* $Log: ShortType.java,v $
- * Revision 1.1 2000/08/10 21:07:53 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:29 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:53 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +139 -166 zoap/src/org/zoap/xml/meta/SimpleTypeAttribute.java
Index: SimpleTypeAttribute.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/SimpleTypeAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleTypeAttribute.java 2000/08/10 21:07:53 1.1
+++ SimpleTypeAttribute.java 2000/12/04 12:36:30 1.2
@@ -1,166 +1,139 @@
-/*
- * $Id: SimpleTypeAttribute.java,v 1.1 2000/08/10 21:07:53 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.meta.builtin.ClassElement;
-import org.zoap.xml.meta.builtin.CollectionElement;
-import org.zoap.xml.meta.builtin.ClassType;
-import org.zoap.xml.meta.builtin.CollectionType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.IllegalTypeException;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Type;
-import org.zoap.xml.Element;
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * The meta-ttribute xsd:type that will
- * set a simple type into a given appearance
- */
-
-public class SimpleTypeAttribute extends Attribute {
-
- /**
- * Its a qname attribute
- * @link association
- * @label type
- */
-
- /*#QNameType lnkQNameType;*/
-
- private SimpleTypeAttribute() {
- setAppearanceName("type");
- setType(QNameType.getQNameType());
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- /**
- * The setAttributeContent method is able to lazily initiate types
- * not yet mentioned in the binding for enabling forward and cyclic
referencing.
- */
-
- public Object setAttributeContent(Object target, Object value,
- Map references, Map nameSpaces) throws AttributeException {
-
- // target appearance must be initialised in each case
-
- try{
-
- if (target instanceof Appearance) {
-
- // first we try to interpret the qname as prefix:type
- Schema schema = (Schema)nameSpaces.
- get(Environment.getNameSpacePrefix((String)value));
-
- Type type = null;
-
- // here it is?
- if (schema != null) {
-
- // yes, then the second part of the qname must be a
type
- type =
schema.getType(Environment.getProperName((String)value));
-
- // its already initialised?
- if (type == null) {
-
- type = new SimpleType();
-
- // register it in the right schema
- type.setTypeSchema(schema);
- // set the type name accordingly
-
type.setTypeName(Environment.getProperName((String)value));
- // and add it prophilactically to the schema
- schema.addType(type);
- }
-
- } else {
-
- // no, then we think that the name should be a local
type
- type = (Type)references.get(value);
-
- // its here
- if (type == null) {
-
- // no, sucking forward reference, we assume
its a complex
- // type, but this must not be always true
- type = new SimpleType();
-
- // schema is hopefully set later
-
- // set the name to the given qname
- type.setTypeName((String)value);
- // register locally
- references.put(value, type);
- }
- }
-
- // next assign it to the element
- ((Appearance)target).setType(type);
- }
- } catch(IllegalTypeException e) {
- throw new AttributeException();
- }
- return target;
- }
-
- /** its a singleton */
- private static SimpleTypeAttribute typeAttribute =
- new SimpleTypeAttribute();
-
- /** public accessor */
- public static SimpleTypeAttribute getSimpleTypeAttribute() {
- return typeAttribute;
- }
-
-}
+/*
+ * $Id: SimpleTypeAttribute.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.meta.builtin.ClassElement;
+import org.zoap.xml.meta.builtin.CollectionElement;
+import org.zoap.xml.meta.builtin.ClassType;
+import org.zoap.xml.meta.builtin.CollectionType;
+import org.zoap.xml.Attribute;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.IllegalTypeException;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Type;
+import org.zoap.xml.Element;
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Environment;
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * The meta-ttribute xsd:type that will
+ * set a simple type into a given appearance
+ */
+public class SimpleTypeAttribute extends Attribute {
+ /**
+ * Its a qname attribute
+ * @link association
+ * @label type
+ */
+
+ /*#QNameType lnkQNameType;*/
+
+ private SimpleTypeAttribute() {
+ setAppearanceName("type");
+ setType(QNameType.getQNameType());
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ /**
+ * The setAttributeContent method is able to lazily initiate types
+ * not yet mentioned in the binding for enabling forward and cyclic referencing.
+ */
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) throws AttributeException {
+ // target appearance must be initialised in each case
+ if (target instanceof Appearance) {
+ // first we try to interpret the qname as prefix:type
+ Schema schema =
(Schema)nameSpaces.get(Environment.getNameSpacePrefix((String)value));
+ Type type = null;
+ // here it is?
+ if (schema != null) {
+ // yes, then the second part of the qname must be a type
+ type = schema.getType(Environment.getProperName((String)value));
+ // its already initialised?
+ if (type == null) {
+ type = new SimpleType();
+ // register it in the right schema
+ type.setTypeSchema(schema);
+ // set the type name accordingly
+ type.setTypeName(Environment.getProperName((String)value));
+ // and add it prophilactically to the schema
+ schema.addType(type);
+ }
+ } else {
+ // no, then we think that the name should be a local type
+ type = (Type)references.get(value);
+ // its here
+ if (type == null) {
+ // no, sucking forward reference, we assume its a complex
+ // type, but this must not be always true
+ type = new SimpleType();
+ // schema is hopefully set later
+ // set the name to the given qname
+ type.setTypeName((String)value);
+ // register locally
+ references.put(value, type);
+ }
+ }
+ try {
+ // next assign it to the element
+ ((Appearance)target).setType(type);
+ } catch (IllegalTypeException e) {
+ throw new AttributeException();
+ }
+ }
+ return target;
+ }
+
+ /** its a singleton */
+ private static SimpleTypeAttribute typeAttribute = new SimpleTypeAttribute();
+
+ /** public accessor */
+ public static SimpleTypeAttribute getSimpleTypeAttribute() {
+ return typeAttribute;
+ }
+}
1.2 +72 -72 zoap/src/org/zoap/xml/meta/SimpleTypeElement.java
Index: SimpleTypeElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/SimpleTypeElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleTypeElement.java 2000/08/10 21:07:53 1.1
+++ SimpleTypeElement.java 2000/12/04 12:36:30 1.2
@@ -1,72 +1,72 @@
-/*
- * $Id: SimpleTypeElement.java,v 1.1 2000/08/10 21:07:53 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Element that describes xsd:complexType appearances
- */
-
-public class SimpleTypeElement extends Element {
-
- private SimpleTypeElement() {
- setAppearanceName("SimpleType");
- setType(SimpleTypeType.getSimpleTypeType());
- }
-
- public Schema getAppearanceSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- private static SimpleTypeElement simpleTypeElement=new SimpleTypeElement();
-
- public static SimpleTypeElement getSimpleTypeElement() {
- return simpleTypeElement;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: SimpleTypeElement.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Element that describes xsd:complexType appearances
+ */
+
+public class SimpleTypeElement extends Element {
+
+ private SimpleTypeElement() {
+ setAppearanceName("SimpleType");
+ setType(SimpleTypeType.getSimpleTypeType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ private static SimpleTypeElement simpleTypeElement=new SimpleTypeElement();
+
+ public static SimpleTypeElement getSimpleTypeElement() {
+ return simpleTypeElement;
+ }
+
+}
1.2 +79 -79 zoap/src/org/zoap/xml/meta/SimpleTypeType.java
Index: SimpleTypeType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/SimpleTypeType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleTypeType.java 2000/08/10 21:07:54 1.1
+++ SimpleTypeType.java 2000/12/04 12:36:30 1.2
@@ -1,79 +1,79 @@
-/*
- * $Id: SimpleTypeType.java,v 1.1 2000/08/10 21:07:54 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:complexType appearances.
- */
-
-public class SimpleTypeType extends ComplexType {
-
- private SimpleTypeType() {
- setTypeName("SimpleType");
- setAssociatedClass(SimpleType.class);
- addAttribute(TypeNameAttribute.getTypeNameAttribute());
- addAttribute(TypeBaseAttribute.getTypeBaseAttribute());
- }
-
- public Schema getTypeSchema() {
- return XmlSchema.getXmlSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static SimpleTypeType simpleTypeType=new SimpleTypeType();
-
- public static SimpleTypeType getSimpleTypeType() {
- return simpleTypeType;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: SimpleTypeType.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:complexType appearances.
+ */
+
+public class SimpleTypeType extends ComplexType {
+
+ private SimpleTypeType() {
+ setTypeName("SimpleType");
+ setAssociatedClass(SimpleType.class);
+ addAttribute(TypeNameAttribute.getTypeNameAttribute());
+ addAttribute(TypeBaseAttribute.getTypeBaseAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return XmlSchema.getXmlSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static SimpleTypeType simpleTypeType=new SimpleTypeType();
+
+ public static SimpleTypeType getSimpleTypeType() {
+ return simpleTypeType;
+ }
+
+}
1.2 +101 -97 zoap/src/org/zoap/xml/meta/StringType.java
Index: StringType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/StringType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StringType.java 2000/08/10 21:07:54 1.1
+++ StringType.java 2000/12/04 12:36:30 1.2
@@ -1,100 +1,110 @@
-/*
- * $Id: StringType.java,v 1.1 2000/08/10 21:07:54 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-/**
- * XML wrapper around java.lang.String. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class StringType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private StringType() {
- setAssociatedClass(String.class);
- setTypeName("string");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static StringType stringType=new StringType();
-
- /** global access */
- public static StringType getStringType() {
- return stringType;
- }
-
-
-}
-
-/*
+/*
+ * $Id: StringType.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+/**
+ * XML wrapper around java.lang.String. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class StringType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private StringType() {
+ setAssociatedClass(String.class);
+ setTypeName("string");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static StringType stringType=new StringType();
+
+ /** global access */
+ public static StringType getStringType() {
+ return stringType;
+ }
+
+
+}
+
+/*
* $Log: StringType.java,v $
- * Revision 1.1 2000/08/10 21:07:54 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:30 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:54 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +129 -129 zoap/src/org/zoap/xml/meta/TargetNamespaceAttribute.java
Index: TargetNamespaceAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/TargetNamespaceAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TargetNamespaceAttribute.java 2000/08/10 21:07:54 1.1
+++ TargetNamespaceAttribute.java 2000/12/04 12:36:30 1.2
@@ -1,129 +1,129 @@
-/*
- * $Id: TargetNamespaceAttribute.java,v 1.1 2000/08/10 21:07:54 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Schema;
-import org.zoap.xml.XmlObjectReader;
-import org.zoap.xml.Environment;
-
-import de.infor.ce.util.URN;
-
-import java.util.Properties;
-import java.util.Map;
-
-/** The meta-attribute xsd:targetNameSpace sets the urn of a given schema
- * Actually it does something more to cope with forward and cyclic references in
- * building up a meta-model: It extends the binding with a new schema, if the
- * urn has not yet been seen!
- */
-
-public class TargetNamespaceAttribute extends Attribute {
-
- /**
- * constructor
- * @link association
- * @label appearanceSchema
- */
-
- /*#XmlSchema lnkXmlSchema;*/
-
- /**
- * @link association
- * @label type
- */
-
- /*#URIType lnkUriType;*/
-
- private TargetNamespaceAttribute() {
- setAppearanceName("targetNamespace");
- setType(URIType.getURIType());
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- /**
- * resolves the targetnamespace/urn into a schema, at the same time is able
- * to extend the binding. Makes use of a very special reference in which we have
- * hidden the XmlObjectReader state to access and manipulate the meta-model.
- */
-
- public Object setAttributeContent(Object target, Object value,
- Map references, Map nameSpaces) {
-
- // value must be a URN
- if (value instanceof URN) {
-
- // try to lookup the corresponding schema
- Schema schema = ((XmlObjectReader)references.
- get("org.zoap.xml.XmlObjectReader")).getBinding().
- getSchema((URN)value);
-
- // in case this urn has not yet been mentioned, extend the binding
- if (schema == null) {
- schema = new Schema();
- // make sure the urn is set before adding it
- schema.setUrn((URN)value);
- // ok, now add it
-
((XmlObjectReader)references.get("org.zoap.xml.XmlObjectReader")).
- getBinding().addSchema(schema);
- }
-
- return schema;
- } else
- return null;
- }
-
- /** a singleton */
-
- private static TargetNamespaceAttribute targetNamespaceAttribute =
- new TargetNamespaceAttribute();
-
- /** public accessor */
-
- public static TargetNamespaceAttribute getTargetNamespaceAttribute() {
- return targetNamespaceAttribute;
- }
-
-}
+/*
+ * $Id: TargetNamespaceAttribute.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Schema;
+import org.zoap.xml.XmlObjectReader;
+import org.zoap.xml.Environment;
+
+import de.infor.ce.util.URN;
+
+import java.util.Properties;
+import java.util.Map;
+
+/** The meta-attribute xsd:targetNameSpace sets the urn of a given schema
+ * Actually it does something more to cope with forward and cyclic references in
+ * building up a meta-model: It extends the binding with a new schema, if the
+ * urn has not yet been seen!
+ */
+
+public class TargetNamespaceAttribute extends Attribute {
+
+ /**
+ * constructor
+ * @link association
+ * @label appearanceSchema
+ */
+
+ /*#XmlSchema lnkXmlSchema;*/
+
+ /**
+ * @link association
+ * @label type
+ */
+
+ /*#URIType lnkUriType;*/
+
+ private TargetNamespaceAttribute() {
+ setAppearanceName("targetNamespace");
+ setType(URIType.getURIType());
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ /**
+ * resolves the targetnamespace/urn into a schema, at the same time is able
+ * to extend the binding. Makes use of a very special reference in which we have
+ * hidden the XmlObjectReader state to access and manipulate the meta-model.
+ */
+
+ public Object setAttributeContent(Object target, Object value,
+ Map references, Map nameSpaces) {
+
+ // value must be a URN
+ if (value instanceof URN) {
+
+ // try to lookup the corresponding schema
+ Schema schema = ((XmlObjectReader)references.
+ get("org.zoap.xml.XmlObjectReader")).getBinding().
+ getSchema((URN)value);
+
+ // in case this urn has not yet been mentioned, extend the binding
+ if (schema == null) {
+ schema = new Schema();
+ // make sure the urn is set before adding it
+ schema.setUrn((URN)value);
+ // ok, now add it
+
((XmlObjectReader)references.get("org.zoap.xml.XmlObjectReader")).
+ getBinding().addSchema(schema);
+ }
+
+ return schema;
+ } else
+ return null;
+ }
+
+ /** a singleton */
+
+ private static TargetNamespaceAttribute targetNamespaceAttribute =
+ new TargetNamespaceAttribute();
+
+ /** public accessor */
+
+ public static TargetNamespaceAttribute getTargetNamespaceAttribute() {
+ return targetNamespaceAttribute;
+ }
+
+}
No revision
No revision
No revision
No revision
1.2 +156 -156 zoap/src/org/zoap/xml/meta/TypeAttribute.java
Index: TypeAttribute.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/TypeAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TypeAttribute.java 2000/08/10 21:07:56 1.1
+++ TypeAttribute.java 2000/12/04 12:36:30 1.2
@@ -1,156 +1,156 @@
-/*
- * $Id: TypeAttribute.java,v 1.1 2000/08/10 21:07:56 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.meta.builtin.ClassElement;
-import org.zoap.xml.meta.builtin.CollectionElement;
-import org.zoap.xml.meta.builtin.ClassType;
-import org.zoap.xml.meta.builtin.CollectionType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Type;
-import org.zoap.xml.Element;
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/** Meta-Attribute xsd:type that will set the type of a given appearance */
-
-public class TypeAttribute extends Attribute {
-
- /** Its a qname attribute */
-
- private TypeAttribute() {
- setAppearanceName("type");
- setType(QNameType.getQNameType());
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- /**
- * The setAttributeContent method is able to lazily initiate types
- * not yet mentioned in the binding for enabling forward and cyclic referencing
- * There is currently a large problem with pre-initialising types
- * referenced in elements, since we cannot know in advance what concrete type
this
- * will be. I hate those XML-suckers. Never thought about easy processing for
their
- * shit. So we try to guess from the embedding element what the type will be
- */
-
- public Object setAttributeContent(Object target, Object value,
- Map references, Map nameSpaces) {
-
- // target appearance must be initialised in each case
-
- if (target instanceof Element) {
-
- // first we try to interpret the qname as prefix:type
- Schema schema = (Schema)nameSpaces.
- get(Environment.getNameSpacePrefix((String)value));
-
- Type type = null;
-
- // here it is?
- if (schema != null) {
-
- // yes, then the second part of the qname must be a
type
- type =
schema.getType(Environment.getProperName((String)value));
-
- // its already initialised?
- if (type == null) {
-
- // no, then we prepare some class type from
which we hope it
- // will be right
- type = new Type();
-
- // register it in the right schema
- type.setTypeSchema(schema);
- // set the type name accordingly
-
type.setTypeName(Environment.getProperName((String)value));
- // and add it prophilactically to the schema
- schema.addType(type);
- }
-
- } else {
-
- // no, then we think that the name should be a local
type
- type = (Type)references.get(value);
-
- // its here
- if (type == null) {
-
- // no, sucking forward reference, we assume
its a complex
- // type, but this must not be always true
- type = new Type();
-
- // schema is hopefully set later
-
- // set the name to the given qname
- type.setTypeName((String)value);
- // register locally
- references.put(value, type);
- }
- }
-
- // next assign it to the element
- ((Element)target).setType(type);
-
- }
-
- return target;
- }
-
- private static TypeAttribute typeAttribute =
- new TypeAttribute();
-
- public static TypeAttribute getTypeAttribute() {
- return typeAttribute;
- }
-
-}
+/*
+ * $Id: TypeAttribute.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.meta.builtin.ClassElement;
+import org.zoap.xml.meta.builtin.CollectionElement;
+import org.zoap.xml.meta.builtin.ClassType;
+import org.zoap.xml.meta.builtin.CollectionType;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Type;
+import org.zoap.xml.Element;
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+
+/** Meta-Attribute xsd:type that will set the type of a given appearance */
+
+public class TypeAttribute extends Attribute {
+
+ /** Its a qname attribute */
+
+ private TypeAttribute() {
+ setAppearanceName("type");
+ setType(QNameType.getQNameType());
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ /**
+ * The setAttributeContent method is able to lazily initiate types
+ * not yet mentioned in the binding for enabling forward and cyclic referencing
+ * There is currently a large problem with pre-initialising types
+ * referenced in elements, since we cannot know in advance what concrete type
this
+ * will be. I hate those XML-suckers. Never thought about easy processing for
their
+ * shit. So we try to guess from the embedding element what the type will be
+ */
+
+ public Object setAttributeContent(Object target, Object value,
+ Map references, Map nameSpaces) {
+
+ // target appearance must be initialised in each case
+
+ if (target instanceof Element) {
+
+ // first we try to interpret the qname as prefix:type
+ Schema schema = (Schema)nameSpaces.
+ get(Environment.getNameSpacePrefix((String)value));
+
+ Type type = null;
+
+ // here it is?
+ if (schema != null) {
+
+ // yes, then the second part of the qname must be a
type
+ type =
schema.getType(Environment.getProperName((String)value));
+
+ // its already initialised?
+ if (type == null) {
+
+ // no, then we prepare some class type from
which we hope it
+ // will be right
+ type = new Type();
+
+ // register it in the right schema
+ type.setTypeSchema(schema);
+ // set the type name accordingly
+
type.setTypeName(Environment.getProperName((String)value));
+ // and add it prophilactically to the schema
+ schema.addType(type);
+ }
+
+ } else {
+
+ // no, then we think that the name should be a local
type
+ type = (Type)references.get(value);
+
+ // its here
+ if (type == null) {
+
+ // no, sucking forward reference, we assume
its a complex
+ // type, but this must not be always true
+ type = new Type();
+
+ // schema is hopefully set later
+
+ // set the name to the given qname
+ type.setTypeName((String)value);
+ // register locally
+ references.put(value, type);
+ }
+ }
+
+ // next assign it to the element
+ ((Element)target).setType(type);
+
+ }
+
+ return target;
+ }
+
+ private static TypeAttribute typeAttribute =
+ new TypeAttribute();
+
+ public static TypeAttribute getTypeAttribute() {
+ return typeAttribute;
+ }
+
+}
1.2 +149 -149 zoap/src/org/zoap/xml/meta/TypeBaseAttribute.java
Index: TypeBaseAttribute.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/TypeBaseAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TypeBaseAttribute.java 2000/08/10 21:07:57 1.1
+++ TypeBaseAttribute.java 2000/12/04 12:36:30 1.2
@@ -1,149 +1,149 @@
-/*
- * $Id: TypeBaseAttribute.java,v 1.1 2000/08/10 21:07:57 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.meta.builtin.ClassType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Type;
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.IllegalSuperTypeException;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-/**
- * Meta-Meta Attribute xsd:base that should set the supertype of a given type
- */
-
-public class TypeBaseAttribute extends Attribute {
-
- private TypeBaseAttribute() {
- setAppearanceName("base");
- setType(QNameType.getQNameType());
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
- throws AttributeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
-
Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+references+","+nameSpaces+")");
-
- if(target instanceof ComplexType && value instanceof String) {
- Schema schema=(Schema)
- nameSpaces.get(Environment.getNameSpacePrefix((String) value));
-
- Type superType=null;
-
- if(schema!=null) {
- superType=schema.getType(Environment.getProperName((String) value));
-
- if(superType==null) {
- superType=new ClassType();
- superType.setTypeName(Environment.getProperName((String) value));
- superType.setTypeSchema(schema);
- schema.addType(superType);
- }
- } else {
- superType=(Type) references.get(value);
-
- if(superType==null) {
- superType=new ClassType();
- superType.setTypeName((String) value);
- references.put(value,superType);
- }
- }
-
- ((ComplexType) target).setSuperType(superType);
-
- } else if(target instanceof SimpleType && value instanceof String) {
-
- Schema schema=(Schema)
- nameSpaces.get(Environment.getNameSpacePrefix((String) value));
- SimpleType superType;
-
- if(schema!=null) {
- superType=(SimpleType) schema.getType(Environment.getProperName((String)
value));
-
- if(superType==null) {
- superType=new SimpleType();
- superType.setTypeName(Environment.getProperName((String) value));
- superType.setTypeSchema(schema);
- schema.addType(superType);
- }
- } else {
-
- superType=(SimpleType) references.get(value);
-
- if(superType==null) {
- superType=new SimpleType();
- superType.setTypeName(Environment.getProperName((String) value));
- references.put(value,superType);
- }
- }
-
- ((SimpleType) target).setSuperType(superType);
- }
-
- return target;
- }
-
- private static TypeBaseAttribute typeBaseAttribute=
- new TypeBaseAttribute();
-
- public static TypeBaseAttribute getTypeBaseAttribute() {
- return typeBaseAttribute;
- }
-
-}
+/*
+ * $Id: TypeBaseAttribute.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.meta.builtin.ClassType;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Type;
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.IllegalSuperTypeException;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * Meta-Meta Attribute xsd:base that should set the supertype of a given type
+ */
+
+public class TypeBaseAttribute extends Attribute {
+
+ private TypeBaseAttribute() {
+ setAppearanceName("base");
+ setType(QNameType.getQNameType());
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
+ throws AttributeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+
Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+references+","+nameSpaces+")");
+
+ if(target instanceof ComplexType && value instanceof String) {
+ Schema schema=(Schema)
+ nameSpaces.get(Environment.getNameSpacePrefix((String) value));
+
+ Type superType=null;
+
+ if(schema!=null) {
+ superType=schema.getType(Environment.getProperName((String) value));
+
+ if(superType==null) {
+ superType=new ClassType();
+ superType.setTypeName(Environment.getProperName((String) value));
+ superType.setTypeSchema(schema);
+ schema.addType(superType);
+ }
+ } else {
+ superType=(Type) references.get(value);
+
+ if(superType==null) {
+ superType=new ClassType();
+ superType.setTypeName((String) value);
+ references.put(value,superType);
+ }
+ }
+
+ ((ComplexType) target).setSuperType(superType);
+
+ } else if(target instanceof SimpleType && value instanceof String) {
+
+ Schema schema=(Schema)
+ nameSpaces.get(Environment.getNameSpacePrefix((String) value));
+ SimpleType superType;
+
+ if(schema!=null) {
+ superType=(SimpleType) schema.getType(Environment.getProperName((String)
value));
+
+ if(superType==null) {
+ superType=new SimpleType();
+ superType.setTypeName(Environment.getProperName((String) value));
+ superType.setTypeSchema(schema);
+ schema.addType(superType);
+ }
+ } else {
+
+ superType=(SimpleType) references.get(value);
+
+ if(superType==null) {
+ superType=new SimpleType();
+ superType.setTypeName(Environment.getProperName((String) value));
+ references.put(value,superType);
+ }
+ }
+
+ ((SimpleType) target).setSuperType(superType);
+ }
+
+ return target;
+ }
+
+ private static TypeBaseAttribute typeBaseAttribute=
+ new TypeBaseAttribute();
+
+ public static TypeBaseAttribute getTypeBaseAttribute() {
+ return typeBaseAttribute;
+ }
+
+}
1.2 +99 -98 zoap/src/org/zoap/xml/meta/TypeNameAttribute.java
Index: TypeNameAttribute.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/TypeNameAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TypeNameAttribute.java 2000/08/10 21:07:57 1.1
+++ TypeNameAttribute.java 2000/12/04 12:36:30 1.2
@@ -1,98 +1,99 @@
-/*
- * $Id: TypeNameAttribute.java,v 1.1 2000/08/10 21:07:57 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Element;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Environment;
-import org.zoap.xml.Type;
-import org.zoap.xml.SimpleType;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * Meta-Meta Attribute xsd:name that should set the name of a particular appearance
- */
-
-public class TypeNameAttribute extends Attribute {
-
- private TypeNameAttribute() {
- setAppearanceName("name");
- setType(IDType.getIDType());
- setAppearanceSchema(XmlSchema.getXmlSchema());
- }
-
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
- references+","+nameSpaces+")\n");
-
- if(target instanceof Type && value instanceof String) {
-
- ((Type) target).setTypeName((String) value);
- references.put(value,target);
-
- } else if(target==null)
- target=references.get(value);
-
- return target;
- }
-
- private static TypeNameAttribute typeNameAttribute=
- new TypeNameAttribute();
-
- public static TypeNameAttribute getTypeNameAttribute() {
- return typeNameAttribute;
- }
-
-}
+/*
+ * $Id: TypeNameAttribute.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Element;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Environment;
+import org.zoap.xml.Type;
+import org.zoap.xml.Schema;
+import org.zoap.xml.XmlObjectReader;
+import org.zoap.xml.SimpleType;
+import java.util.Properties;
+import java.util.Map;
+
+/** Meta-Meta Attribute xsd:name that should set the name of a particular
appearance */
+public class TypeNameAttribute extends Attribute {
+ private TypeNameAttribute() {
+ setAppearanceName("name");
+ setType(IDType.getIDType());
+ setAppearanceSchema(XmlSchema.getXmlSchema());
+ }
+
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
+ if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString() + ".setAttributeContent(" + target +
"," + value + "," + references +
+ "," + nameSpaces + ")\n");
+ if (target instanceof Type && value instanceof String) {
+ ((Type)target).setTypeName((String)value);
+ references.put(value, target);
+ } else if (target == null) {
+ target = references.get(value);
+ // work-around to access forward-defined types
+ if (target == null) {
+ XmlObjectReader reader =
(XmlObjectReader)references.get("org.zoap.xml.XmlObjectReader");
+ Object lastTarget = null;
+ if (!reader.getTargetStack().empty() && (lastTarget =
reader.getTargetStack().peek()) instanceof Schema) {
+ target = ((Schema)lastTarget).getType((String)value);
+ if(target!=null) {
+ references.put(value,target);
+ }
+ }
+ }
+ }
+ return target;
+ }
+
+ private static TypeNameAttribute typeNameAttribute = new TypeNameAttribute();
+
+ public static TypeNameAttribute getTypeNameAttribute() {
+ return typeNameAttribute;
+ }
+}
1.2 +103 -99 zoap/src/org/zoap/xml/meta/URIType.java
Index: URIType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/URIType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- URIType.java 2000/08/10 21:07:57 1.1
+++ URIType.java 2000/12/04 12:36:30 1.2
@@ -1,102 +1,112 @@
-/*
- * $Id: URIType.java,v 1.1 2000/08/10 21:07:57 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import de.infor.ce.util.URN;
-
-/**
- * XML wrapper around de.infor.ce.util.URN. Implemented as a singleton
- * <br>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class URIType extends PrimitiveType {
-
- /** constructor cannot be faked anymore */
- private URIType() {
- setAssociatedClass(URN.class);
- setTypeName("URI");
- }
-
- /**
- * static reference, non-lazy since usage of this class is equivalent with
- * instantiation
- */
-
- private static URIType uriType=new URIType();
-
- /** global access */
- public static URIType getURIType() {
- return uriType;
- }
-
-
-}
-
-/*
+/*
+ * $Id: URIType.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import de.infor.ce.util.URN;
+
+/**
+ * XML wrapper around de.infor.ce.util.URN. Implemented as a singleton
+ * <br>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class URIType extends PrimitiveType {
+
+ /** constructor cannot be faked anymore */
+ private URIType() {
+ setAssociatedClass(URN.class);
+ setTypeName("URI");
+ }
+
+ /**
+ * static reference, non-lazy since usage of this class is equivalent with
+ * instantiation
+ */
+
+ private static URIType uriType=new URIType();
+
+ /** global access */
+ public static URIType getURIType() {
+ return uriType;
+ }
+
+
+}
+
+/*
* $Log: URIType.java,v $
- * Revision 1.1 2000/08/10 21:07:57 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
\ No newline at end of file
+ * Revision 1.2 2000/12/04 12:36:30 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:57 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +129 -124 zoap/src/org/zoap/xml/meta/XmlSchema.java
Index: XmlSchema.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/XmlSchema.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- XmlSchema.java 2000/08/10 21:07:58 1.1
+++ XmlSchema.java 2000/12/04 12:36:30 1.2
@@ -1,127 +1,138 @@
-/*
- * $Id: XmlSchema.java,v 1.1 2000/08/10 21:07:58 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.xml.meta;
-
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-import org.zoap.xml.Element;
-import org.zoap.xml.Type;
-
-import de.infor.ce.util.URN;
-
-/**
- * The schema representation of "http://www.w3.org/1999/XmlSchema". Contains the
meta-elements to
- * describe schemas, elements, and a lot of the basic data-types. Is implemented as
a singleton.
- */
-
-public class XmlSchema extends Schema {
-
- /** private constructor, initialises just the types yet */
-
- private XmlSchema() {
-
- if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString() + "()\n");
-
- setUrn(new URN(new String[] { "http://www.w3.org/1999/XMLSchema" }
- ));
-
- }
-
- /** private reference to singleton. Since use of the class automatically means
use of the singleton, its not lazy. */
-
- private static XmlSchema xmlSchema = new XmlSchema();
-
- static {
- xmlSchema.addType(BooleanType.getBooleanType());
- xmlSchema.addType(ByteType.getByteType());
- xmlSchema.addType(DoubleType.getDoubleType());
- xmlSchema.addType(FloatType.getFloatType());
- xmlSchema.addType(IntegerType.getIntegerType());
- xmlSchema.addType(LongType.getLongType());
- xmlSchema.addType(ShortType.getShortType());
- xmlSchema.addType(StringType.getStringType());
- xmlSchema.addType(IDType.getIDType());
- xmlSchema.addType(IDRefType.getIDRefType());
- xmlSchema.addType(URIType.getURIType());
- xmlSchema.addType(QNameType.getQNameType());
- xmlSchema.addType(SchemaType.getSchemaType());
- xmlSchema.addType(ElementType.getElementType());
- xmlSchema.addType(ComplexTypeType.getComplexTypeType());
- xmlSchema.addType(SimpleTypeType.getSimpleTypeType());
- xmlSchema.addElement(SchemaElement.getSchemaElement());
- }
-
- /** public accessor to singleton */
-
- public static XmlSchema getXmlSchema() {
- return xmlSchema;
- }
-}
-
-/*
+/*
+ * $Id: XmlSchema.java,v 1.2 2000/12/04 12:36:30 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.xml.meta;
+
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+import org.zoap.xml.Element;
+import org.zoap.xml.Type;
+
+import de.infor.ce.util.URN;
+
+/**
+ * The schema representation of "http://www.w3.org/1999/XmlSchema". Contains the
meta-elements to
+ * describe schemas, elements, and a lot of the basic data-types. Is implemented as
a singleton.
+ */
+
+public class XmlSchema extends Schema {
+
+ /** private constructor, initialises just the types yet */
+
+ private XmlSchema() {
+
+ if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString() + "()\n");
+
+ setUrn(new URN(new String[] { "http://www.w3.org/1999/XMLSchema" }
+ ));
+
+ }
+
+ /** private reference to singleton. Since use of the class automatically means
use of the singleton, its not lazy. */
+
+ private static XmlSchema xmlSchema = new XmlSchema();
+
+ static {
+ xmlSchema.addType(BooleanType.getBooleanType());
+ xmlSchema.addType(DecimalType.getDecimalType());
+ xmlSchema.addType(ByteType.getByteType());
+ xmlSchema.addType(DoubleType.getDoubleType());
+ xmlSchema.addType(FloatType.getFloatType());
+ xmlSchema.addType(IntegerType.getIntegerType());
+ xmlSchema.addType(LongType.getLongType());
+ xmlSchema.addType(ShortType.getShortType());
+ xmlSchema.addType(StringType.getStringType());
+ xmlSchema.addType(IDType.getIDType());
+ xmlSchema.addType(IDRefType.getIDRefType());
+ xmlSchema.addType(URIType.getURIType());
+ xmlSchema.addType(QNameType.getQNameType());
+ xmlSchema.addType(SchemaType.getSchemaType());
+ xmlSchema.addType(ElementType.getElementType());
+ xmlSchema.addType(ComplexTypeType.getComplexTypeType());
+ xmlSchema.addType(SimpleTypeType.getSimpleTypeType());
+ xmlSchema.addElement(SchemaElement.getSchemaElement());
+ }
+
+ /** public accessor to singleton */
+
+ public static XmlSchema getXmlSchema() {
+ return xmlSchema;
+ }
+}
+
+/*
* $Log: XmlSchema.java,v $
- * Revision 1.1 2000/08/10 21:07:58 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:20 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:19 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:25 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.1.1 2000/07/06 14:11:29 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:30 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:58 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:19 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:25 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:29 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ */
1.2 +364 -355 zoap/src/org/zoap/xml/meta/meta.dfPackage
Index: meta.dfPackage
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/meta.dfPackage,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- meta.dfPackage 2000/08/10 21:07:51 1.1
+++ meta.dfPackage 2000/12/04 12:36:30 1.2
@@ -1,358 +1,373 @@
-package id38blncb1vpvpgcb2e7dhd;
-
-/**
-@version 2.0
-@physicalPackage
-@__modelType diagram
-*/
-class diagram {
-/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.FloatType:oiref><oihard>
-@__modelType reference
-*/
-class reference {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.IDRefType:oiref><oihard>
-@__modelType reference
-*/
-class reference22 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.IntegerType:oiref><oihard>
-@__modelType reference
-*/
-class reference23 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.PrimitiveType:oiref><oihard>
-@__modelType reference
-*/
-class reference24 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.StringType:oiref><oihard>
-@__modelType reference
-*/
-class reference25 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.DoubleType:oiref><oihard>
-@__modelType reference
-*/
-class reference26 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.XmlSchema:oiref><oihard>
-@__modelType reference
-*/
-class reference27 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ByteType:oiref><oihard>
-@__modelType reference
-*/
-class reference28 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.IDType:oiref><oihard>
-@__modelType reference
-*/
-class reference29 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.LongType:oiref><oihard>
-@__modelType reference
-*/
-class reference30 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.BooleanType:oiref><oihard>
-@__modelType reference
-*/
-class reference31 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ShortType:oiref><oihard>
-@__modelType reference
-*/
-class reference32 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.SchemaElement:oiref><oihard>
-@__modelType reference
-*/
-class reference33 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.SchemaType:oiref><oihard>
-@__modelType reference
-*/
-class reference34 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ElementElement:oiref><oihard>
-@__modelType reference
-*/
-class reference35 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ElementType:oiref><oihard>
-@__modelType reference
-*/
-class reference36 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.AppearanceNameAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference37 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.TypeAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference38 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.AttributeElement:oiref><oihard>
-@__modelType reference
-*/
-class reference39 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.AttributeType:oiref><oihard>
-@__modelType reference
-*/
-class reference41 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ComplexTypeElement:oiref><oihard>
-@__modelType reference
-*/
-class reference43 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ComplexTypeType:oiref><oihard>
-@__modelType reference
-*/
-class reference44 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.TargetNamespaceAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference45 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.TypeBaseAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference46 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.MetaBinding:oiref><oihard>
-@__modelType reference
-*/
-class reference47 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.URIType:oiref><oihard>
-@__modelType reference
-*/
-class reference2 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.AppearanceRefAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference3 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.SimpleTypeType:oiref><oihard>
-@__modelType reference
-*/
-class reference4 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.SimpleTypeElement:oiref><oihard>
-@__modelType reference
-*/
-class reference5 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.TypeNameAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference6 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.QNameType:oiref><oihard>
-@__modelType reference
-*/
-class reference7 {
-}/**
-@__ref <oiref:design#Class#id4p75kca236g8jca238l4p.diagram:oiref><oihard>
-@__modelType reference
-*/
-class reference16 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ImportType:oiref><oihard>
-@__modelType reference
-*/
-class reference17 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.ImportElement:oiref><oihard>
-@__modelType reference
-*/
-class reference18 {
-}/**
-@__ref <oiref:java#Class#org.zoap.xml.meta.SimpleTypeAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference89 {
-}}/**
-<!--
=========================================================================================================
-->
-<!-- $Id: meta.dfPackage,v 1.1 2000/08/10 21:07:51 jung Exp $ -->
-<!-- Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12, -->
-<!-- D-66299 Friedrichsthal, Germany. All Rights Reserved. -->
-<!-- -->
-<!-- License Statement -->
-<!-- -->
-<!-- Redistribution and use of this software and associated documentation
("Software"), with or without -->
-<!-- modification, are permitted provided that the following conditions are
met: -->
-<!-- -->
-<!-- 1. Redistributions of source code must retain copyright statements and
notices. -->
-<!-- Redistributions must also contain a copy of this document. -->
-<!-- -->
-<!-- 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of -->
-<!-- conditions and the following disclaimer in the documentation and/or
other materials provided -->
-<!-- with the distribution. -->
-<!-- -->
-<!-- 3. The end-user documentation included with the redistribution, if any,
must include the following -->
-<!-- acknowledgment: "This product includes software developed by infor:
business solutions AG -->
-<!-- (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself, -->
-<!-- if and wherever such third-party acknowledgments normally appear. -->
-<!-- -->
-<!-- 4. The name "infor" must not be used to endorse or promote products
derived from this -->
-<!-- Software without prior written permission of infor: business solutions
AG. -->
-<!-- For written permission, please contact [EMAIL PROTECTED]>
-<!-- -->
-<!-- 5. Products derived from this Software may not be called "infor" nor may
"infor" appear -->
-<!-- in their names without prior written permission of infor: business
solutions AG. infor -->
-<!-- is a registered trademark of infor:business solutions AG. -->
-<!-- -->
-<!-- Disclaimer -->
-<!-- -->
-<!-- THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY -->
-<!-- EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF -->
-<!-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -->
-<!-- -->
-<!-- IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,-->
-<!-- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, -->
-<!-- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) -->
-<!-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT -->
-<!-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, -->
-<!-- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
-<!--
=========================================================================================================
-->
-
-<H2> The infor:Xml Meta-Meta-Model </h2>
-
-Just as proposed by the SGML/XML semantics, meta-data for describing the structure
of
-XML documents are formulated themselves in SGML/XML using a bootstrapping process.
-
-<br>
-
-This is also realised in XML-Schema which contains (besides of a few necessary
data-types) the
-XML-language to define Schemas, Elements, Attribute and Types.
-
-<br>
-
-infor:XMl makes use of this construction to extend its meta-model by allowing to
input
-additional meta-data from external files. For that purpose, this package contains
the
-bootstrapping meta-meta-data that steer the process of inputting Xml-Schema files.
-
-
-<hr>
-<small> Last change of $RCSfile: meta.dfPackage,v $ by $Author: jung $ on $Date:
2000/08/10 21:07:51 $;
-See source for logging information.
-<p>
-Copyright 2000 (C) <a href="http://www.infor.de">infor:business solutions AG</a>,
Hauerstrasse 12,
-D-66299 Friedrichsthal, Germany. All Rights Reserved.
-</p>
-</small>
-
-<!--
+package id38blncb1vpvpgcb2e7dhd;
+
+/**
+@version 2.0
+@physicalPackage
+@__modelType diagram
+*/
+class diagram {
+/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.FloatType:oiref><oihard>
+@__modelType reference
+*/
+class reference {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.IDRefType:oiref><oihard>
+@__modelType reference
+*/
+class reference22 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.IntegerType:oiref><oihard>
+@__modelType reference
+*/
+class reference23 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.PrimitiveType:oiref><oihard>
+@__modelType reference
+*/
+class reference24 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.StringType:oiref><oihard>
+@__modelType reference
+*/
+class reference25 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.DoubleType:oiref><oihard>
+@__modelType reference
+*/
+class reference26 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.XmlSchema:oiref><oihard>
+@__modelType reference
+*/
+class reference27 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ByteType:oiref><oihard>
+@__modelType reference
+*/
+class reference28 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.IDType:oiref><oihard>
+@__modelType reference
+*/
+class reference29 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.LongType:oiref><oihard>
+@__modelType reference
+*/
+class reference30 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.BooleanType:oiref><oihard>
+@__modelType reference
+*/
+class reference31 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ShortType:oiref><oihard>
+@__modelType reference
+*/
+class reference32 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.SchemaElement:oiref><oihard>
+@__modelType reference
+*/
+class reference33 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.SchemaType:oiref><oihard>
+@__modelType reference
+*/
+class reference34 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ElementElement:oiref><oihard>
+@__modelType reference
+*/
+class reference35 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ElementType:oiref><oihard>
+@__modelType reference
+*/
+class reference36 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.AppearanceNameAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference37 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.TypeAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference38 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.AttributeElement:oiref><oihard>
+@__modelType reference
+*/
+class reference39 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.AttributeType:oiref><oihard>
+@__modelType reference
+*/
+class reference41 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ComplexTypeElement:oiref><oihard>
+@__modelType reference
+*/
+class reference43 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ComplexTypeType:oiref><oihard>
+@__modelType reference
+*/
+class reference44 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.TargetNamespaceAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference45 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.TypeBaseAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference46 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.MetaBinding:oiref><oihard>
+@__modelType reference
+*/
+class reference47 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.URIType:oiref><oihard>
+@__modelType reference
+*/
+class reference2 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.AppearanceRefAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference3 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.SimpleTypeType:oiref><oihard>
+@__modelType reference
+*/
+class reference4 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.SimpleTypeElement:oiref><oihard>
+@__modelType reference
+*/
+class reference5 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.TypeNameAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference6 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.QNameType:oiref><oihard>
+@__modelType reference
+*/
+class reference7 {
+}/**
+@__ref <oiref:design#Class#id4p75kca236g8jca238l4p.diagram:oiref><oihard>
+@__modelType reference
+*/
+class reference16 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ImportType:oiref><oihard>
+@__modelType reference
+*/
+class reference17 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.ImportElement:oiref><oihard>
+@__modelType reference
+*/
+class reference18 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.SimpleTypeAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference89 {
+}/**
+@__ref <oiref:java#Class#org.zoap.xml.meta.DecimalType:oiref><oihard>
+@__modelType reference
+*/
+class reference1 {
+}}/**
+<!--
=========================================================================================================
-->
+<!-- $Id: meta.dfPackage,v 1.2 2000/12/04 12:36:30 jung Exp $ -->
+<!-- Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12, -->
+<!-- D-66299 Friedrichsthal, Germany. All Rights Reserved. -->
+<!-- -->
+<!-- License Statement -->
+<!-- -->
+<!-- Redistribution and use of this software and associated documentation
("Software"), with or without -->
+<!-- modification, are permitted provided that the following conditions are
met: -->
+<!-- -->
+<!-- 1. Redistributions of source code must retain copyright statements and
notices. -->
+<!-- Redistributions must also contain a copy of this document. -->
+<!-- -->
+<!-- 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of -->
+<!-- conditions and the following disclaimer in the documentation and/or
other materials provided -->
+<!-- with the distribution. -->
+<!-- -->
+<!-- 3. The end-user documentation included with the redistribution, if any,
must include the following -->
+<!-- acknowledgment: "This product includes software developed by infor:
business solutions AG -->
+<!-- (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself, -->
+<!-- if and wherever such third-party acknowledgments normally appear. -->
+<!-- -->
+<!-- 4. The name "infor" must not be used to endorse or promote products
derived from this -->
+<!-- Software without prior written permission of infor: business solutions
AG. -->
+<!-- For written permission, please contact [EMAIL PROTECTED]>
+<!-- -->
+<!-- 5. Products derived from this Software may not be called "infor" nor may
"infor" appear -->
+<!-- in their names without prior written permission of infor: business
solutions AG. infor -->
+<!-- is a registered trademark of infor:business solutions AG. -->
+<!-- -->
+<!-- Disclaimer -->
+<!-- -->
+<!-- THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY -->
+<!-- EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF -->
+<!-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -->
+<!-- -->
+<!-- IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,-->
+<!-- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, -->
+<!-- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) -->
+<!-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT -->
+<!-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, -->
+<!-- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
+<!--
=========================================================================================================
-->
+
+<H2> The infor:Xml Meta-Meta-Model </h2>
+
+Just as proposed by the SGML/XML semantics, meta-data for describing the structure
of
+XML documents are formulated themselves in SGML/XML using a bootstrapping process.
+
+<br>
+
+This is also realised in XML-Schema which contains (besides of a few necessary
data-types) the
+XML-language to define Schemas, Elements, Attribute and Types.
+
+<br>
+
+infor:XMl makes use of this construction to extend its meta-model by allowing to
input
+additional meta-data from external files. For that purpose, this package contains
the
+bootstrapping meta-meta-data that steer the process of inputting Xml-Schema files.
+
+
+<hr>
+<small> Last change of $RCSfile: meta.dfPackage,v $ by $Author: jung $ on $Date:
2000/12/04 12:36:30 $;
+See source for logging information.
+<p>
+Copyright 2000 (C) <a href="http://www.infor.de">infor:business solutions AG</a>,
Hauerstrasse 12,
+D-66299 Friedrichsthal, Germany. All Rights Reserved.
+</p>
+</small>
+
+<!--
$Log: meta.dfPackage,v $
- Revision 1.1 2000/08/10 21:07:51 jung
- Initial revision
-
- Revision 1.1.2.1 2000/08/04 17:20:20 jung
- close to beta stadium. Meta-Data import now works.
-
--->
-@__tags
-@shapeType ClassDiagram
-*/
-class __tags {
-}/**
-@__options
-*/
-class __options {
-}/**
-@__positions
<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDRefType#lnkSchemaType:oiref>=337,946,509,946:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.AppearanceRefAttribute:oiref>=467,0,203,146,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.IDType:oiref>=425,578,164,203,1:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.BooleanType#org.zoap.xml.meta.PrimitiveType:oiref>=1258,251,1258,221,971,221,971,185:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.AttributeType:oiref>=2426,230,186,146,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TypeBaseAttribute#typeBaseAttribute:oiref>=2134,601,2134,640,2202,640,2202,572,2163,572:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ElementElement#elementElement:oiref>=1816,175,1816,218,1892,218,1892,142,1849,142:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDRefType#idType:oiref>=305,1077,305,1119,379,1119,379,1045,337,1045:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.XmlSchema:oiref>=509,874,180,108,1:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.ByteType#org.zoap.xml.meta.PrimitiveType:oiref>=531,251,531,221,971,221,971,185:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDType#lnkSchemaType:oiref>=555,781,555,874:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ImportType:oiref>=35,6,170,203,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.XmlSchema#xmlSchema:oiref>=668,982,668,1013,720,1013,720,961,689,961:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.ShortType#org.zoap.xml.meta.PrimitiveType:oiref>=809,251,809,221,971,221,971,185:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.FloatType#floatType:oiref>=373,341,373,369,419,369,419,323,391,323:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.MetaBinding#metaBinding:oiref>=2388,460,2388,491,2440,491,2440,439,2409,439:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AttributeType#attributeType:oiref>=2583,376,2583,415,2651,415,2651,347,2612,347:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.IDRefType:oiref>=173,874,164,203,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SchemaType#schemaElement:oiref>=1234,10,1234,10:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.StringType#stringType:oiref>=1565,341,1565,369,1611,369,1611,323,1583,323:oigroup>
-<oigroup:Composite#label#MemberLink#<oiref:java#Member#org.zoap.xml.meta.PrimitiveType#typeSchema:oiref>=695,590,22,17,0:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IntegerType#integerType:oiref>=1804,360,1804,391,1856,391,1856,339,1825,339:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.SchemaType:oiref>=1369,10,190,127,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.SimpleTypeType:oiref>=178,423,203,146,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ImportElement#importElement:oiref>=867,127,867,162,927,162,927,102,892,102:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ComplexTypeElement#complexTypeElement:oiref>=2513,593,2513,636,2589,636,2589,560,2546,560:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.LongType#longType:oiref>=139,379,139,414,199,414,199,354,164,354:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.QNameType#org.zoap.xml.meta.PrimitiveType:oiref>=288,208,288,221,971,221,971,185:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.DoubleType:oiref>=1896,251,178,90,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AttributeElement#attributeElement:oiref>=1828,619,1828,662,1904,662,1904,586,1861,586:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ComplexTypeType:oiref>=2736,246,203,146,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ComplexTypeType#complexTypeType:oiref>=2910,392,2910,431,2978,431,2978,363,2939,363:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.TypeAttribute:oiref>=2471,10,186,146,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ByteType#byteType:oiref>=585,341,585,369,631,369,631,323,603,323:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.LongType#org.zoap.xml.meta.PrimitiveType:oiref>=87,251,87,221,971,221,971,185:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AttributeElement#elementElement:oiref>=1836,581,1836,616,1896,616,1896,556,1861,556:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDType#idType:oiref>=565,781,565,823,623,823,623,749,589,749:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ShortType#shortType:oiref>=869,341,869,369,915,369,915,323,887,323:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.StringType#org.zoap.xml.meta.PrimitiveType:oiref>=1502,251,1502,221,971,221,971,185:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.QNameType:oiref>=224,118,184,90,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ElementType#elementType:oiref>=2085,156,2085,195,2153,195,2153,127,2114,127:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.URIType#org.zoap.xml.meta.PrimitiveType:oiref>=1025,251,1025,221,971,221,971,185:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TypeAttribute#typeAttribute:oiref>=2628,156,2628,195,2696,195,2696,127,2657,127:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ImportType#importType:oiref>=171,209,171,253,249,253,249,175,205,175:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.FloatType#org.zoap.xml.meta.PrimitiveType:oiref>=315,251,315,221,971,221,971,185:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SchemaType#schemaType:oiref>=1534,137,1534,172,1594,172,1594,112,1559,112:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ElementType:oiref>=1924,10,190,146,1:oigroup>
-<oigroup:<oiref:design#Class#id4p75kca236g8jca238l4p.diagram:oiref>=738,629,164,699,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ShortType:oiref>=731,251,156,90,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.BooleanType:oiref>=1163,251,190,90,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.PrimitiveType#typeSchema:oiref>=943,185,943,201,691,201,691,772,607,772,607,874:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.PrimitiveType:oiref>=916,10,155,175,1:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.DoubleType#org.zoap.xml.meta.PrimitiveType:oiref>=1985,251,1985,221,971,221,971,185:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.LongType:oiref>=10,251,154,128,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.IntegerType:oiref>=1651,251,174,109,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.TypeNameAttribute:oiref>=719,431,203,146,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.DoubleType#doubleType:oiref>=2056,341,2056,369,2102,369,2102,323,2074,323:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SimpleTypeElement#simpleTypeElement:oiref>=639,511,639,546,699,546,699,486,664,486:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.URIType#stringType:oiref>=330,486,330,514,376,514,376,468,348,468:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.TargetNamespaceAttribute:oiref>=2189,10,203,146,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.QNameType#qNameType:oiref>=390,208,390,236,436,236,436,190,408,190:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.StringType:oiref>=1421,251,162,90,1:oigroup>
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.IntegerType#org.zoap.xml.meta.PrimitiveType:oiref>=1738,251,1738,221,971,221,971,185:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TargetNamespaceAttribute#schemaTargetNamespaceAttribute:oiref>=2363,156,2363,195,2431,195,2431,127,2392,127:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TypeNameAttribute#typeNameAttribute:oiref>=893,577,893,616,961,616,961,548,922,548:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SimpleTypeType#simpleTypeType:oiref>=352,569,352,608,420,608,420,540,381,540:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ByteType:oiref>=459,251,144,90,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.MetaBinding:oiref>=2227,352,182,108,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.FloatType:oiref>=239,251,152,90,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.SimpleTypeElement:oiref>=461,384,203,127,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.TypeBaseAttribute:oiref>=1960,455,203,146,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.SchemaElement:oiref>=1091,10,203,127,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AppearanceRefAttribute#appearanceRefAttribute:oiref>=641,146,641,185,709,185,709,117,670,117:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.BooleanType#booleanType:oiref>=1335,341,1335,369,1381,369,1381,323,1353,323:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ComplexTypeElement:oiref>=2343,428,203,165,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ElementElement:oiref>=1646,10,203,165,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.AppearanceNameAttribute:oiref>=2736,10,203,146,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.URIType:oiref>=955,251,140,90,1:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.AttributeElement:oiref>=1658,454,203,165,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AppearanceNameAttribute#appearanceNameAttribute:oiref>=2910,156,2910,195,2978,195,2978,127,2939,127:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SchemaElement#schemaElement:oiref>=1269,137,1269,172,1329,172,1329,112,1294,112:oigroup>
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.ImportElement:oiref>=689,0,203,127,1:oigroup>
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.URIType#uriType:oiref>=1077,341,1077,369,1123,369,1123,323,1095,323:oigroup>
-*/
-class __positions {
-}
\ No newline at end of file
+ Revision 1.2 2000/12/04 12:36:30 jung
+ adopted to latest jboss container,
+
+ added decimal and date
+
+ removed some problems due to forward-referencing in meta-data
+
+ added serialisation policy
+
+ Revision 1.1.1.1 2000/08/10 21:07:51 jung
+ Initial import.
+
+
+ Revision 1.1.2.1 2000/08/04 17:20:20 jung
+ close to beta stadium. Meta-Data import now works.
+
+-->
+@__tags
+@shapeType ClassDiagram
+*/
+class __tags {
+}/**
+@__options
+*/
+class __options {
+}/**
+@__positions
<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDRefType#lnkSchemaType:oiref>=337,946,509,946:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.AppearanceRefAttribute:oiref>=467,0,203,146,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.IDType:oiref>=425,578,164,203,1:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.BooleanType#org.zoap.xml.meta.PrimitiveType:oiref>=1258,251,1258,221,971,221,971,185:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.AttributeType:oiref>=2426,230,186,146,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TypeBaseAttribute#typeBaseAttribute:oiref>=2134,601,2134,640,2202,640,2202,572,2163,572:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ElementElement#elementElement:oiref>=1816,175,1816,218,1892,218,1892,142,1849,142:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDRefType#idType:oiref>=305,1077,305,1119,379,1119,379,1045,337,1045:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.XmlSchema:oiref>=509,874,180,108,1:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.ByteType#org.zoap.xml.meta.PrimitiveType:oiref>=531,251,531,221,971,221,971,185:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDType#lnkSchemaType:oiref>=555,781,555,874:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ImportType:oiref>=35,6,170,203,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.XmlSchema#xmlSchema:oiref>=668,982,668,1013,720,1013,720,961,689,961:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.ShortType#org.zoap.xml.meta.PrimitiveType:oiref>=809,251,809,221,971,221,971,185:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.FloatType#floatType:oiref>=373,341,373,369,419,369,419,323,391,323:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.MetaBinding#metaBinding:oiref>=2388,460,2388,491,2440,491,2440,439,2409,439:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AttributeType#attributeType:oiref>=2583,376,2583,415,2651,415,2651,347,2612,347:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.IDRefType:oiref>=173,874,164,203,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SchemaType#schemaElement:oiref>=1234,10,1234,10:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.StringType#stringType:oiref>=1565,341,1565,369,1611,369,1611,323,1583,323:oigroup>
+<oigroup:Composite#label#MemberLink#<oiref:java#Member#org.zoap.xml.meta.PrimitiveType#typeSchema:oiref>=695,590,22,17,0:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IntegerType#integerType:oiref>=1804,360,1804,391,1856,391,1856,339,1825,339:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.SchemaType:oiref>=1369,10,190,127,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.SimpleTypeType:oiref>=178,423,203,146,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ImportElement#importElement:oiref>=867,127,867,162,927,162,927,102,892,102:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ComplexTypeElement#complexTypeElement:oiref>=2513,593,2513,636,2589,636,2589,560,2546,560:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.LongType#longType:oiref>=139,379,139,414,199,414,199,354,164,354:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.QNameType#org.zoap.xml.meta.PrimitiveType:oiref>=288,208,288,221,971,221,971,185:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.DoubleType:oiref>=1896,251,178,90,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AttributeElement#attributeElement:oiref>=1828,619,1828,662,1904,662,1904,586,1861,586:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ComplexTypeType:oiref>=2736,246,203,146,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ComplexTypeType#complexTypeType:oiref>=2910,392,2910,431,2978,431,2978,363,2939,363:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.TypeAttribute:oiref>=2471,10,186,146,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ByteType#byteType:oiref>=585,341,585,369,631,369,631,323,603,323:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.LongType#org.zoap.xml.meta.PrimitiveType:oiref>=87,251,87,221,971,221,971,185:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AttributeElement#elementElement:oiref>=1836,581,1836,616,1896,616,1896,556,1861,556:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.IDType#idType:oiref>=565,781,565,823,623,823,623,749,589,749:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ShortType#shortType:oiref>=869,341,869,369,915,369,915,323,887,323:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.StringType#org.zoap.xml.meta.PrimitiveType:oiref>=1502,251,1502,221,971,221,971,185:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.QNameType:oiref>=224,118,184,90,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ElementType#elementType:oiref>=2085,156,2085,195,2153,195,2153,127,2114,127:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.URIType#org.zoap.xml.meta.PrimitiveType:oiref>=1025,251,1025,221,971,221,971,185:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TypeAttribute#typeAttribute:oiref>=2628,156,2628,195,2696,195,2696,127,2657,127:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.ImportType#importType:oiref>=171,209,171,253,249,253,249,175,205,175:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.FloatType#org.zoap.xml.meta.PrimitiveType:oiref>=315,251,315,221,971,221,971,185:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SchemaType#schemaType:oiref>=1534,137,1534,172,1594,172,1594,112,1559,112:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ElementType:oiref>=1924,10,190,146,1:oigroup>
+<oigroup:<oiref:design#Class#id4p75kca236g8jca238l4p.diagram:oiref>=738,629,164,699,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ShortType:oiref>=731,251,156,90,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.BooleanType:oiref>=1163,251,190,90,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.PrimitiveType#typeSchema:oiref>=943,185,943,201,691,201,691,772,607,772,607,874:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.PrimitiveType:oiref>=916,10,155,175,1:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.DoubleType#org.zoap.xml.meta.PrimitiveType:oiref>=1985,251,1985,221,971,221,971,185:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.LongType:oiref>=10,251,154,128,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.IntegerType:oiref>=1651,251,174,109,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.TypeNameAttribute:oiref>=719,431,203,146,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.DoubleType#doubleType:oiref>=2056,341,2056,369,2102,369,2102,323,2074,323:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SimpleTypeElement#simpleTypeElement:oiref>=639,511,639,546,699,546,699,486,664,486:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.URIType#stringType:oiref>=330,486,330,514,376,514,376,468,348,468:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.TargetNamespaceAttribute:oiref>=2189,10,203,146,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.QNameType#qNameType:oiref>=390,208,390,236,436,236,436,190,408,190:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.StringType:oiref>=1421,251,162,90,1:oigroup>
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.IntegerType#org.zoap.xml.meta.PrimitiveType:oiref>=1738,251,1738,221,971,221,971,185:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TargetNamespaceAttribute#schemaTargetNamespaceAttribute:oiref>=2363,156,2363,195,2431,195,2431,127,2392,127:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.TypeNameAttribute#typeNameAttribute:oiref>=893,577,893,616,961,616,961,548,922,548:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SimpleTypeType#simpleTypeType:oiref>=352,569,352,608,420,608,420,540,381,540:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ByteType:oiref>=459,251,144,90,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.MetaBinding:oiref>=2227,352,182,108,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.FloatType:oiref>=239,251,152,90,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.SimpleTypeElement:oiref>=461,384,203,127,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.TypeBaseAttribute:oiref>=1960,455,203,146,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.SchemaElement:oiref>=1091,10,203,127,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AppearanceRefAttribute#appearanceRefAttribute:oiref>=641,146,641,185,709,185,709,117,670,117:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.BooleanType#booleanType:oiref>=1335,341,1335,369,1381,369,1381,323,1353,323:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ComplexTypeElement:oiref>=2343,428,203,165,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ElementElement:oiref>=1646,10,203,165,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.AppearanceNameAttribute:oiref>=2736,10,203,146,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.URIType:oiref>=955,251,140,90,1:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.AttributeElement:oiref>=1658,454,203,165,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.AppearanceNameAttribute#appearanceNameAttribute:oiref>=2910,156,2910,195,2978,195,2978,127,2939,127:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.SchemaElement#schemaElement:oiref>=1269,137,1269,172,1329,172,1329,112,1294,112:oigroup>
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.ImportElement:oiref>=689,0,203,127,1:oigroup>
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.URIType#uriType:oiref>=1077,341,1077,369,1123,369,1123,323,1095,323:oigroup>
+*/
+class __positions {
+}
1.1 zoap/src/org/zoap/xml/meta/DecimalType.java
Index: DecimalType.java
===================================================================
/*
* $Id: DecimalType.java,v 1.1 2000/12/04 12:36:28 jung Exp $
* Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
* D-66299 Friedrichsthal, Germany. All Rights Reserved.
*
* License Statement
*
* Redistribution and use of this software and associated documentation
("Software"), with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and
notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
* conditions and the following disclaimer in the documentation and/or
other materials provided
* with the distribution.
*
* 3. The end-user documentation included with the redistribution, if any,
must include the following
* acknowledgment: "This product includes software developed by infor:
business solutions AG
* (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The name "infor" must not be used to endorse or promote products
derived from this
* Software without prior written permission of infor: business solutions
AG.
* For written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
* in their names without prior written permission of infor: business
solutions AG. infor
* is a registered trademark of infor:business solutions AG.
*
* Disclaimer
*
* THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
*
* IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.zoap.xml.meta;
import java.math.BigDecimal;
/**
* XML type around java.lang.Boolean. Implemented as a singleton <br>
* @author $Author: jung $
* @version $Revision: 1.1 $
*/
public class DecimalType extends PrimitiveType {
/** constructor cannot be faked anymore */
private DecimalType() {
setAssociatedClass(BigDecimal.class);
setTypeName("decimal");
}
/** static reference, non-lazy since usage of this class is equivalent with
instantiation */
private static DecimalType decimalType = new DecimalType();
/** global access */
public static DecimalType getDecimalType() {
return decimalType;
}
}
/*
* $Log: DecimalType.java,v $
* Revision 1.1 2000/12/04 12:36:28 jung
* adopted to latest jboss container,
*
* added decimal and date
*
* removed some problems due to forward-referencing in meta-data
*
* added serialisation policy
*
*/