Package blackberry.core

Examples of blackberry.core.ScriptableObjectBase


            final StringBuffer optionalProperty ) {
        // clear optionalField
        optionalProperty.setLength( 0 );

        // Parse whether leftField contains subfield or attribute
        ScriptableObjectBase o = object;
        String optional = "";
        String key = fieldName;
        if( key.indexOf( '.' ) >= 0 ) {
            final StringTokenizer st = new StringTokenizer( key, "." );
            while( true ) {
                key = st.nextToken();
                if( !st.hasMoreTokens() ) {
                    break;
                }

                final ScriptField field = o.getItem( key );
                if( field == null ) {
                    return null;
                }

                if( field.getType() == ScriptField.TYPE_SCRIPTABLE ) {
                    o = (ScriptableObjectBase) field.getValue();
                    if( o == null ) {
                        return null;
                    }
                } else {
                    // allow other types have sub-property???
                    optional = st.nextToken();
                    break;
                }
            }
        }

        ScriptField fieldToTest = null;
        try {
            fieldToTest = o.getItem( key );
        } catch( final Exception e ) {
        }
        optionalProperty.append( optional );

        return fieldToTest;
View Full Code Here


            if( orderByValue == null ) {
                vector.addElement( object );
                return;
            }

            ScriptableObjectBase objectInVector;
            Object valueInVector;

            while( end - start >= 2 ) {
                final int insertPosition = start + ( end - start ) / 2;
View Full Code Here

TOP

Related Classes of blackberry.core.ScriptableObjectBase

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.