Package org.seasar.framework.beans

Examples of org.seasar.framework.beans.BeanDesc


        if (patternMap.isEmpty()) {
            return false;
        }

        try {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(responseData
                    .getClass());
            for (final Map.Entry<String, Pattern> entry : patternMap.entrySet()) {
                final Field field = beanDesc.getField(entry.getKey());
                final Object value = FieldUtil.get(field, responseData);
                if (value == null
                        || !entry.getValue().matcher(value.toString())
                                .matches()) {
                    return false;
View Full Code Here


        return sessionId + ID_SEPARATOR
                + new String(base64.encode(url.getBytes(UTF_8)), UTF_8);
    }

    private String getUrl(final Object target) {
        final BeanDesc beanDesc = BeanDescFactory
                .getBeanDesc(target.getClass());
        final PropertyDesc sessionIdProp = beanDesc.getPropertyDesc(URL);
        final Object sessionId = sessionIdProp.getValue(target);
        return sessionId == null ? null : sessionId.toString();
    }
View Full Code Here

        final Object sessionId = sessionIdProp.getValue(target);
        return sessionId == null ? null : sessionId.toString();
    }

    private String getSessionId(final Object target) {
        final BeanDesc beanDesc = BeanDescFactory
                .getBeanDesc(target.getClass());
        final PropertyDesc sessionIdProp = beanDesc.getPropertyDesc(SESSION_ID);
        final Object sessionId = sessionIdProp.getValue(target);
        return sessionId == null ? null : sessionId.toString();
    }
View Full Code Here

        }
    }

    protected Method getQueryMethod(final Element element,
            final String queryType, final List<Object> argList) {
        final BeanDesc elementDesc = BeanDescFactory.getBeanDesc(element
                .getClass());
        if (argList == null || argList.isEmpty()) {
            return elementDesc.getMethod(queryType);
        } else {
            final Class<?>[] paramTypes = new Class[argList.size()];
            for (int i = 0; i < paramTypes.length; i++) {
                paramTypes[i] = String.class;
            }
            return elementDesc.getMethod(queryType, paramTypes);
        }
    }
View Full Code Here

TOP

Related Classes of org.seasar.framework.beans.BeanDesc

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.