Package supportedtypes.ifaces

Examples of supportedtypes.ifaces.SupportedTypes


    }

    public static void main( final String[] args ) throws Exception
    {
        final Document parsedDocument = Main.getDocument( "/supportedtypes.xml" );
        final SupportedTypes supportedTypes = XML2Java.bind( parsedDocument, SupportedTypes.class );

        final Primitives primitives = supportedTypes.getPrimitives();
        System.out.println( "'boolean' attribute value is: " + primitives.getBoolean() );
        System.out.println( "'byte' attribute value is: " + primitives.getByte() );
        System.out.println( "'char' attribute value is: " + primitives.getChar() );
        System.out.println( "'short' attribute value is: " + primitives.getShort() );
        System.out.println( "'int' attribute value is: " + primitives.getInt() );
        System.out.println( "'long' attribute value is: " + primitives.getLong() );
        System.out.println( "'float' attribute value is: " + primitives.getFloat() );
        System.out.println( "'double' attribute value is: " + primitives.getDouble() );

        System.out.println();

        final NonPrimitives nonPrimitives = supportedTypes.getNonPrimitives();
        System.out.println( "'Boolean' element text value is: " + nonPrimitives.getBoolean() );
        System.out.println( "'Byte' element text value is: " + nonPrimitives.getByte() );
        System.out.println( "'Character' element text value is: " + nonPrimitives.getCharacter() );
        System.out.println( "'Short' element text value is: " + nonPrimitives.getShort() );
        System.out.println( "'Integer' element text value is: " + nonPrimitives.getInteger() );
View Full Code Here

TOP

Related Classes of supportedtypes.ifaces.SupportedTypes

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.