[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2m] Re: [ATL] Re: Problem with ATL - "The feature 'lass' is not a valid feature"
|
- From: surdu@xxxxxxxxxx (Dmitriy Surdu)
- Date: Tue, 10 Jun 2008 09:04:25 +0000 (UTC)
- Newsgroups: eclipse.modeling.m2m
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Thank you for responce. I will remember to add prefix in future.
Yes, my input model is valid and conforms to metamodel. I submit it below.
Could the empty namespace prefix be the reason? If so, it is probably a
bug in ATL VM.
Another one, I have the problem only with Regular ATL VM. When I run it
with EMF-specific VM everything works fine. But it have no facilities of
debugging...
<?xml version="1.0" encoding="UTF-8"?>
<DocumentRoot xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.alfresco.org/model/dictionary/1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<model description="Alfresco Content Domain Model" author="Alfresco"
published="2005-09-29"
version="1.0" name="cm:contentmodel">
<imports>
<import prefix="d"
uri="http://www.alfresco.org/model/dictionary/1.0"/>
<import prefix="sys" uri="http://www.alfresco.org/model/system/1.0"/>
</imports>
<namespaces>
<namespace prefix="cm"
uri="http://www.alfresco.org/model/content/1.0"/>
</namespaces>
<constraints>
<constraint name="cm:filename" type="REGEX">
<parameter
value="(.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)"
name="expression"/>
<parameter value="false" name="requiresMatch"/>
</constraint>
<constraint name="cm:userNameConstraint"
type="org.alfresco.repo.dictionary.constraint.UserNameConstraint"/>
</constraints>
<types>
<type title="Object" parent="sys:base" name="cm:cmobject">
<properties>
<property title="Name" type="d:text" name="cm:name">
<mandatory value="true" enforced="true"/>
<constraints>
<constraint ref="cm:filename"/>
</constraints>
</property>
</properties>
<mandatoryAspects>
<aspect>cm:auditable</aspect>
</mandatoryAspects>
</type>
<type title="Folder" parent="cm:cmobject" archive="true"
name="cm:folder">
<associations>
<childAssociation name="cm:contains" duplicate="false">
<source many="true">
<mandatory value="false"/>
</source>
<target class="sys:base" many="true">
<mandatory value="false"/>
</target>
</childAssociation>
</associations>
</type>
<type title="Content" parent="cm:cmobject" archive="true"
name="cm:content">
<properties>
<property type="d:content" name="cm:content">
<mandatory value="false"/>
<index atomic="true" stored="false" tokenised="true"
enabled="true"/>
</property>
</properties>
</type>
<type title="Dictionary Model" parent="cm:content"
name="cm:dictionaryModel">
<properties>
<property title="Model name" type="d:qname" protected="true"
name="cm:modelName"/>
<property title="Description" type="d:text" protected="true"
name="cm:modelDescription"/>
<property title="Author" type="d:text" protected="true"
name="cm:modelAuthor"/>
<property title="Published Date" type="d:date" protected="true"
name="cm:modelPublishedDate"/>
<property title="Version" type="d:text" protected="true"
name="cm:modelVersion"/>
<property title="Model Active" type="d:boolean"
name="cm:modelActive">
<default xsi:type="xsd:AnyType">
false </default>
</property>
</properties>
</type>
<type title="Link Object" parent="cm:cmobject" name="cm:link">
<properties>
<property title="Link Destination" type="d:noderef"
name="cm:destination">
<mandatory value="true"/>
</property>
</properties>
</type>
<type title="Saved Query" parent="cm:content" name="cm:savedquery"/>
<type title="System Folder" parent="cm:folder"
name="cm:systemfolder"/>
<type title="Person" parent="sys:base" name="cm:person">
<properties>
<property type="d:text" name="cm:userName">
<mandatory value="true"/>
<constraints>
<constraint ref="cm:userNameConstraint"/>
</constraints>
</property>
<property type="d:noderef" name="cm:homeFolder">
<mandatory value="true"/>
</property>
<property type="d:text" name="cm:firstName">
<mandatory value="true"/>
</property>
<property type="d:text" name="cm:lastName">
<mandatory value="true"/>
</property>
<property type="d:text" name="cm:middleName"/>
<property type="d:text" name="cm:email"/>
<property type="d:text" name="cm:organizationId"/>
<property type="d:text" name="cm:homeFolderProvider"/>
<property type="d:text" name="cm:defaultHomeFolderPath"/>
</properties>
</type>
<type title="Category Root" parent="cm:cmobject"
name="cm:category_root">
<associations>
<childAssociation name="cm:categories">
<source many="true">
<mandatory value="false"/>
</source>
<target class="cm:category" many="true">
<mandatory value="false"/>
</target>
</childAssociation>
</associations>
<mandatoryAspects>
<aspect>sys:aspect_root</aspect>
</mandatoryAspects>
</type>
<type title="Category" parent="cm:cmobject" name="cm:category">
<associations>
<childAssociation name="cm:subcategories">
<source many="true">
<mandatory value="false"/>
</source>
<target class="cm:category" many="true">
<mandatory value="false"/>
</target>
</childAssociation>
</associations>
</type>
<type title="Multilingual Root" parent="sys:container"
name="cm:mlRoot">
<associations>
<childAssociation name="cm:mlContainer">
<source many="false">
<mandatory value="false"/>
</source>
<target class="cm:mlContainer" many="true">
<mandatory value="false"/>
</target>
</childAssociation>
</associations>
</type>
<type title="Multilingual Container" parent="sys:container"
name="cm:mlContainer">
<associations>
<childAssociation name="cm:mlChild">
<source many="false">
<mandatory value="false"/>
</source>
<target class="cm:mlDocument" many="true">
<mandatory value="true"/>
</target>
</childAssociation>
</associations>
<mandatoryAspects>
<aspect>cm:versionable</aspect>
<aspect>cm:author</aspect>
<aspect>sys:localized</aspect>
</mandatoryAspects>
</type>
</types>
<aspects>
<aspect title="Titled" name="cm:titled">
<properties>
<property title="Title" type="d:mltext" name="cm:title"/>
<property title="Description" type="d:mltext"
name="cm:description"/>
</properties>
</aspect>
<aspect title="Auditable" name="cm:auditable">
<properties>
<property title="Created" type="d:datetime" protected="true"
name="cm:created">
<mandatory value="true" enforced="true"/>
</property>
<property title="Creator" type="d:text" protected="true"
name="cm:creator">
<mandatory value="true" enforced="true"/>
</property>
<property title="Modified" type="d:datetime" protected="true"
name="cm:modified">
<mandatory value="true" enforced="true"/>
</property>
<property title="Modifier" type="d:text" protected="true"
name="cm:modifier">
<mandatory value="true" enforced="true"/>
</property>
<property title="Accessed" type="d:datetime" protected="true"
name="cm:accessed"/>
</properties>
</aspect>
<aspect title="Transformable" name="cm:transformable">
<associations>
<association title="Formats" name="cm:formats">
<source role="cm:formatOf" many="false">
<mandatory value="false"/>
</source>
<target class="cm:content" role="cm:hasFormat" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Templatable" name="cm:templatable">
<properties>
<property title="Template" type="d:noderef" name="cm:template">
<mandatory value="false"/>
</property>
</properties>
</aspect>
<aspect title="Webscriptable" name="cm:webscriptable">
<properties>
<property title="Webscript" type="d:text" name="cm:webscript">
<mandatory value="false"/>
</property>
</properties>
</aspect>
<aspect title="Complianceable" parent="cm:auditable"
name="cm:complianceable">
<properties>
<property title="Remove After" type="d:datetime"
name="cm:removeAfter"/>
</properties>
</aspect>
<aspect title="Ownable" name="cm:ownable">
<properties>
<property title="Owner" type="d:text" name="cm:owner"/>
</properties>
</aspect>
<aspect title="Author" name="cm:author">
<properties>
<property title="Author" type="d:text" name="cm:author"/>
</properties>
</aspect>
<aspect title="Dublin Core" parent="cm:titled" name="cm:dublincore">
<properties>
<property title="Publisher" type="d:text" name="cm:publisher">
<mandatory value="true" enforced="false"/>
</property>
<property title="Contributor" type="d:text"
name="cm:contributor">
<mandatory value="true" enforced="false"/>
</property>
<property title="Type" type="d:text" name="cm:type">
<mandatory value="true" enforced="false"/>
</property>
<property title="Identifier" type="d:text" name="cm:identifier">
<mandatory value="true" enforced="false"/>
</property>
<property title="Source" type="d:text" name="cm:dcsource">
<mandatory value="true" enforced="false"/>
</property>
<property title="Coverage" type="d:text" name="cm:coverage">
<mandatory value="true" enforced="false"/>
</property>
<property title="Rights" type="d:text" name="cm:rights">
<mandatory value="true" enforced="false"/>
</property>
<property title="Subject" type="d:text" name="cm:subject">
<mandatory value="true" enforced="false"/>
</property>
</properties>
<mandatoryAspects>
<aspect>cm:auditable</aspect>
<aspect>cm:author</aspect>
</mandatoryAspects>
</aspect>
<aspect title="Basable" name="cm:basable">
<associations>
<association name="cm:basis">
<source role="cm:basedOn" many="true">
<mandatory value="false"/>
</source>
<target class="cm:content" role="cm:hasBasis" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Partable" name="cm:partable">
<associations>
<association name="cm:parts">
<source role="cm:partOf" many="true">
<mandatory value="false"/>
</source>
<target class="cm:content" role="cm:hasPart" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Referencing" name="cm:referencing">
<associations>
<association name="cm:references">
<source role="cm:referencedBy" many="true">
<mandatory value="false"/>
</source>
<target class="cm:content" role="cm:references" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Replacable" name="cm:replaceable">
<associations>
<association name="cm:replaces">
<source role="cm:replacedBy" many="true">
<mandatory value="false"/>
</source>
<target class="cm:content" role="cm:replaces" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Effectivity" name="cm:effectivity">
<properties>
<property title="Effective From" type="d:datetime"
name="cm:from"/>
<property title="Effective To" type="d:datetime" name="cm:to"/>
</properties>
</aspect>
<aspect title="Summarizable" name="cm:summarizable">
<properties>
<property title="Summary" type="d:text" name="cm:summary"/>
</properties>
</aspect>
<aspect title="Countable" name="cm:countable">
<properties>
<property type="d:int" name="cm:hits"/>
<property type="d:int" name="cm:counter"/>
</properties>
</aspect>
<aspect title="Copied From" name="cm:copiedfrom">
<properties>
<property type="d:noderef" protected="true" multiple="false"
name="cm:source">
<mandatory value="true"/>
<index atomic="true" stored="false" tokenised="true"
enabled="true"/>
</property>
</properties>
</aspect>
<aspect title="Working Copy" name="cm:workingcopy">
<properties>
<property type="d:text" protected="true"
name="cm:workingCopyOwner">
<mandatory value="true"/>
</property>
</properties>
</aspect>
<aspect title="Versionable" name="cm:versionable">
<properties>
<property title="Version Label" type="d:text" protected="true"
name="cm:versionLabel"/>
<property title="Initial Version" type="d:boolean"
name="cm:initialVersion">
<default xsi:type="xsd:AnyType">
true </default>
</property>
<property title="Auto Version" type="d:boolean"
name="cm:autoVersion">
<default xsi:type="xsd:AnyType">
true </default>
</property>
</properties>
</aspect>
<aspect title="Lockable" name="cm:lockable">
<properties>
<property type="d:text" protected="true" name="cm:lockOwner"/>
<property type="d:text" protected="true" name="cm:lockType"/>
<property type="d:date" protected="true" name="cm:expiryDate">
<mandatory value="false"/>
</property>
<property type="d:boolean" protected="true"
name="cm:lockIsDeep"/>
</properties>
</aspect>
<aspect name="cm:subscribable">
<associations>
<association name="cm:subscribedBy">
<source many="true">
<mandatory value="false"/>
</source>
<target class="cm:person" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Classifiable" name="cm:classifiable"/>
<aspect title="General Classifiable" parent="cm:classifiable"
name="cm:generalclassifiable">
<properties>
<property title="Categories" type="d:category" multiple="true"
name="cm:categories">
<mandatory value="false"/>
<index atomic="true" stored="true" tokenised="true"
enabled="true"/>
</property>
</properties>
</aspect>
<aspect title="Attachable" name="cm:attachable">
<associations>
<association name="cm:attachments">
<source many="true">
<mandatory value="false"/>
</source>
<target class="cm:cmobject" many="true">
<mandatory value="false"/>
</target>
</association>
</associations>
</aspect>
<aspect title="Emailed" name="cm:emailed">
<properties>
<property title="Originator" type="d:text" name="cm:originator"/>
<property title="Addressee" type="d:text" name="cm:addressee"/>
<property title="Addressees" type="d:text" multiple="true"
name="cm:addressees"/>
<property title="Subject" type="d:text" name="cm:subjectline"/>
<property title="Sent Date" type="d:datetime"
name="cm:sentdate"/>
</properties>
</aspect>
<aspect title="References Node" name="cm:referencesnode">
<properties>
<property title="Node Reference" type="d:noderef"
name="cm:noderef">
<mandatory value="true"/>
</property>
</properties>
</aspect>
<aspect title="Multilingual Document" name="cm:mlDocument">
<mandatoryAspects>
<aspect>sys:localized</aspect>
<aspect>cm:versionable</aspect>
</mandatoryAspects>
</aspect>
<aspect title="Empty Translation" name="cm:mlEmptyTranslation">
<mandatoryAspects>
<aspect>cm:mlDocument</aspect>
</mandatoryAspects>
</aspect>
</aspects>
</model>
</DocumentRoot>