Public Member Functions | |
| CollectionInfoODMG30 (XSType contentType, String name, String elementName) | |
| void | generateInitializerCode (JSourceCode jsc) |
| void | createAddMethod (JMethod method) |
| void | createAddInsertMethod (JMethod method) |
| void | createGetMethod (JMethod method) |
| void | createGetByIndexMethod (JMethod method) |
| void | createSetArrayMethod (JMethod method) |
| void | createSetByIndexMethod (JMethod method) |
| void | createGetCountMethod (JMethod method) |
| void | createEnumerateMethod (JMethod method) |
| void | createRemoveByObjectMethod (JMethod method) |
| void | createRemoveByIndexMethod (JMethod method) |
| void | createRemoveAllMethod (JMethod method) |
A helper used for generating source that deals with Collections.
| org.exolab.castor.builder.CollectionInfoODMG30.CollectionInfoODMG30 | ( | XSType | contentType, | |
| String | name, | |||
| String | elementName | |||
| ) |
Creates a new CollectionInfoODMG30
| contextType | the content type of the collection, ie. the type of objects that the collection will contain | |
| name | the name of the Collection | |
| elementName | the element name for each element in collection |
References org.exolab.castor.builder.XMLInfo.getSchemaType(), org.exolab.castor.builder.XMLInfo.setSchemaType(), and org.exolab.castor.builder.CollectionInfo.xsList.
| void org.exolab.castor.builder.CollectionInfoODMG30.createAddInsertMethod | ( | JMethod | method | ) |
Creates implementation of add method with index.
| method | the JMethod in which to create the source code. |
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode(), org.exolab.castor.builder.CollectionInfo.getContentName(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.types.XSList.getMaximumSize(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.castor.builder.CollectionInfo.getXSList(), org.exolab.javasource.JSourceCode.indent(), org.exolab.castor.builder.FieldInfo.isBound(), and org.exolab.javasource.JSourceCode.unindent().
| void org.exolab.castor.builder.CollectionInfoODMG30.createAddMethod | ( | JMethod | method | ) |
Creates implementation of add method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.CollectionInfo.getContentName(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.types.XSList.getMaximumSize(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.castor.builder.CollectionInfo.getXSList(), org.exolab.javasource.JSourceCode.indent(), and org.exolab.javasource.JSourceCode.unindent().
| void org.exolab.castor.builder.CollectionInfoODMG30.createEnumerateMethod | ( | JMethod | method | ) |
Creates implementation of Enumerate method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.FieldInfo.getName(), and org.exolab.javasource.JMethod.getSourceCode().
| void org.exolab.castor.builder.CollectionInfoODMG30.createGetByIndexMethod | ( | JMethod | method | ) |
Creates implementation of the get(index) method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.types.XSType.CLASS, org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getReturnType(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.javasource.JSourceCode.indent(), org.exolab.javasource.JType.toString(), and org.exolab.javasource.JSourceCode.unindent().
| void org.exolab.castor.builder.CollectionInfoODMG30.createGetCountMethod | ( | JMethod | method | ) |
Creates implementation of getCount method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
| void org.exolab.castor.builder.CollectionInfoODMG30.createGetMethod | ( | JMethod | method | ) |
Creates implementation of object[] get() method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.types.XSType.CLASS, org.exolab.javasource.JType.getComponentType(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.javasource.JType.getName(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getReturnType(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.javasource.JSourceCode.indent(), org.exolab.javasource.JType.isArray(), org.exolab.javasource.JType.toString(), and org.exolab.javasource.JSourceCode.unindent().
| void org.exolab.castor.builder.CollectionInfoODMG30.createRemoveAllMethod | ( | JMethod | method | ) |
Creates implementation of removeAll() method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.FieldInfo.getName(), and org.exolab.javasource.JMethod.getSourceCode().
| void org.exolab.castor.builder.CollectionInfoODMG30.createRemoveByIndexMethod | ( | JMethod | method | ) |
Creates implementation of remove(int i) method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.types.XSType.CLASS, org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.javasource.JType.getName(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getReturnType(), and org.exolab.javasource.JMethod.getSourceCode().
| void org.exolab.castor.builder.CollectionInfoODMG30.createRemoveByObjectMethod | ( | JMethod | method | ) |
Creates implementation of remove(Object) method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
| void org.exolab.castor.builder.CollectionInfoODMG30.createSetArrayMethod | ( | JMethod | method | ) |
Creates implementation of array set method
Method added 12/14/2000 BD
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JParameter.getName(), org.exolab.javasource.JMethod.getParameter(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.javasource.JSourceCode.indent(), org.exolab.castor.builder.FieldInfo.isBound(), and org.exolab.javasource.JSourceCode.unindent().
| void org.exolab.castor.builder.CollectionInfoODMG30.createSetByIndexMethod | ( | JMethod | method | ) |
Creates implementation of set method.
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.CollectionInfo.getContentName(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.types.XSList.getMaximumSize(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.castor.builder.CollectionInfo.getXSList(), org.exolab.javasource.JSourceCode.indent(), and org.exolab.javasource.JSourceCode.unindent().
| void org.exolab.castor.builder.CollectionInfoODMG30.generateInitializerCode | ( | JSourceCode | jsc | ) |
Creates code for initialization of this Member
| jsc | the JSourceCode in which to add the source to |
Reimplemented from org.exolab.castor.builder.CollectionInfo.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), and org.exolab.castor.builder.FieldInfo.getName().
1.7.0