Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlString$Factory


    }

    public void insertProperty( Object[] propElems ) throws CallbackFailedException
    {
        // Comment prop has cardinality of 1, so passed array will always have exactly one element
        XmlString xString = (XmlString) propElems[0];
        m_fileSystem.setComment( xString.getStringValue() );
    }
View Full Code Here


        insertProperty( prop );
    }

    public ResourceProperty refreshProperty( ResourceProperty prop throws CallbackFailedException
    {
        XmlString xString = (XmlString) prop.get( 0 );
        xString.setStringValue( m_fileSystem.getComment() );
        return prop;
    }
View Full Code Here

        m_fileSystem = fileSystem;
    }

    public ResourceProperty refreshProperty(ResourceProperty prop)
    {
        XmlString xString = (XmlString) prop.get( 0 );
        xString.setStringValue( m_fileSystem.getMountPoint() );
        return prop;
    }
View Full Code Here

      ResourceProperty prop = m_resourcePropSet.get( SushiPropertyQNames.IKA );
      final String stringValue = "somethang";
      prop.add( XmlObject.Factory.parse( "<" + SushiPropertyQNames.IKA.getLocalPart() + " xmlns=\"" + SushiPropertyQNames.IKA.getNamespaceURI() + "\">" + stringValue + "</" + SushiPropertyQNames.IKA.getLocalPart() + ">" ) );
      assertEquals( 2,
            prop.size() );
      XmlString xString = (XmlString) prop.get( 1 );
      assertEquals( stringValue,
            xString.getStringValue() );
   }
View Full Code Here

   {
      ResourceProperty prop = m_resourcePropSet.get( SushiPropertyQNames.IKA );
      final String stringValue = "somethang";
      prop.set( 0,
            XmlObject.Factory.parse( "<" + SushiPropertyQNames.IKA.getLocalPart() + " xmlns=\"" + SushiPropertyQNames.IKA.getNamespaceURI() + "\">" + stringValue + "</" + SushiPropertyQNames.IKA.getLocalPart() + ">" ) );
      XmlString xString = (XmlString) prop.get( 0 );
      assertEquals( stringValue,
            xString.getStringValue() );
   }
View Full Code Here

    }

    public void insertProperty( Object[] propElems ) throws CallbackFailedException
    {
        // Comment prop has cardinality of 1, so passed array will always have exactly one element
        XmlString xString = (XmlString) propElems[0];
        m_fileSystem.setComment( xString.getStringValue() );
    }
View Full Code Here

        insertProperty( prop );
    }

    public ResourceProperty refreshProperty( ResourceProperty prop throws CallbackFailedException
    {
        XmlString xString = (XmlString) prop.get( 0 );
        xString.setStringValue( m_fileSystem.getComment() );
        return prop;
    }
View Full Code Here

        m_fileSystem = fileSystem;
    }

    public ResourceProperty refreshProperty(ResourceProperty propthrows CallbackFailedException
    {
        XmlString xString = (XmlString) prop.get( 0 );
        xString.setStringValue( m_fileSystem.getMountPoint() );
        return prop;
    }
View Full Code Here

    /**
     * DOCUMENT_ME
     */
    public void testSet()
    {
        XmlString xString1 = XmlString.Factory.newInstance();
        xString1.setStringValue( "one" );
        XmlString xString2 = XmlString.Factory.newInstance();
        xString2.setStringValue( "two" );
        XmlCursor xmlCursor = xString1.newCursor();
        xmlCursor.toPrevToken();
        XmlObject object = xmlCursor.getObject();
        xString1 = (XmlString) object.set( xString2 );
        System.out.println( xString1 );
View Full Code Here

      ResourceProperty prop = m_resourcePropSet.get( SushiPropertyQNames.IKA );
      final String stringValue = "somethang";
      prop.add( XmlObject.Factory.parse( "<" + SushiPropertyQNames.IKA.getLocalPart() + " xmlns=\"" + SushiPropertyQNames.IKA.getNamespaceURI() + "\">" + stringValue + "</" + SushiPropertyQNames.IKA.getLocalPart() + ">" ) );
      assertEquals( 2,
            prop.size() );
      XmlString xString = (XmlString) prop.get( 1 );
      assertEquals( stringValue,
            xString.getStringValue() );
   }
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.XmlString$Factory

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.