Package com.volantis.shared.metadata.type

Examples of com.volantis.shared.metadata.type.MetaDataTypeFactory


     * @return a mutable unit type.
     */
    private MutableQuantityType createMutableUnitTypeForTestingEquals() {
        MutableQuantityType mutableQuantityType = new MutableQuantityTypeImpl();

        MetaDataTypeFactory factory = MetaDataFactory.getDefaultInstance().
                getTypeFactory();

        NumberType numberType = factory.createNumberType();
        mutableQuantityType.setMagnitudeType( numberType );

        UnitType unitType = factory.createUnitType();
        mutableQuantityType.setUnitType(unitType);

        return mutableQuantityType;
    }
View Full Code Here


     * Test to ensure that the getMetaDataTypeFactory() method returns a valid
     * {@link MetaDataTypeFactory}.
     */
    public void testGetTypeFactory() {
        MetaDataFactory factory = getMetaDataFactory();
        MetaDataTypeFactory typeFactory = factory.getTypeFactory();
        assertNotNull("The type factory should not be null ", typeFactory);
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.metadata.type.MetaDataTypeFactory

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.