Package org.apache.ws.resource.properties

Examples of org.apache.ws.resource.properties.MetaDataViolationException


    public boolean add( ResourceProperty prop )
            throws MetaDataViolationException
    {
        if ( !m_metaData.isOpenContent() )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
        }

        if ( m_propsMap.containsKey( prop.getMetaData().getName() ) )
        {
            throw new MetaDataViolationException(
                    MSG.getMessage( Keys.PROP_DOC_ALREADY_CONTAINS_PROPERTY, prop.getMetaData().getName() ) );
        }

        addProperty( prop );
        return true;
View Full Code Here


    public boolean remove( QName propName )
            throws MetaDataViolationException
    {
        if ( !m_metaData.isOpenContent() )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
        }
        LOG.debug( MSG.getMessage( Keys.REMOVING_PROP, propName.toString() ) );
        ResourceProperty resourceProp = (ResourceProperty) m_propsMap.get( propName );
        resourceProp.clear();
        m_propsMap.remove( propName );
View Full Code Here

     */
    public void load( XmlObject propXBean )
    {
        if ( !XmlBeanUtils.getName( propXBean ).equals( m_metaData.getName() ) )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.PROP_MUST_BE_NAMED,
                    m_metaData.getName() ) );
        }
        m_propElems.add( propXBean );
    }
View Full Code Here

    public boolean add( ResourceProperty prop )
            throws MetaDataViolationException
    {
        if ( !m_metaData.isOpenContent() )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
        }

        if ( m_propsMap.containsKey( prop.getMetaData().getName() ) )
        {
            throw new MetaDataViolationException(
                    MSG.getMessage( Keys.PROP_DOC_ALREADY_CONTAINS_PROPERTY, prop.getMetaData().getName() ) );
        }

        addProperty( prop );
        return true;
View Full Code Here

    public boolean remove( QName propName )
            throws MetaDataViolationException
    {
        if ( !m_metaData.isOpenContent() )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
        }
        LOG.debug( MSG.getMessage( Keys.REMOVING_PROP, propName.toString() ) );
        ResourceProperty resourceProp = (ResourceProperty) m_propsMap.get( propName );
        resourceProp.clear();
        m_propsMap.remove( propName );
View Full Code Here

     */
    public void load( XmlObject propXBean )
    {
        if ( !XmlBeanUtils.getName( propXBean ).equals( m_metaData.getName() ) )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.PROP_MUST_BE_NAMED,
                    m_metaData.getName() ) );
        }
        m_propElems.add( propXBean );
    }
View Full Code Here

    public boolean add( ResourceProperty prop )
            throws MetaDataViolationException
    {
        if ( !m_metaData.isOpenContent() )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
        }

        if ( m_propsMap.containsKey( prop.getMetaData().getName() ) )
        {
            throw new MetaDataViolationException(
                    MSG.getMessage( Keys.PROP_DOC_ALREADY_CONTAINS_PROPERTY, prop.getMetaData().getName() ) );
        }

        addProperty( prop );
        return true;
View Full Code Here

    public boolean remove( QName propName )
            throws MetaDataViolationException
    {
        if ( !m_metaData.isOpenContent() )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
        }
        LOG.debug( MSG.getMessage( Keys.REMOVING_PROP, propName.toString() ) );
        ResourceProperty resourceProp = (ResourceProperty) m_propsMap.get( propName );
        resourceProp.clear();
        m_propsMap.remove( propName );
View Full Code Here

     */
    public void load( XmlObject propXBean )
    {
        if ( !XmlBeanUtils.getName( propXBean ).equals( m_metaData.getName() ) )
        {
            throw new MetaDataViolationException( MSG.getMessage( Keys.PROP_MUST_BE_NAMED,
                    m_metaData.getName() ) );
        }
        m_propElems.add( propXBean );
    }
View Full Code Here

    */
   public void load( XmlObject propXBean )
   {
      if ( !XmlBeanUtils.getName( propXBean ).equals( m_metaData.getName(  ) ) )
      {
         throw new MetaDataViolationException( MSG.getMessage( Keys.PROP_MUST_BE_NAMED,
                                                               m_metaData.getName(  ) ) );
      }

      m_propElems.add( propXBean );
   }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.properties.MetaDataViolationException

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.