ObjectFactory then wraps it and provides
access to it.
The ObjectFactory contains factory methods for each schema derived content class
| Modifier and Type | Field and Description |
|---|---|
| private final JClass | |
| private final JCodeModel | |
| private final Map | elementFactoryNames
Names of the element factory methods that are created. |
| private final Model | |
| private final JDefinedClass | objectFactory
Reference to the generated ObjectFactory class. |
| private final BeanGenerator | |
| private final HashMap | qnameMap
map of qname to the QName constant field. |
| private final Map | valueFactoryNames
Names of the value factory methods that are created. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private JInvocation | |
| public JDefinedClass | getObjectFactory()
Implements abstract com. Returns a reference to the generated (public) ObjectFactory |
| private JExpression | getQNameInvocation(CElementInfo ei)
return a JFieldVar that represents the QName field for the given information. |
| protected final void | populate(CElementInfo ei, Aspect impl, Aspect exposed)
Adds code for the given |
| protected final void |
| classRef | back to summary |
|---|---|
| private final JClass classRef Ref to | |
| codeModel | back to summary |
|---|---|
| private final JCodeModel codeModel | |
| elementFactoryNames | back to summary |
|---|---|
| private final Map<String, CElementInfo> elementFactoryNames Names of the element factory methods that are created. Used to detect collisions. The value is used for reporting error locations. | |
| model | back to summary |
|---|---|
| private final Model model | |
| objectFactory | back to summary |
|---|---|
| private final JDefinedClass objectFactory Reference to the generated ObjectFactory class. | |
| outline | back to summary |
|---|---|
| private final BeanGenerator outline | |
| qnameMap | back to summary |
|---|---|
| private final HashMap<QName, JFieldVar> qnameMap map of qname to the QName constant field. | |
| valueFactoryNames | back to summary |
|---|---|
| private final Map<String, ClassOutlineImpl> valueFactoryNames Names of the value factory methods that are created. Used to detect collisions. The value is used for reporting error locations. | |
| ObjectFactoryGeneratorImpl | back to summary |
|---|---|
| public ObjectFactoryGeneratorImpl(BeanGenerator outline, Model model, JPackage targetPackage) | |
| camelize | back to summary |
|---|---|
| private static String camelize(String s) Change the first character to the lower case. | |
| createQName | back to summary |
|---|---|
| private JInvocation createQName(QName name) Generates an expression that evaluates to "new QName(...)" | |
| getObjectFactory | back to summary |
|---|---|
| public JDefinedClass getObjectFactory() Implements abstract com. Returns a reference to the generated (public) ObjectFactory
| |
| getQNameInvocation | back to summary |
|---|---|
| private JExpression getQNameInvocation(CElementInfo ei) return a JFieldVar that represents the QName field for the given information. if it doesn't exist, create a static field in the class and store a new JFieldVar. | |
| populate | back to summary |
|---|---|
| protected final void populate(CElementInfo ei, Aspect impl, Aspect exposed) Adds code for the given | |
| populate | back to summary |
|---|---|
| protected final void populate(ClassOutlineImpl cc, JClass sigType) | |