Package org.apache.ws.resource.properties

Examples of org.apache.ws.resource.properties.ResourceProperty.clear()


        Object[] oldValue = getValue( prop );
        // TODO: we might need to clone the oldValue elems, since we might be destroying them when we call clear() below
        try
        {
            prop.clear();
            for ( int i = 0; i < newPropElems.length; i++ )
            {
                prop.add( newPropElems[i] );
            }
        }
View Full Code Here


            childRelationshipParticipantType.setResourceId(InteropRequestUtils.getResourceId(weatherStationEpr));
            childRelationshipParticipantType.setResourceId(InteropConstants.WS1_KEY);
            childRelationshipParticipantType.setRole(InteropConstants.CHILD_RELATION);//uri
            childRelationshipParticipantType.setManageabilityEndpointReferenceArray(new EndpointReferenceType[]{weatherStationEpr});

            resourceProperty.clear();           
            resourceProperty.add(relationshipDocument);

        }
        else
        {
View Full Code Here

         throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
                                                                      re.toString(  ) );
      }

      Object[] oldValue = getValue( prop );
      prop.clear(  );
      Object[] newValue = null;
      firePropChangeEvents( prop, oldValue, newValue );
   }

   /**
 
View Full Code Here

      Object[] oldValue = getValue( prop );

      try
      {
         prop.clear(  );
         for ( int i = 0; i < newPropElems.length; i++ )
         {
            prop.add( newPropElems[i] );
         }
      }
View Full Code Here

    */
   public void testClear(  )
   throws Exception
   {
      ResourceProperty manufacturerProp = m_resourcePropSet.get( SushiPropertyQNames.IKA );
      manufacturerProp.clear(  );
      assertTrue( manufacturerProp.isEmpty(  ) );
   }

   /**
    * Test for XmlBeansResourceProperty#get.
View Full Code Here

   public void testIsEmpty(  )
   throws Exception
   {
      ResourceProperty prop = m_resourcePropSet.get( SushiPropertyQNames.IKA );
      assertFalse( prop.isEmpty(  ) );
      prop.clear(  );
      assertTrue( prop.isEmpty(  ) );
      assertEquals( 0,
                    prop.size(  ) );
   }
View Full Code Here

    */
   public void testRemoveAddedElement(  )
   throws Exception
   {
      ResourceProperty prop = m_resourcePropSet.get( SushiPropertyQNames.HAMACHI );
      prop.clear(  );
      XmlObject hamachiDoc =
         XmlObject.Factory.parse( "<Hamachi xmlns=\"http://ws.apache.org/resource/properties/test/sushi\">\n"
                                  + "  <Flavor>disgusting</Flavor>\n" + "</Hamachi>" );
      prop.add( hamachiDoc );
      assertEquals( 1,
View Full Code Here

      LOG.debug( MSG.getMessage( Keys.CLEAR_PROP_SET ) );
      Collection props = m_propsMap.values(  );
      for ( Iterator iterator = props.iterator(  ); iterator.hasNext(  ); )
      {
         ResourceProperty prop = (ResourceProperty) iterator.next(  );
         prop.clear(  );
         m_propsMap.remove( prop.getMetaData(  ).getName(  ) );
      }
   }

   /**
 
View Full Code Here

      }

      LOG.debug( MSG.getMessage( Keys.REMOVING_PROP,
                                 propName.toString(  ) ) );
      ResourceProperty resourceProp = (ResourceProperty) m_propsMap.get( propName );
      resourceProp.clear(  );
      m_propsMap.remove( propName );
      return true;
   }

   /**
 
View Full Code Here

   {
      QName propName = prop.getMetaData(  ).getName(  );
      LOG.debug( MSG.getMessage( Keys.REMOVING_PROP,
                                 propName.toString(  ) ) );
      ResourceProperty resourceProp = (ResourceProperty) m_propsMap.get( propName );
      resourceProp.clear(  );
      m_propsMap.remove( propName );
      addProperty( prop );
      return true;
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.