org.progeeks.util.beans
Class ContainerPropertyDescriptor.PluralPattern
java.lang.Object
org.progeeks.util.beans.ContainerPropertyDescriptor.PluralPattern
- Enclosing class:
- ContainerPropertyDescriptor
protected static class ContainerPropertyDescriptor.PluralPattern
- extends java.lang.Object
Encapsulates the conversion from a specific plural type
to a specific singular type using a regex expression and
a suffix.
Method Summary |
java.lang.String |
convertToSingular(java.lang.String name)
Returns the specified name converted to a singular value
or null if it doesn't match this plural pattern. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContainerPropertyDescriptor.PluralPattern
public ContainerPropertyDescriptor.PluralPattern(java.lang.String pattern,
java.lang.String suffix)
convertToSingular
public java.lang.String convertToSingular(java.lang.String name)
- Returns the specified name converted to a singular value
or null if it doesn't match this plural pattern.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2003 Paul Speed. All Rights Reserved.