Package org.apache.ws.resource.properties.faults

Examples of org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException


        {
            return; // nothing to do
        }
        if ( elementNamesNotHomogenous( propElemsToBeInserted ) )
        {
            throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_INSERT_ELEMS_NOT_HOMOGENOUS ) );
        }

        QName propName = XmlBeanUtils.getName( propElemsToBeInserted[0] );
        ResourceProperty prop = getProperty( propName );
View Full Code Here


    private void throwFaultIfInsertionViolatesSchema( ResourceProperty prop, XmlObject[] propElemsToBeInserted )
    {
        // TODO: probably need to check this for xsd:any to check for possible violations
        if ( prop.getMetaData().getMaxOccurs() != -1 &&( prop.size() + propElemsToBeInserted.length ) > prop.getMetaData().getMaxOccurs() )
        {
            throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
                    ( ( propElemsToBeInserted.length > 1 )
                    ? "s" : "" ),
                    prop.getMetaData().getName() ) );
        }
    }
View Full Code Here

        {
            return; // nothing to do
        }
        if ( elementNamesNotHomogenous( propElemsToBeInserted ) )
        {
            throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_INSERT_ELEMS_NOT_HOMOGENOUS ) );
        }

        QName propName = XmlBeanUtils.getName( propElemsToBeInserted[0] );
        ResourceProperty prop = getProperty( propName );
View Full Code Here

    private void throwFaultIfInsertionViolatesSchema( ResourceProperty prop, XmlObject[] propElemsToBeInserted )
    {
        // TODO: probably need to check this for xsd:any to check for possible violations
        if ( prop.getMetaData().getMaxOccurs() != -1 &&( prop.size() + propElemsToBeInserted.length ) > prop.getMetaData().getMaxOccurs() )
        {
            throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
                    ( ( propElemsToBeInserted.length > 1 )
                    ? "s" : "" ),
                    prop.getMetaData().getName() ) );
        }
    }
View Full Code Here

         return; // nothing to do
      }

      if ( elementNamesNotHomogenous( propElemsToBeInserted ) )
      {
         throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
                                                                                MSG.getMessage( Keys.ERROR_INSERT_ELEMS_NOT_HOMOGENOUS ) );
      }

      QName            propName = XmlBeanUtils.getName( propElemsToBeInserted[0] );
      ResourceProperty prop = getProperty( propName );
View Full Code Here

   {
      // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
      if ( ( prop.getMetaData(  ).getMaxOccurs(  ) != -1 )
           && ( ( prop.size(  ) + propElemsToBeInserted.length ) > prop.getMetaData(  ).getMaxOccurs(  ) ) )
      {
         throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
                                                                                MSG.getMessage(
                                                                                                Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
                                                                                                ( ( propElemsToBeInserted.length > 1 )
                                                                                                  ? "s" : "" ),
                                                                                                prop.getMetaData(  )
View Full Code Here

         return; // nothing to do
      }

      if ( elementNamesNotHomogenous( propElemsToBeInserted ) )
      {
         throw new InvalidInsertResourcePropertiesRequestContentFaultException( getResource(  ).getNamespaceSet(  ),
                                                                                MSG.getMessage( Keys.ERROR_INSERT_ELEMS_NOT_HOMOGENOUS ) );
      }

      QName            propName = XmlBeanUtils.getName( propElemsToBeInserted[0] );
      ResourceProperty prop = getProperty( propName );
View Full Code Here

   {
      // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
      if ( ( prop.getMetaData(  ).getMaxOccurs(  ) != -1 )
           && ( ( prop.size(  ) + propElemsToBeInserted.length ) > prop.getMetaData(  ).getMaxOccurs(  ) ) )
      {
         throw new InvalidInsertResourcePropertiesRequestContentFaultException( getResource(  ).getNamespaceSet(  ),
                                                                                MSG.getMessage(
                                                                                                Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
                                                                                                ( ( propElemsToBeInserted.length > 1 )
                                                                                                  ? "s" : "" ),
                                                                                                prop.getMetaData(  )
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException

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.