Package org.qi4j.api.value

Examples of org.qi4j.api.value.ValueDescriptor.state()


        XmlSchemaSequence sequence = new XmlSchemaSequence(); // No clue why this?
        complex.setParticle( sequence )// No idea what this is for

        ValueDescriptor descriptor = module.valueDescriptor( getTypeClass().getName() );

        for( PropertyDescriptor p : descriptor.state().properties() )
        {
            if( isValueComposite( p.type() ) )
            {
                XmlSchemaElement element = new XmlSchemaElement( root, false );
                element.setName( p.qualifiedName().name() );
View Full Code Here


        Class<?> valueType = interactionMethod.getParameterTypes()[ 0 ];
        if( ValueComposite.class.isAssignableFrom( valueType ) )
        {
            ValueDescriptor valueDescriptor = module.valueDescriptor( valueType.getName() );

            for( PropertyDescriptor propertyDescriptor : valueDescriptor.state().properties() )
            {
                String value = getValue( propertyDescriptor.qualifiedName().name(), queryAsForm, entityAsForm );

                if( value == null )
                {
View Full Code Here

            {
                JSONObject json = new JSONObject();
                ValueDescriptor vd = (ValueDescriptor) result;
                try
                {
                    for( PropertyDescriptor propertyDescriptor : vd.state().properties() )
                    {
                        Object o = propertyDescriptor.initialValue( module );
                        if( o == null )
                        {
                            json.put( propertyDescriptor.qualifiedName().name(), JSONObject.NULL );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.