You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "John Kaputin (JIRA)" <ji...@apache.org> on 2007/06/19 18:14:26 UTC

[jira] Assigned: (WODEN-141) DescriptionElement.getTypesElement() should not be a factory method

     [ https://issues.apache.org/jira/browse/WODEN-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin reassigned WODEN-141:
----------------------------------

    Assignee: John Kaputin

> DescriptionElement.getTypesElement() should not be a factory method
> -------------------------------------------------------------------
>
>                 Key: WODEN-141
>                 URL: https://issues.apache.org/jira/browse/WODEN-141
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: John Kaputin
>            Assignee: John Kaputin
>             Fix For: M8
>
>
> The behaviour of the DescriptionElement.getTypesElement() method is to return the types element if it exists or if not, create it and return it.  This means that the model can never reflect an infoset that does not have a <wsdl:types> element because this getter method will always create one even if there isn't one in the WSDL. 
> Instead, this method should return null if there is no types element and a new factory method is required - createTypesElement(), which will create a TypesElement, set the DescriptionElement as its parent and return a reference to it. This is similar behaviour to the addXXXXElement methods that create sets of child elements, except that it acts on a single types element only (hence the method name 'create' rather than 'add').

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org