List of usage examples for org.apache.commons.lang ClassUtils INNER_CLASS_SEPARATOR_CHAR
char INNER_CLASS_SEPARATOR_CHAR
To view the source code for org.apache.commons.lang ClassUtils INNER_CLASS_SEPARATOR_CHAR.
Click Source Link
The inner class separator character: '$' ==
.
From source file:org.projectforge.core.AbstractBaseDO.java
/** * Returns whether or not to append the given <code>Field</code>. * <ul>// w ww .j a v a2 s . c o m * <li>Ignore transient fields * <li>Ignore static fields * <li>Ignore inner class fields</li> * </ul> * * @param field The Field to test. * @return Whether or not to consider the given <code>Field</code>. */ protected static boolean accept(final Field field) { if (field.getName().indexOf(ClassUtils.INNER_CLASS_SEPARATOR_CHAR) != -1) { // Reject field from inner class. return false; } if (Modifier.isTransient(field.getModifiers()) == true) { // transients. return false; } if (Modifier.isStatic(field.getModifiers()) == true) { // transients. return false; } if ("created".equals(field.getName()) == true || "lastUpdate".equals(field.getName()) == true) { return false; } return true; }
From source file:org.projectforge.core.ConfigXml.java
/** * Returns whether or not to append the given <code>Field</code>. * <ul>/*from w w w .j av a 2 s .c o m*/ * <li>Ignore transient fields * <li>Ignore static fields * <li>Ignore inner class fields</li> * </ul> * * @param field The Field to test. * @return Whether or not to consider the given <code>Field</code>. */ protected static boolean accept(final Field field) { if (field.getName().indexOf(ClassUtils.INNER_CLASS_SEPARATOR_CHAR) != -1) { // Reject field from inner class. return false; } if (Modifier.isTransient(field.getModifiers()) == true) { // transients. return false; } if (Modifier.isStatic(field.getModifiers()) == true) { // transients. return false; } return true; }
From source file:org.projectforge.database.XmlDump.java
/** * @param field/* ww w . j av a2 s .c om*/ * @return true, if the given field should be compared. */ protected boolean accept(final Field field) { if (field.getName().indexOf(ClassUtils.INNER_CLASS_SEPARATOR_CHAR) != -1) { // Reject field from inner class. return false; } if (field.getName().equals("handler") == true) { // Handler of Javassist proxy should be ignored. return false; } if (Modifier.isTransient(field.getModifiers()) == true) { // transients. return false; } if (Modifier.isStatic(field.getModifiers()) == true) { // transients. return false; } return true; }
From source file:stc.app.bean.lang.ReflectionToStringBuilder.java
/** * Returns whether or not to append the given <code>Field</code>. * <ul>//w w w. ja v a 2 s . c o m * <li>Transient fields are appended only if {@link #isAppendTransients()} returns * <code>true</code>. * <li>Static fields are appended only if {@link #isAppendStatics()} returns <code>true</code>. * <li>Inner class fields are not appened.</li> * </ul> * * @param field The Field to test. * @return Whether or not to append the given <code>Field</code>. */ protected boolean accept(Field field) { if (field.getName().indexOf(ClassUtils.INNER_CLASS_SEPARATOR_CHAR) != -1) { // Reject field from inner class. return false; } if (Modifier.isTransient(field.getModifiers()) && !this.isAppendTransients()) { // Reject transient fields. return false; } if (Modifier.isStatic(field.getModifiers()) && !this.isAppendStatics()) { // Reject static fields. return false; } if (this.getExcludeFieldNames() != null && Arrays.binarySearch(this.getExcludeFieldNames(), field.getName()) >= 0) { // Reject fields from the getExcludeFieldNames list. return false; } return true; }