Package com.asakusafw.testdriver.core

Examples of com.asakusafw.testdriver.core.PropertyType


            throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
        }
        if (type == null) {
            throw new IllegalArgumentException("type must not be null"); //$NON-NLS-1$
        }
        PropertyType kind = TYPES.get(type);
        if (kind == null) {
            return null;
        }
        if (kind.getRepresentation() == Calendar.class) {
            List<String> words = name.getWords();
            if (words.contains(PropertyType.DATE.name().toLowerCase())) {
                return PropertyType.DATE;
            } else if (words.contains(PropertyType.TIME.name().toLowerCase())) {
                return PropertyType.TIME;
View Full Code Here


            }
            Object value = object.getValue(property);
            if (value == null) {
                return null;
            }
            PropertyType type = definition.getType(property);
            switch (type) {
            case DATE:
                return dateFormat.format(((Calendar) value).getTime());
            case TIME:
                return timeFormat.format(((Calendar) value).getTime());
View Full Code Here

        if (name == null) {
            throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
        }
        String[] words = name.split("_|-|\\s+");
        PropertyName propertyName = PropertyName.newInstance(words);
        PropertyType type = definition.getType(propertyName);
        if (type == null) {
            throw new IllegalArgumentException(MessageFormat.format(
                    "\"{0}\"にプロパティ\"{1}\"は定義されていません",
                    definition.getModelClass().getName(),
                    propertyName));
View Full Code Here

    private Map<String, PropertyName> extractAllMappings() {
        assert definition != null;
        Map<String, PropertyName> results = new TreeMap<String, PropertyName>(String.CASE_INSENSITIVE_ORDER);
        for (PropertyName name : definition.getProperties()) {
            PropertyType type = definition.getType(name);
            assert type != null;
            if (acceptsType(name, type) == false) {
                continue;
            }
            String columnName = getOriginalName(name);
View Full Code Here

TOP

Related Classes of com.asakusafw.testdriver.core.PropertyType

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.