Examples of MapType


Examples of org.destecs.tools.jprotocolgenerator.ast.MapType

  private static ITypeNode getStructType(Element typeNode)
  {
    Assert.assertEquals(TAG_STRUCT, typeNode.getNodeName());

    StringBuilder sb = new StringBuilder();
    MapType mapType = new MapType();
    sb.append(Map.class.getSimpleName());
    sb.append("<");
    sb.append(String.class.getSimpleName());
    sb.append(",");
View Full Code Here

Examples of org.jfx4ee.adm4ee.business.configuration.entity.PropertiesAdapter.MapType

*/
public class PropertiesAdapter extends XmlAdapter<MapType, Map<String, String>> {

    @Override
    public MapType marshal(Map<String, String> map) {
        MapType mapType = new MapType();
        map.entrySet().stream().map((entry) -> {
            MapEntry mapEntry = new MapEntry();
            mapEntry.name = entry.getKey();
            mapEntry.value = entry.getValue();
            return mapEntry;
View Full Code Here

Examples of org.qi4j.api.type.MapType

            if (value != null)
            {
                Map map = new LinkedHashMap( (Map) value);

                // Check if keys/values are Values
                MapType mapType = (MapType) propertyDescriptor.valueType();
                if( mapType.getKeyType() instanceof ValueCompositeType )
                {
                    for( Object instance : map.keySet() )
                    {
                        ValueInstance.getValueInstance( (ValueComposite) instance ).prepareToBuild();
                    }
                }
                if( mapType.getValueType() instanceof ValueCompositeType )
                {
                    for( Object instance : map.values() )
                    {
                        ValueInstance.getValueInstance( (ValueComposite) instance ).prepareToBuild();
                    }
View Full Code Here

Examples of org.qi4j.api.type.MapType

        {
            T value = get();

            if (value != null)
            {
                MapType mapType = (MapType) propertyDescriptor.valueType();
                if( mapType.getKeyType() instanceof ValueCompositeType )
                {
                    Map map = (Map) value;
                    for( Object instance : map.keySet() )
                    {
                        ValueInstance.getValueInstance( (ValueComposite) instance ).prepareBuilderState();
                    }
                }
                if( mapType.getValueType() instanceof ValueCompositeType )
                {
                    Map map = (Map) value;
                    for( Object instance : map.values() )
                    {
                        ValueInstance.getValueInstance( (ValueComposite) instance ).prepareBuilderState();
View Full Code Here

Examples of org.qi4j.api.type.MapType

                    TypeVariable valueTypeVariable = (TypeVariable) valType;
                    valType = Classes.resolveTypeVariable( valueTypeVariable, declaringClass, compositeType );
                }
                ValueType valuedType = newValueType( valType, declaringClass, compositeType, layer, module );

                valueType = new MapType( Classes.RAW_CLASS.map( type ), keyedType, valuedType );
            }
            else
            {
                valueType = new MapType( Classes.RAW_CLASS
                                             .map( type ), newValueType( Object.class, declaringClass, compositeType, layer, module ), newValueType( Object.class, declaringClass, compositeType, layer, module ) );
            }
        }
        else if( ValueCompositeType.isValueComposite( type ) )
        {
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.