Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » teneo:support for QName
teneo:support for QName [message #114123] Fri, 07 March 2008 22:52 Go to next message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I thought there was a fix for QName in one of the latest builds. I am
using build 200802122150 and I get this error

[java] Initializing database datastore...
[java] javax.jdo.JDOUserException: Field "com.i
mpl.EventDefinitionImpl.alias" is declared as a reference type
(interface/Object
) but no implementation classes of "java.lang.Object" have been found!
[java] at
org.jpox.metadata.MetaDataUtils.getImplementationNamesForRef e

If I substitute "string" instead, my error goes away. Is QName note
supported by teneo?

Julia
Re: teneo:support for QName [message #114125 is a reply to message #114123] Fri, 07 March 2008 23:05 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050009040503020503020503
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Julia,
I have a testcase for qname. I attached some of the (generated) files of the testcase so you can see
if there is a difference with your generated code. Maybe you don't have an explicit use of the QName
type in your code but your members have the type Object instead of QName?

gr. Martin

Julia wrote:
> Hi Martin,
>
> I thought there was a fix for QName in one of the latest builds. I am
> using build 200802122150 and I get this error
>
> [java] Initializing database datastore...
> [java] javax.jdo.JDOUserException: Field "com.i
> mpl.EventDefinitionImpl.alias" is declared as a reference type
> (interface/Object
> ) but no implementation classes of "java.lang.Object" have been found!
> [java] at
> org.jpox.metadata.MetaDataUtils.getImplementationNamesForRef e
>
> If I substitute "string" instead, my error goes away. Is QName note
> supported by teneo?
>
> Julia
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------050009040503020503020503
Content-Type: text/xml;
name="mysql_a_o_package.jdo"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="mysql_a_o_package.jdo"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NU WVBFIGpkbyBT
WVNURU0gImZpbGU6L2phdmF4L2pkby9qZG8uZHRkIj4KCjxqZG8+Cgk8cGFj a2FnZSBuYW1l
PSJvcmcuZWNsaXBzZS5lbWYudGVuZW8uc2FtcGxlcy5lbWYuc2NoZW1hY29u c3RydWN0cy5x
bmFtZS5pbXBsIj4KCQk8Y2xhc3MgbmFtZT0ib3JnLmVjbGlwc2UuZW1mLnRl bmVvLnNhbXBs
ZXMuZW1mLnNjaGVtYWNvbnN0cnVjdHMucW5hbWUuaW1wbC5NeXRlc3RJbXBs IiByZXF1aXJl
cy1leHRlbnQ9InRydWUiIHBlcnNpc3RlbmNlLW1vZGlmaWVyPSJwZXJzaXN0 ZW5jZS1jYXBh
YmxlIiBkZXRhY2hhYmxlPSJ0cnVlIiB0YWJsZT0ibXl0ZXN0IiBpZGVudGl0 eS10eXBlPSJk
YXRhc3RvcmUiPgoJCQk8aW1wbGVtZW50cyBuYW1lPSJvcmcuZWNsaXBzZS5l bWYudGVuZW8u
c2FtcGxlcy5lbWYuc2NoZW1hY29uc3RydWN0cy5xbmFtZS5NeXRlc3QiLz4K CQkJPGltcGxl
bWVudHMgbmFtZT0ib3JnLmVjbGlwc2UuZW1mLmVjb3JlLkVPYmplY3QiLz4K CQkJPGltcGxl
bWVudHMgbmFtZT0ib3JnLmVjbGlwc2UuZW1mLmNvbW1vbi5ub3RpZnkuTm90 aWZpZXIiLz4K
CQkJPGluaGVyaXRhbmNlIHN0cmF0ZWd5PSJuZXctdGFibGUiPgoJCQkJPGRp c2NyaW1pbmF0
b3IgY29sdW1uPSJkdHlwZSIgc3RyYXRlZ3k9InZhbHVlLW1hcCIgdmFsdWU9 Ik15dGVzdCIv
PgoJCQk8L2luaGVyaXRhbmNlPgoJCQk8dmVyc2lvbiBzdHJhdGVneT0idmVy c2lvbi1udW1i
ZXIiIGNvbHVtbj0iZV92ZXJzaW9uIi8+CgkJCTxmaWVsZCBuYW1lPSJkZXNj cmlwdGlvbiIg
cGVyc2lzdGVuY2UtbW9kaWZpZXI9InBlcnNpc3RlbnQiIG51bGwtdmFsdWU9 ImV4Y2VwdGlv
biIvPgoJCQk8ZmllbGQgbmFtZT0ibmFtZSIgcGVyc2lzdGVuY2UtbW9kaWZp ZXI9InBlcnNp
c3RlbnQiIG51bGwtdmFsdWU9ImV4Y2VwdGlvbiIgZW1iZWRkZWQ9InRydWUi Lz4KCQkJPGZp
ZWxkIG5hbWU9Im5hbWVzIiBwZXJzaXN0ZW5jZS1tb2RpZmllcj0icGVyc2lz dGVudCI+CgkJ
CQk8Y29sbGVjdGlvbiBlbGVtZW50LXR5cGU9ImphdmF4LnhtbC5uYW1lc3Bh Y2UuUU5hbWUi
PgoJCQkJCTxleHRlbnNpb24gdmVuZG9yLW5hbWU9Impwb3giIGtleT0iY2Fj aGUtbGF6eS1s
b2FkaW5nIiB2YWx1ZT0idHJ1ZSIvPgoJCQkJPC9jb2xsZWN0aW9uPgoJCQkJ PGpvaW4gbmFt
ZT0ibXl0ZXN0X25hbWVzIi8+CgkJCQk8b3JkZXIgY29sdW1uPSJNWVRFU1Rf TkFNRVNfSURY
Ii8+CgkJCTwvZmllbGQ+CgkJPC9jbGFzcz4KCTwvcGFja2FnZT4KPC9qZG8+
--------------050009040503020503020503
Content-Type: text/x-java;
name="Mytest.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Mytest.java"

/**
* <copyright>
* </copyright>
*
* $Id: Mytest.java,v 1.1 2007/11/15 19:56:40 mtaal Exp $
*/
package org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname;

import javax.xml.namespace.QName;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Mytest</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getNames <em>Names</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest()
* @model extendedMetaData="name='mytest' kind='elementOnly'"
* @generated
*/
public interface Mytest extends EObject {
/**
* Returns the value of the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Description</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest_Description()
* @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
* extendedMetaData="kind='element' name='description' namespace='##targetNamespace'"
* @generated
*/
String getDescription();

/**
* Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
* @see #getDescription()
* @generated
*/
void setDescription(String value);

/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(QName)
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest_Name()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName" required="true"
* extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
* @generated
*/
QName getName();

/**
* Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(QName value);

/**
* Returns the value of the '<em><b>Names</b></em>' attribute list.
* The list contents are of type {@link javax.xml.namespace.QName}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Names</em>' attribute list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Names</em>' attribute list.
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest_Names()
* @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.QName" required="true"
* extendedMetaData="kind='element' name='names' namespace='##targetNamespace'"
* @generated
*/
EList<QName> getNames();

} // Mytest

--------------050009040503020503020503
Content-Type: text/x-java;
name="MytestImpl.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="MytestImpl.java"

/**
* <copyright>
* </copyright>
*
* $Id: MytestImpl.java,v 1.1 2007/11/15 19:56:40 mtaal Exp $
*/
package org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l;

import java.util.Collection;
import javax.xml.namespace.QName;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est;
import org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage;

/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Mytest</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l.MytestImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l.MytestImpl#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l.MytestImpl#getNames <em>Names</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class MytestImpl extends EObjectImpl implements Mytest {
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;

/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;

/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final QName NAME_EDEFAULT = null;

/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected QName name = NAME_EDEFAULT;

/**
* The cached value of the '{@link #getNames() <em>Names</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNames()
* @generated
* @ordered
*/
protected EList<QName> names;

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MytestImpl() {
super();
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return QnamePackage.Literals.MYTEST;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDescription() {
return description;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, QnamePackage.MYTEST__DESCRIPTION, oldDescription, description));
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public QName getName() {
return name;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(QName newName) {
QName oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, QnamePackage.MYTEST__NAME, oldName, name));
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<QName> getNames() {
if (names == null) {
names = new EDataTypeEList<QName>(QName.class, this, QnamePackage.MYTEST__NAMES);
}
return names;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
return getDescription();
case QnamePackage.MYTEST__NAME:
return getName();
case QnamePackage.MYTEST__NAMES:
return getNames();
}
return super.eGet(featureID, resolve, coreType);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
setDescription((String)newValue);
return;
case QnamePackage.MYTEST__NAME:
setName((QName)newValue);
return;
case QnamePackage.MYTEST__NAMES:
getNames().clear();
getNames().addAll((Collection<? extends QName>)newValue);
return;
}
super.eSet(featureID, newValue);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case QnamePackage.MYTEST__NAME:
setName(NAME_EDEFAULT);
return;
case QnamePackage.MYTEST__NAMES:
getNames().clear();
return;
}
super.eUnset(featureID);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
case QnamePackage.MYTEST__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case QnamePackage.MYTEST__NAMES:
return names != null && !names.isEmpty();
}
return super.eIsSet(featureID);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();

StringBuffer result = new StringBuffer(super.toString());
result.append(" (description: ");
result.append(description);
result.append(", name: ");
result.append(name);
result.append(", names: ");
result.append(names);
result.append(')');
return result.toString();
}

} //MytestImpl

--------------050009040503020503020503
Content-Type: text/xml;
name="qname.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="qname.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="qname"
nsURI=" http://www.eclipse.org/emf/teneo/samples/emf/schemaconstruct s/qname" nsPrefix="qname">
<eAnnotations source="http://www.w3.org/XML/1998/namespace">
<details key="lang" value="en"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementWildcard"/>
<details key="name" value=":mixed"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xmlns:prefix"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xsi:schemaLocation"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="atest" upperBound="-2"
eType="#//Mytest" volatile="true" transient="true" derived="true" containment="true"
resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="atest"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Mytest">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="mytest"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="names" unique="false" lowerBound="1"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="names"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>

--------------050009040503020503020503
Content-Type: text/xml;
name="qname.genmodel"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="qname.genmodel"

<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.teneo.samples/src"
modelPluginID="org.eclipse.emf.teneo.samples" modelName="Qname" importerID="org.eclipse.xsd.ecore.importer"
complianceLevel="5.0" copyrightFields="false">
<foreignModel>qname.xsd</foreignModel>
<genPackages prefix="Qname" basePackage="org.eclipse.emf.teneo.samples.emf.schemaconstructs "
resource="XML" disposableProviderFactory="true" ecorePackage="qname.ecore#/">
<genClasses ecoreClass="qname.ecore#//DocumentRoot">
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//DocumentRoot/mixed"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference qname.ecore#//DocumentRoot/xMLNSPrefixMap"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference qname.ecore#//DocumentRoot/xSISchemaLocation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference qname.ecore#//DocumentRoot/atest"/>
</genClasses>
<genClasses ecoreClass="qname.ecore#//Mytest">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//Mytest/description"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//Mytest/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//Mytest/names"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

--------------050009040503020503020503
Content-Type: text/xml;
name="qname.xsd"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="qname.xsd"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHhzOnNj aGVtYSBlbGVt
ZW50Rm9ybURlZmF1bHQ9InF1YWxpZmllZCIgYXR0cmlidXRlRm9ybURlZmF1 bHQ9InVucXVh
bGlmaWVkIiB2ZXJzaW9uPSJ4LngueC54IiB4bWw6bGFuZz0iZW4iCgl4bWxu czplY29yZT0i
aHR0cDovL3d3dy5lY2xpcHNlLm9yZy9lbWYvMjAwMi9FY29yZSIKCXRhcmdl dE5hbWVzcGFj
ZT0iaHR0cDovL3d3dy5lY2xpcHNlLm9yZy9lbWYvdGVuZW8vc2FtcGxlcy9l bWYvc2NoZW1h
Y29uc3RydWN0cy9xbmFtZSIKCXhtbG5zOnRoaXM9Imh0dHA6Ly93d3cuZWNs aXBzZS5vcmcv
ZW1mL3RlbmVvL3NhbXBsZXMvZW1mL3NjaGVtYWNvbnN0cnVjdHMvcW5hbWUi Cgl4bWxuczp4
cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiPgoKCTx4czpl bGVtZW50IG5h
bWU9ImF0ZXN0IiB0eXBlPSJ0aGlzOm15dGVzdCIgLz4KCTx4czpjb21wbGV4 VHlwZSBuYW1l
PSJteXRlc3QiPgoJCTx4czpzZXF1ZW5jZT4KCQkJPHhzOmVsZW1lbnQgbmFt ZT0iZGVzY3Jp
cHRpb24iIHR5cGU9InhzOnN0cmluZyIgLz4KCQkJPHhzOmVsZW1lbnQgbmFt ZT0ibmFtZSIg
dHlwZT0ieHM6UU5hbWUiIC8+CgkJCTx4czplbGVtZW50IG5hbWU9Im5hbWVz IiB0eXBlPSJ4
czpRTmFtZSIgbWF4T2NjdXJzPSJ1bmJvdW5kZWQiLz4KCQk8L3hzOnNlcXVl bmNlPgoJPC94
czpjb21wbGV4VHlwZT4KCjwveHM6c2NoZW1hPg==
--------------050009040503020503020503
Content-Type: text/x-java;
name="QNameAction.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="QNameAction.java"

LyoqCiAqIDxjb3B5cmlnaHQ+CiAqCiAqIENvcHlyaWdodCAoYykgMjAwNSwg MjAwNiwgMjAw
NywgMjAwOCBTcHJpbmdzaXRlIEJWIChUaGUgTmV0aGVybGFuZHMpIGFuZCBv dGhlcnMKICog
QWxsIHJpZ2h0cyByZXNlcnZlZC4gVGhpcyBwcm9ncmFtIGFuZCB0aGUgYWNj b21wYW55aW5n
IG1hdGVyaWFscwogKiBhcmUgbWFkZSBhdmFpbGFibGUgdW5kZXIgdGhlIHRl cm1zIG9mIHRo
ZSBFY2xpcHNlIFB1YmxpYyBMaWNlbnNlIHYxLjAKICogd2hpY2ggYWNjb21w YW5pZXMgdGhp
cyBkaXN0cmlidXRpb24sIGFuZCBpcyBhdmFpbGFibGUgYXQKICogaHR0cDov L3d3dy5lY2xp
cHNlLm9yZy9sZWdhbC9lcGwtdjEwLmh0bWwKICoKICogQ29udHJpYnV0b3Jz OgogKiAgIE1h
cnRpbiBUYWFsCiAqIDwvY29weXJpZ2h0PgogKgogKiAkSWQ6IFFOYW1lQWN0 aW9uLmphdmEs
diAxLjMgMjAwOC8wMi8yOCAwNzowODoxNiBtdGFhbCBFeHAgJAogKi8KCnBh Y2thZ2Ugb3Jn
LmVjbGlwc2UuZW1mLnRlbmVvLnRlc3QuZW1mLnNjaGVtYWNvbnN0cnVjdHM7 CgppbXBvcnQg
amF2YXgueG1sLm5hbWVzcGFjZS5RTmFtZTsKCmltcG9ydCBvcmcuZWNsaXBz ZS5lbWYudGVu
ZW8uc2FtcGxlcy5lbWYuc2NoZW1hY29uc3RydWN0cy5xbmFtZS5NeXRlc3Q7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0cDovL3d3dy5lbHZl ci5vcmcvIiAr
IGkpOwoJCQkJYXNzZXJ0RXF1YWxzKHFOYW1lLmdldExvY2FsUGFydCgpLCAi bG9jYWwiICsg
aSk7CgkJCQlhc3NlcnRFcXVhbHMocU5hbWUuZ2V0UHJlZml4KCksICJwcmVm aXgiICsgaSk7
CgkJCX0KCQkJYXNzZXJ0RXF1YWxzKG15dGVzdC5nZXROYW1lKCkuZ2V0TmFt ZXNwYWNlVVJJ
KCksICJodHRwOi8vd3d3LnNwcmluZ3NpdGUuY29tIik7CgkJCWFzc2VydEVx dWFscyhteXRl
c3QuZ2V0TmFtZSgpLmdldExvY2FsUGFydCgpLCAibmFtZSIpOwoJCQlhc3Nl cnRFcXVhbHMo
bXl0ZXN0LmdldE5hbWUoKS5nZXRQcmVmaXgoKSwgImUiKTsKCQkJc3RvcmUu Y29tbWl0VHJh
bnNhY3Rpb24oKTsKCQl9Cgl9Cn0=
--------------050009040503020503020503
Content-Type: text/x-java;
name="QNameMapping.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="QNameMapping.java"

LyoqCiAqIDxjb3B5cmlnaHQ+CiAqCiAqIENvcHlyaWdodCAoYykgMjAwNSwg MjAwNiwgMjAw
NywgMjAwOCBTcHJpbmdzaXRlIEJWIChUaGUgTmV0aGVybGFuZHMpIGFuZCBv dGhlcnMKICog
QWxsIHJpZ2h0cyByZXNlcnZlZC4gVGhpcyBwcm9ncmFtIGFuZCB0aGUgYWNj b21wYW55aW5n
IG1hdGVyaWFscwogKiBhcmUgbWFkZSBhdmFpbGFibGUgdW5kZXIgdGhlIHRl cm1zIG9mIHRo
ZSBFY2xpcHNlIFB1YmxpYyBMaWNlbnNlIHYxLjAKICogd2hpY2ggYWNjb21w YW5pZXMgdGhp
cyBkaXN0cmlidXRpb24sIGFuZCBpcyBhdmFpbGFibGUgYXQKICogaHR0cDov L3d3dy5lY2xp
cHNlLm9yZy9sZWdhbC9lcGwtdjEwLmh0bWwKICoKICogQ29udH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0ci5pbmRl
eE9mKCJ9Iik7CgkJaWYgKGVuZEluZGV4TlMgPT0gLTEpIHsKCQkJdGhyb3cg bmV3IEpwb3hT
dG9yZUV4Y2VwdGlvbigiU3RyaW5nICIgKyBzdHIgKwoJCQkJCSIgY2FuIG5v dCBiZSBjb252
ZXJ0ZWQgdG8gYSBRTmFtZSwgbWlzc2luZyBlbmQgbnMgZGVsaW1pdGVyIH0g Iik7CgkJfQoJ
CWZpbmFsIGludCBwcmVmaXhJbmRleCA9IHN0ci5pbmRleE9mKCI6IiwgZW5k SW5kZXhOUyk7
CgkJaWYgKHByZWZpeEluZGV4ID09IC0xKSB7CgkJCXRocm93IG5ldyBKcG94 U3RvcmVFeGNl
cHRpb24oIlN0cmluZyAiICsgc3RyICsKCQkJCQkiIGNhbiBub3QgYmUgY29u dmVydGVkIHRv
IGEgUU5hbWUsIG1pc3NpbmcgcHJlZml4IGRlbGltaXRlciA6Iik7CgkJfQoJ CWZpbmFsIFN0
cmluZyBucyA9IHN0ci5zdWJzdHJpbmcoMSwgZW5kSW5kZXhOUyk7CgkJZmlu YWwgU3RyaW5n
IHByZWZpeCA9IHN0ci5zdWJzdHJpbmcoZW5kSW5kZXhOUyArIDEsIHByZWZp eEluZGV4KTsK
CQlmaW5hbCBTdHJpbmcgbG9jYWxQYXJ0ID0gc3RyLnN1YnN0cmluZyhwcmVm aXhJbmRleCAr
IDEpOwoJCXJldHVybiBuZXcgUU5hbWUobnMsIGxvY2FsUGFydCwgcHJlZml4 KTsKCX0KCn0=
--------------050009040503020503020503--
Re: teneo:support for QName [message #615635 is a reply to message #114123] Fri, 07 March 2008 23:05 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050009040503020503020503
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Julia,
I have a testcase for qname. I attached some of the (generated) files of the testcase so you can see
if there is a difference with your generated code. Maybe you don't have an explicit use of the QName
type in your code but your members have the type Object instead of QName?

gr. Martin

Julia wrote:
> Hi Martin,
>
> I thought there was a fix for QName in one of the latest builds. I am
> using build 200802122150 and I get this error
>
> [java] Initializing database datastore...
> [java] javax.jdo.JDOUserException: Field "com.i
> mpl.EventDefinitionImpl.alias" is declared as a reference type
> (interface/Object
> ) but no implementation classes of "java.lang.Object" have been found!
> [java] at
> org.jpox.metadata.MetaDataUtils.getImplementationNamesForRef e
>
> If I substitute "string" instead, my error goes away. Is QName note
> supported by teneo?
>
> Julia
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------050009040503020503020503
Content-Type: text/xml;
name="mysql_a_o_package.jdo"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="mysql_a_o_package.jdo"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NU WVBFIGpkbyBT
WVNURU0gImZpbGU6L2phdmF4L2pkby9qZG8uZHRkIj4KCjxqZG8+Cgk8cGFj a2FnZSBuYW1l
PSJvcmcuZWNsaXBzZS5lbWYudGVuZW8uc2FtcGxlcy5lbWYuc2NoZW1hY29u c3RydWN0cy5x
bmFtZS5pbXBsIj4KCQk8Y2xhc3MgbmFtZT0ib3JnLmVjbGlwc2UuZW1mLnRl bmVvLnNhbXBs
ZXMuZW1mLnNjaGVtYWNvbnN0cnVjdHMucW5hbWUuaW1wbC5NeXRlc3RJbXBs IiByZXF1aXJl
cy1leHRlbnQ9InRydWUiIHBlcnNpc3RlbmNlLW1vZGlmaWVyPSJwZXJzaXN0 ZW5jZS1jYXBh
YmxlIiBkZXRhY2hhYmxlPSJ0cnVlIiB0YWJsZT0ibXl0ZXN0IiBpZGVudGl0 eS10eXBl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ZT0idHJ1ZSIvPgoJCQkJPC9jb2xsZWN0aW9uPgoJCQkJ PGpvaW4gbmFt
ZT0ibXl0ZXN0X25hbWVzIi8+CgkJCQk8b3JkZXIgY29sdW1uPSJNWVRFU1Rf TkFNRVNfSURY
Ii8+CgkJCTwvZmllbGQ+CgkJPC9jbGFzcz4KCTwvcGFja2FnZT4KPC9qZG8+
--------------050009040503020503020503
Content-Type: text/x-java;
name="Mytest.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Mytest.java"

/**
* <copyright>
* </copyright>
*
* $Id: Mytest.java,v 1.1 2007/11/15 19:56:40 mtaal Exp $
*/
package org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname;

import javax.xml.namespace.QName;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Mytest</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getNames <em>Names</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest()
* @model extendedMetaData="name='mytest' kind='elementOnly'"
* @generated
*/
public interface Mytest extends EObject {
/**
* Returns the value of the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Description</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest_Description()
* @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
* extendedMetaData="kind='element' name='description' namespace='##targetNamespace'"
* @generated
*/
String getDescription();

/**
* Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
* @see #getDescription()
* @generated
*/
void setDescription(String value);

/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(QName)
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest_Name()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName" required="true"
* extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
* @generated
*/
QName getName();

/**
* Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(QName value);

/**
* Returns the value of the '<em><b>Names</b></em>' attribute list.
* The list contents are of type {@link javax.xml.namespace.QName}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Names</em>' attribute list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Names</em>' attribute list.
* @see org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage#getMytest_Names()
* @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.QName" required="true"
* extendedMetaData="kind='element' name='names' namespace='##targetNamespace'"
* @generated
*/
EList<QName> getNames();

} // Mytest

--------------050009040503020503020503
Content-Type: text/x-java;
name="MytestImpl.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="MytestImpl.java"

/**
* <copyright>
* </copyright>
*
* $Id: MytestImpl.java,v 1.1 2007/11/15 19:56:40 mtaal Exp $
*/
package org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l;

import java.util.Collection;
import javax.xml.namespace.QName;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Myt est;
import org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.Qna mePackage;

/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Mytest</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l.MytestImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l.MytestImpl#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.qname.imp l.MytestImpl#getNames <em>Names</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class MytestImpl extends EObjectImpl implements Mytest {
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;

/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;

/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final QName NAME_EDEFAULT = null;

/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected QName name = NAME_EDEFAULT;

/**
* The cached value of the '{@link #getNames() <em>Names</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNames()
* @generated
* @ordered
*/
protected EList<QName> names;

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MytestImpl() {
super();
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return QnamePackage.Literals.MYTEST;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDescription() {
return description;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, QnamePackage.MYTEST__DESCRIPTION, oldDescription, description));
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public QName getName() {
return name;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(QName newName) {
QName oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, QnamePackage.MYTEST__NAME, oldName, name));
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<QName> getNames() {
if (names == null) {
names = new EDataTypeEList<QName>(QName.class, this, QnamePackage.MYTEST__NAMES);
}
return names;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
return getDescription();
case QnamePackage.MYTEST__NAME:
return getName();
case QnamePackage.MYTEST__NAMES:
return getNames();
}
return super.eGet(featureID, resolve, coreType);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
setDescription((String)newValue);
return;
case QnamePackage.MYTEST__NAME:
setName((QName)newValue);
return;
case QnamePackage.MYTEST__NAMES:
getNames().clear();
getNames().addAll((Collection<? extends QName>)newValue);
return;
}
super.eSet(featureID, newValue);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case QnamePackage.MYTEST__NAME:
setName(NAME_EDEFAULT);
return;
case QnamePackage.MYTEST__NAMES:
getNames().clear();
return;
}
super.eUnset(featureID);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case QnamePackage.MYTEST__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
case QnamePackage.MYTEST__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case QnamePackage.MYTEST__NAMES:
return names != null && !names.isEmpty();
}
return super.eIsSet(featureID);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();

StringBuffer result = new StringBuffer(super.toString());
result.append(" (description: ");
result.append(description);
result.append(", name: ");
result.append(name);
result.append(", names: ");
result.append(names);
result.append(')');
return result.toString();
}

} //MytestImpl

--------------050009040503020503020503
Content-Type: text/xml;
name="qname.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="qname.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="qname"
nsURI=" http://www.eclipse.org/emf/teneo/samples/emf/schemaconstruct s/qname" nsPrefix="qname">
<eAnnotations source="http://www.w3.org/XML/1998/namespace">
<details key="lang" value="en"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementWildcard"/>
<details key="name" value=":mixed"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xmlns:prefix"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xsi:schemaLocation"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="atest" upperBound="-2"
eType="#//Mytest" volatile="true" transient="true" derived="true" containment="true"
resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="atest"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Mytest">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="mytest"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="names" unique="false" lowerBound="1"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="names"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>

--------------050009040503020503020503
Content-Type: text/xml;
name="qname.genmodel"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="qname.genmodel"

<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.teneo.samples/src"
modelPluginID="org.eclipse.emf.teneo.samples" modelName="Qname" importerID="org.eclipse.xsd.ecore.importer"
complianceLevel="5.0" copyrightFields="false">
<foreignModel>qname.xsd</foreignModel>
<genPackages prefix="Qname" basePackage="org.eclipse.emf.teneo.samples.emf.schemaconstructs "
resource="XML" disposableProviderFactory="true" ecorePackage="qname.ecore#/">
<genClasses ecoreClass="qname.ecore#//DocumentRoot">
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//DocumentRoot/mixed"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference qname.ecore#//DocumentRoot/xMLNSPrefixMap"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference qname.ecore#//DocumentRoot/xSISchemaLocation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference qname.ecore#//DocumentRoot/atest"/>
</genClasses>
<genClasses ecoreClass="qname.ecore#//Mytest">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//Mytest/description"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//Mytest/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute qname.ecore#//Mytest/names"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

--------------050009040503020503020503
Content-Type: text/xml;
name="qname.xsd"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="qname.xsd"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHhzOnNj aGVtYSBlbGVt
ZW50Rm9ybURlZmF1bHQ9InF1YWxpZmllZCIgYXR0cmlidXRlRm9ybURlZmF1 bHQ9InVucXVh
bGlmaWVkIiB2ZXJzaW9uPSJ4LngueC54IiB4bWw6bGFuZz0iZW4iCgl4bWxu czplY29yZT0i
aHR0cDovL3d3dy5lY2xpcHNlLm9yZy9lbWYvMjAwMi9FY29yZSIKCXRhcmdl dE5hbWVzcGFj
ZT0iaHR0cDovL3d3dy5lY2xpcHNlLm9yZy9lbWYvdGVuZW8vc2FtcGxlcy9l bWYvc2NoZW1h
Y29uc3RydWN0cy9xbmFtZSIKCXhtbG5zOnRoaXM9Imh0dHA6Ly93d3cuZWNs aXBzZS5vcmcv
ZW1mL3RlbmVvL3NhbXBsZXMvZW1mL3NjaGVtYWNvbnN0cnVjdHMvcW5hbWUi Cgl4bWxuczp4
cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiPgoKCTx4czpl bGVtZW50IG5h
bWU9ImF0ZXN0IiB0eXBlPSJ0aGlzOm15dGVzdCIgLz4KCTx4czpjb21wbGV4 VHlwZSBuYW1l
PSJteXRlc3QiPgoJCTx4czpzZXF1ZW5jZT4KCQkJPHhzOmVsZW1lbnQgbmFt ZT0iZGVzY3Jp
cHRpb24iIHR5cGU9InhzOnN0cmluZyIgLz4KCQkJPHhzOmVsZW1lbnQgbmFt ZT0ibmFtZSIg
dHlwZT0ieHM6UU5hbWUiIC8+CgkJCTx4czplbGVtZW50IG5hbWU9Im5hbWVz IiB0eXBlPSJ4
czpRTmFtZSIgbWF4T2NjdXJzPSJ1bmJvdW5kZWQiLz4KCQk8L3hzOnNlcXVl bmNlPgoJPC94
czpjb21wbGV4VHlwZT4KCjwveHM6c2NoZW1hPg==
--------------050009040503020503020503
Content-Type: text/x-java;
name="QNameAction.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="QNameAction.java"

LyoqCiAqIDxjb3B5cmlnaHQ+CiAqCiAqIENvcHlyaWdodCAoYykgMjAwNSwg MjAwNiwgMjAw
NywgMjAwOCBTcHJpbmdzaXRlIEJWIChUaGUgTmV0aGVybGFuZHMpIGFuZCBv dGhlcnMKICog
QWxsIHJpZ2h0cyByZXNlcnZlZC4gVGhpcyBwcm9ncmFtIGFuZCB0aGUgYWNj b21wYW55aW5n
IG1hdGVyaWFscwogKiBhcmUgbWFkZSBhdmFpbGFibGUgdW5kZXIgdGhlIHRl cm1zIG9mIHRo
ZSBFY2xpcHNlIFB1YmxpYyBMaWNlbnNlIHYxLjAKICogd2hpY2ggYWNjb21w YW5pZXMgdGhp
cyBkaXN0cmlidXRpb24sIGFuZCBpcyBhdmFpbGFibGUgYXQKICogaHR0c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uY29tbWl0 VHJhbnNhY3Rp
b24oKTsKCQl9CgoJCXsKCQkJc3RvcmUuYmVnaW5UcmFuc2FjdGlvbigpOwoJ CQlmaW5hbCBN
eXRlc3QgbXl0ZXN0ID0gc3RvcmUuZ2V0T2JqZWN0KE15dGVzdC5jbGFzcyk7 CgkJCWFzc2Vy
dEVxdWFscyhteXRlc3QuZ2V0TmFtZXMoKS5zaXplKCksIE5PX1RFU1RfT0JK RUNUUyk7CgkJ
CWZvciAoaW50IGkgPSAwOyBpIDwgTk9fVEVTVF9PQkpFQ1RTOyBpKyspIHsK CQkJCWZpbmFs
IFFOYW1lIHFOYW1lID0gbXl0ZXN0LmdldE5hbWVzKCkuZ2V0KGkpOwoJCQkJ YXNzZXJ0RXF1
YWxzKHFOYW1lLmdldE5hbWVzcGFjZVVSSSgpLCAiaHR0cDovL3d3dy5lbHZl ci5vcmcvIiAr
IGkpOwoJCQkJYXNzZXJ0RXF1YWxzKHFOYW1lLmdldExvY2FsUGFydCgpLCAi bG9jYWwiICsg
aSk7CgkJCQlhc3NlcnRFcXVhbHMocU5hbWUuZ2V0UHJlZml4KCksICJwcmVm aXgiICsgaSk7
CgkJCX0KCQkJYXNzZXJ0RXF1YWxzKG15dGVzdC5nZXROYW1lKCkuZ2V0TmFt ZXNwYWNlVVJJ
KCksICJodHRwOi8vd3d3LnNwcmluZ3NpdGUuY29tIik7CgkJCWFzc2VydEVx dWFscyhteXRl
c3QuZ2V0TmFtZSgpLmdldExvY2FsUGFydCgpLCAibmFtZSIpOwoJCQlhc3Nl cnRFcXVhbHMo
bXl0ZXN0LmdldE5hbWUoKS5nZXRQcmVmaXgoKSwgImUiKTsKCQkJc3RvcmUu Y29tbWl0VHJh
bnNhY3Rpb24oKTsKCQl9Cgl9Cn0=
--------------050009040503020503020503
Content-Type: text/x-java;
name="QNameMapping.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="QNameMapping.java"

LyoqCiAqIDxjb3B5cmlnaHQ+CiAqCiAqI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WJzdHJpbmcoZW5kSW5kZXhOUyArIDEsIHByZWZp eEluZGV4KTsK
CQlmaW5hbCBTdHJpbmcgbG9jYWxQYXJ0ID0gc3RyLnN1YnN0cmluZyhwcmVm aXhJbmRleCAr
IDEpOwoJCXJldHVybiBuZXcgUU5hbWUobnMsIGxvY2FsUGFydCwgcHJlZml4 KTsKCX0KCn0=
--------------050009040503020503020503--
Previous Topic:teneo:support for QName
Next Topic:[Teneo] Hibernate Library Editor Turorial - can't load URI
Goto Forum:
  


Current Time: Wed Jun 23 10:01:31 GMT 2021

Powered by FUDForum. Page generated in 0.01469 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top