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

Dan Jemiolo closed MUSE-179.
----------------------------

    Resolution: Fixed

Fixed - here is a short main( ) that shows how the code can now be used to 
create an RMD programmatically. This code does not demonstrate all of the new 
setter methods.


    public static void main(String[] args)
    {
        MetadataDescriptor rmd = SimpleMetadataDescriptor();
        rmd.addProperty(propertyName, WsrmdConstants.READ_WRITE, 
WsrmdConstants.MUTABLE);
        
        Collection values = new ArrayList();
        values.add("Initial value #1");
        values.add("Initial value #2");
        values.add("Initial value #3");
        rmd.setInitialValues(propertyName, values);
        
        Element rmdXML = WsrmdUtils.createMetadataDocument(rmd);
        File rmdFile = new File("MyResource.rmd");
        XmlUtils.toFile(rmdXML, rmdFile);
    }


> Usage of MUSE Capability property metadata apis
> -----------------------------------------------
>
>                 Key: MUSE-179
>                 URL: https://issues.apache.org/jira/browse/MUSE-179
>             Project: Muse
>          Issue Type: Improvement
>          Components: WSRF WSRMD ResourceMetadataCapability and 
> MetadataResource
>    Affects Versions: 2.2.0
>            Reporter: Saurabh Dravid
>         Assigned To: Dan Jemiolo
>             Fix For: 2.2.0
>
>
> I am using MetadataDescriptor model provided by MUSE api in my editor to deal 
> with property metadata.
> I will extend these two classes for this purpose 
> "org.apache.muse.ws.resource.metadata.impl.SimpleMetadataDescriptor" and
> "org.apache.muse.ws.resource.metadata.impl.PropertyMetadata".
> While extending these classes I faced following restrictions.
> (1) "PropertyMetadata" class is not public.
> (2) Following fields in "PropertyMetadata" class defined as private.
>       _modifiability
>       _mutability
>       _qname
> (3) Following fields in "SimpleMetadataDescriptor" class defined as private.
>       _name
>       _propertiesByQName
> Is it possible to remove these restrictions from the classes. It will help me 
> to handle the editor functionality efficiently.
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to