|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.dynamicenum.DynamicEnumerationHelper
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static Locale |
userLocale
|
private static Hashtable |
valueMap
|
Constructor Summary | |
DynamicEnumerationHelper()
|
Method Summary | |
static boolean |
add(WTContainer container,
String dynamicEnumType,
String dynamicEnumValue)
Adds the specified value to the FilteredDynamicEnum. |
static QueryResult |
add(WTContainer container,
String dynamicEnumType,
WTLargeStringSet dynamicValues,
WTLargeStringSet excludedValues)
Add a FilteredDynamicEnumSet instance associated to the Container. |
private static FilteredDynamicEnumSet |
findSet(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy)
|
private static FilteredDynamicEnumSet |
findSet(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy,
HashMap ancestorValues)
|
static WTLargeStringSet |
getBaseValues(String enumType)
Supported API: false |
static QueryResult |
getDynamicValueSet(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy)
Answers a wt.fc.QueryResult (of type String) of the dynamic values for the specified FilteredDynamicEnumSet. |
static FilteredDynamicEnumSet |
getEnumeratedType(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy)
Answers an java.util.Enumeration of the values of a FilteredDynamicEnumSet associated with specified Container and based on a specified DynamicEnumType. |
private static FilteredDynamicEnumSet |
getEnumeratedType(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy,
HashMap ancestorValueSets)
Answers an java.util.Enumeration of the values of a FilteredDynamicEnumSet associated with specified Container and based on a specified DynamicEnumType. |
static EnumeratedType |
getEnumeratedType(WTContainer container,
String dynamicEnumType,
String value)
This will take the Value passed in and look to see if corresponding enumerations from the parent Enumerated Type. |
static QueryResult |
getEnumeratedTypes(WTContainer container,
boolean searchHierarchy)
Answers a wt.fc.QueryResult of the DynamicEnumType class names for all FilteredDynamicEnumSet's associated with specified Container. |
static QueryResult |
getExcludedValueSet(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy)
Answers a wt.fc.QueryResult (of type String) of the excludedValueSet for the specified FilteredDynamicEnumSet. |
static QueryResult |
getFilteredDynamicEnumeration(WTContainer container,
String dynamicEnumType,
boolean searchHierarchy)
Answers a wt.fc.QueryResult (of type String) of values for the specified FilteredDynamicEnumSet. |
static WTLargeStringSet |
getPublicBaseValues(String filteredType)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DynamicEnumerationHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static void |
removeAll(WTContainer container)
Remove all FilteredDynamicEnumSet instances associated with the container Supported API: false |
static void |
removeType(WTContainer container,
String dynamicEnumType)
Remove the FilteredDynamicEnumSet for the specified DynamicEnumType and container. |
static QueryResult |
removeValue(WTContainer container,
String dynamicEnumType,
String value)
Remove the specified value from the FilteredDynamicEnumSet. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static Hashtable valueMap
private static Locale userLocale
Constructor Detail |
public DynamicEnumerationHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DynamicEnumerationHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static QueryResult getExcludedValueSet(WTContainer container, String dynamicEnumType, boolean searchHierarchy) throws WTException
container
- Object that the dynamic enumeration instance is associated to.dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.searchHierarchy
- If true, will seach up the Container hierarchy to find a FilteredDynamicEnumSet based on the specified DynamicEnumType.
If false, will only return a FilteredDynamicEnumSet for the specified (Container and DnynamicEnumType.
WTException
public static QueryResult getFilteredDynamicEnumeration(WTContainer container, String dynamicEnumType, boolean searchHierarchy) throws WTException
container
- Object that the dynamic enumeration instance is associated to.dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.searchHierarchy
- If true, will seach up the Container hierarchy to find a FilteredDynamicEnumSet based on the specified DynamicEnumType.
If false, will only return a FilteredDynamicEnumSet for the specified (Container and DnynamicEnumType.
WTException
public static QueryResult getEnumeratedTypes(WTContainer container, boolean searchHierarchy) throws WTException
container
- searchHierarchy
- If true, will seach up the Container hierarchy to find a FilteredDynamicEnumSet based on the specified DynamicEnumType.
If false, will only return a FilteredDynamicEnumSet for the specified (Container and DnynamicEnumType.
WTException
public static QueryResult removeValue(WTContainer container, String dynamicEnumType, String value) throws WTException, WTPropertyVetoException
container
- dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.value
- The value to be removed from the FilteredDynamicEnumSet.
WTException
WTPropertyVetoException
public static void removeType(WTContainer container, String dynamicEnumType) throws WTException
container
- dynamicEnumType
-
WTException
public static void removeAll(WTContainer container) throws WTException
container
-
WTException
public static QueryResult add(WTContainer container, String dynamicEnumType, WTLargeStringSet dynamicValues, WTLargeStringSet excludedValues) throws WTException, WTPropertyVetoException
container
- Object that the Dynamic Enumeration Instance will be associated todynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.dynamicValues
- The ad-hoc valueSet that willl that extends the base (inherited) list. The values returned by this set will be:
(inherited set + dynamic values) - excluded values.excludedValues
- The list of values which will be excluded from the set. The values returned by this set will be:
(inherited set + dynamic values) - excluded values.
WTException
WTPropertyVetoException
public static boolean add(WTContainer container, String dynamicEnumType, String dynamicEnumValue) throws WTException
container
- dynamicEnumType
- dynamicEnumValue
-
WTException
public static FilteredDynamicEnumSet getEnumeratedType(WTContainer container, String dynamicEnumType, boolean searchHierarchy) throws WTException
container
- dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.searchHierarchy
- If true, will seach up the Container hierarchy to find a FilteredDynamicEnumSet based on the specified DynamicEnumType.
If false, will only return a FilteredDynamicEnumSet for the specified (Container and DnynamicEnumType.
WTException
private static FilteredDynamicEnumSet getEnumeratedType(WTContainer container, String dynamicEnumType, boolean searchHierarchy, HashMap ancestorValueSets) throws WTException
container
- dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.searchHierarchy
- If true, will seach up the Container hierarchy to find a FilteredDynamicEnumSet based on the specified DynamicEnumType.
If false, will only return a FilteredDynamicEnumSet for the specified (Container and DnynamicEnumType.ancestorValueSets
-
WTException
public static QueryResult getDynamicValueSet(WTContainer container, String dynamicEnumType, boolean searchHierarchy) throws WTException
container
- Container that the FilteredDynamicEnumSet instance is associated to.dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.searchHierarchy
- If true, will seach up the Container hierarchy to find a FilteredDynamicEnumSet based on the specified DynamicEnumType.
If false, will only return a FilteredDynamicEnumSet for the specified (Container and DnynamicEnumType.
WTException
public static WTLargeStringSet getBaseValues(String enumType) throws WTException
enumType
-
WTException
public static EnumeratedType getEnumeratedType(WTContainer container, String dynamicEnumType, String value) throws WTException
container
- Object that the Dynamic Enumeration Instance will be associated to.dynamicEnumType
- The String name of the DynamicEnumType. This must be the fully qualified class name of a class derived from wt.fc.DynamicEnumType.value
- The string of the enumerated value.
WTException
private static FilteredDynamicEnumSet findSet(WTContainer container, String dynamicEnumType, boolean searchHierarchy) throws WTException
WTException
private static FilteredDynamicEnumSet findSet(WTContainer container, String dynamicEnumType, boolean searchHierarchy, HashMap ancestorValues) throws WTException
WTException
public static WTLargeStringSet getPublicBaseValues(String filteredType) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |