Examples of MapKeyProperty


Examples of ma.glasnost.orika.metadata.MapKeyProperty

        Type<?> elementType;
        Property elementProperty;
        if (owningProperty.isMap()) {
            elementType = MapEntry.concreteEntryType((Type<Map<Object, Object>>) owningProperty.getType());
            String key = elementPropertyExpression.substring(1, elementPropertyExpression.length()-1);
            elementProperty = new MapKeyProperty(key, elementType.getNestedType(1), null);
        } else if (owningProperty.isCollection()) {
            elementType = owningProperty.getType().getNestedType(0);
            try {
                int index = Integer.valueOf(elementPropertyExpression.replaceAll("[\\[\\]]", ""));
                elementProperty = new ListElementProperty(index, elementType, 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.