Package org.apache.ws.resource.discovery.xml.PropertyDocument

Examples of org.apache.ws.resource.discovery.xml.PropertyDocument.Property


      Property[] propArry = agent1Props.getPropertyArray(  );

      Assert.assertNotNull( propArry );
      Assert.assertEquals( propArry.length, 3 );

      Property prop1 = propArry[0];
      Property prop2 = propArry[1];
      Property prop3 = propArry[2];

      Assert.assertNotNull( prop1 );
      Assert.assertNotNull( prop2 );
      Assert.assertNotNull( prop3 );

      Assert.assertEquals( prop1.getId(  ),
                           "Endpoint" );
      Assert.assertEquals( prop2.getId(  ),
                           "ResourceID" );
      Assert.assertEquals( prop3.getId(  ),
                           "ResourceID" );

      Assert.assertEquals( prop1.getStringValue(  ),
                           "http://localhost/stuff" );
      Assert.assertEquals( prop2.getStringValue(  ),
                           "1234" );
      Assert.assertEquals( prop3.getStringValue(  ),
                           "5678" );
   }
View Full Code Here


      DiscoveryAgentProperty[] retArry = new DiscoveryAgentProperty[propArry.length];

      for ( int i = 0; i < propArry.length; i++ )
      {
         Property property = propArry[i];
         String   id    = property.getId(  );
         String   value = property.getStringValue(  );
         retArry[i] = new DiscoveryAgentProperty( id, value );
      }

      return retArry;
   }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.discovery.xml.PropertyDocument.Property

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.