objecttypedeterminer.java

来自「在Struts2中的jar包xwork的源代码.版本为2.0.7」· Java 代码 · 共 26 行

JAVA
26
字号
/* * Copyright (c) 2002-2006 by OpenSymphony * All rights reserved. */package com.opensymphony.xwork2.util;/** * Determines what the key and and element class of a Map or Collection should be. For Maps, the elements are the * values. For Collections, the elements are the elements of the collection. * * @author Gabriel Zimmerman */public interface ObjectTypeDeterminer {    public Class getKeyClass(Class parentClass, String property);    public Class getElementClass(Class parentClass, String property, Object key);    public String getKeyProperty(Class parentClass, String property);        public boolean shouldCreateIfNew(Class parentClass,             String property,             Object target,            String keyProperty,            boolean isIndexAccessed);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?