[shrinkwrap-issues] [JBoss JIRA] (SHRINKDESC-128) Missing attributes
Ralf Battenfeld (JIRA)
jira-events at lists.jboss.org
Sun Jul 29 02:41:07 EDT 2012
[ https://issues.jboss.org/browse/SHRINKDESC-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708608#comment-12708608 ]
Ralf Battenfeld commented on SHRINKDESC-128:
--------------------------------------------
I enhanced the metadata-parser for supporting xsd:ID attributes. Currently, such attributes are supported when defined as attributes in complex elements.
Example:
<xsd:complexType name="propertyType">
<xsd:sequence>
<xsd:element name="name" type="javaee:xsdStringType"> </xsd:element>
<xsd:element name="value" type="javaee:xsdStringType"> </xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
Not supported are simple data elements added with this attribute because this causes a model change.
Not supported example:
<xsd:simpleContent>
<xsd:extension base="xsd:boolean">
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:extension>
</xsd:simpleContent>
> Missing attributes
> ------------------
>
> Key: SHRINKDESC-128
> URL: https://issues.jboss.org/browse/SHRINKDESC-128
> Project: ShrinkWrap Descriptors
> Issue Type: Bug
> Components: metadata-parser
> Affects Versions: 2.0.0-alpha-3
> Reporter: Jesper Pedersen
> Assignee: Ralf Battenfeld
> Fix For: 2.0.0-alpha-4
>
>
> The connector XSD defines
> {noformat}
> <xsd:complexType name="config-propertyType">
> <xsd:sequence>
> <xsd:element name="description"
> type="j2ee:descriptionType"
> minOccurs="0"
> maxOccurs="unbounded"/>
> <xsd:element name="config-property-name"
> type="j2ee:config-property-nameType"/>
> <xsd:element name="config-property-type"
> type="j2ee:config-property-typeType"/>
> <xsd:element name="config-property-value"
> type="j2ee:xsdStringType"
> minOccurs="0">
> </xsd:element>
> </xsd:sequence>
> <xsd:attribute name="id" type="xsd:ID"/>
> </xsd:complexType>
> {noformat}
> However, the metadata parser doesn't generate methods to allow access to "id"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list