|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exolab.castor.builder.BaseFactory
org.exolab.castor.builder.EnumerationFactory
This class creates the Java sources for XML Schema components that define an enumeration.
| Constructor Summary | |
EnumerationFactory(BuilderConfiguration config,
GroupNaming groupNaming)
Creates a new EnumerationFactory for the builder configuration given. |
|
| Method Summary | |
(package private) void |
processEnumerationAsBaseType(ExtendedBinding binding,
SimpleType simpleType,
FactoryState state)
Creates all the necessary enumeration code from the given SimpleType. |
(package private) void |
processEnumerationAsNewObject(ExtendedBinding binding,
SimpleType simpleType,
FactoryState state)
Creates all the necessary enumeration code for a given SimpleType. |
void |
setCaseInsensitive(boolean caseInsensitive)
Set to true if enumerated type lookups should be performed in a case insensitive manner. |
| Methods inherited from class org.exolab.castor.builder.BaseFactory |
getConfig, getGroupNaming, getInfoFactory, normalize, setGroupNaming |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EnumerationFactory(BuilderConfiguration config,
GroupNaming groupNaming)
config - the current BuilderConfiguration instance.groupNaming - The group naming scheme to be used.| Method Detail |
void processEnumerationAsNewObject(ExtendedBinding binding,
SimpleType simpleType,
FactoryState state)
binding - simpleType - the SimpleType we are processing an enumeration forstate - our current stateprocessEnumerationAsBaseType(org.exolab.castor.builder.binding.ExtendedBinding, org.exolab.castor.xml.schema.SimpleType, org.exolab.castor.builder.FactoryState)
void processEnumerationAsBaseType(ExtendedBinding binding,
SimpleType simpleType,
FactoryState state)
public class {name} {
// list of values
{type}[] values = {
...
};
// Returns true if the given value is part
// of this enumeration
public boolean contains({type} value);
// Returns the {type} value whose String value
// is equal to the given String
public {type} valueOf(String strValue);
}
binding - simpleType - the SimpleType we are processing an enumeration forstate - our current statepublic void setCaseInsensitive(boolean caseInsensitive)
caseInsensitive - when true
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||