Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlInt$Factory


         throws Exception
   {
      ResourceProperty manufacturerProp = m_resourcePropSet.get( SushiPropertyQNames.AKAGI );
      Object propObj = manufacturerProp.get( 0 );
      assertTrue( propObj instanceof XmlInt );
      XmlInt xInt = (XmlInt) propObj;
      assertEquals( "24",
            xInt.getStringValue() );
   }
View Full Code Here


    }

    private static void validateValue(BigInteger v, SchemaType sType, ValidationContext context)
    {
        // total digits
        XmlInt td = (XmlInt)sType.getFacet(SchemaType.FACET_TOTAL_DIGITS);
        if (td != null)
        {
            String temp = v.toString();
            int len = temp.length();
            if (len > 0 && temp.charAt(0) == '-')
                len -= 1;
            if (len > td.getIntValue())
            {
                context.invalid(
                    "Integer total digits (" + temp + ") is greater than " +
                        "total digits facet (" + td.getIntValue() + ") for " + QNameHelper.readable(sType));
                return;
            }
        }

        // min ex
View Full Code Here

        {
            Ebi ebi = m_plate.getEbi();
            String pieces = ebi.getNumberOfPieces();
            try
            {
                XmlInt ebiElem = (XmlInt) prop.get( 0 );
                XmlBeanUtils.setValue( ebiElem, pieces );
            }
            catch ( Exception e )
            {
                e.printStackTrace();
View Full Code Here

         throws Exception
   {
      ResourceProperty manufacturerProp = m_resourcePropSet.get( SushiPropertyQNames.AKAGI );
      Object propObj = manufacturerProp.get( 0 );
      assertTrue( propObj instanceof XmlInt );
      XmlInt xInt = (XmlInt) propObj;
      assertEquals( "24",
            xInt.getStringValue() );
   }
View Full Code Here

    }

    public void updateProperty(Object[] prop) throws CallbackFailedException
    {
        // BackupFrequency prop has cardinality of 1, so passed array will always have exactly one element
        XmlInt xInt = (XmlInt) prop[0];
        m_fileSystem.setBackupFrequency(xInt.getIntValue());
    }
View Full Code Here

        m_fileSystem.setBackupFrequency(xInt.getIntValue());
    }

    public ResourceProperty refreshProperty(ResourceProperty propthrows CallbackFailedException
    {
        XmlInt xInt = (XmlInt) prop.get( 0 );
        xInt.setIntValue( m_fileSystem.getBackupFrequency() );
        return prop;
    }
View Full Code Here

    }

    public void updateProperty(Object[] propElems) throws CallbackFailedException
    {
        // FsckPassNumber prop has cardinality of 1, so passed array will always have exactly one element
        XmlInt xInt = (XmlInt) propElems[0];
        m_fileSystem.setFsckPassNumber(xInt.getIntValue());
    }
View Full Code Here

        m_fileSystem.setFsckPassNumber(xInt.getIntValue());
    }

    public ResourceProperty refreshProperty(ResourceProperty propthrows CallbackFailedException
    {
        XmlInt xInt = (XmlInt) prop.get( 0 );
        xInt.setIntValue( m_fileSystem.getFsckPassNumber() );
        return prop;
    }
View Full Code Here

    }

    public void updateProperty(Object[] prop) throws CallbackFailedException
    {
        // BackupFrequency prop has cardinality of 1, so passed array will always have exactly one element
        XmlInt xInt = (XmlInt) prop[0];
        m_fileSystem.setBackupFrequency(xInt.getIntValue());
    }
View Full Code Here

        m_fileSystem.setBackupFrequency(xInt.getIntValue());
    }

    public ResourceProperty refreshProperty(ResourceProperty propthrows CallbackFailedException
    {
        XmlInt xInt = (XmlInt) prop.get( 0 );
        xInt.setIntValue( m_fileSystem.getBackupFrequency() );
        return prop;
    }
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.XmlInt$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.