A helper used for generating source that deals with Collections
org.exolab.castor.builder.CollectionInfo.CollectionInfo | ( | XSType | contentType, | |
String | name, | |||
String | elementName | |||
) |
Creates a new CollectionInfo
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.FieldInfo.FieldInfo(), org.exolab.castor.builder.XMLInfo.getSchemaType(), and org.exolab.castor.builder.CollectionInfo.xsList.
void org.exolab.castor.builder.CollectionInfo.createAccessMethods | ( | JClass | jClass | ) |
Creates the Access methods for the collection described by this CollectionInfo
jClass | the JClass to add the methods to. |
Reimplemented from org.exolab.castor.builder.FieldInfo.
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2.
References org.exolab.javasource.JMethod.addException(), org.exolab.javasource.JClass.addMethod(), org.exolab.javasource.JMethod.addParameter(), org.exolab.castor.builder.CollectionInfo.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfo.createAddMethod(), org.exolab.javasource.JType.createArray(), org.exolab.castor.builder.CollectionInfo.createEnumerateMethod(), org.exolab.castor.builder.CollectionInfo.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createGetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.createGetCountMethod(), org.exolab.castor.builder.CollectionInfo.createGetMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveAllMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfo.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.extraMethods(), org.exolab.castor.builder.CollectionInfo.getContentName(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.CollectionInfo.getElementName(), org.exolab.castor.builder.types.XSType.getJType(), and org.exolab.javasource.JParameter.getType().
void org.exolab.castor.builder.CollectionInfo.createAddInsertMethod | ( | JMethod | method | ) |
Creates implementation of add method with an index.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createAddMethod | ( | JMethod | method | ) |
Creates implementation of add method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode | ( | JSourceCode | jsc | ) | [protected] |
Creates the necessary source code for notifying PropertyChangeListeners when the collection has been updated.
jsc | the JSourceCode to add the new source code to. |
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), and org.exolab.castor.builder.FieldInfo.getName().
Referenced by org.exolab.castor.builder.CollectionInfoODMG30.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfo.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddMethod(), org.exolab.castor.builder.CollectionInfo.createAddMethod(), org.exolab.castor.builder.CollectionInfoJ2.createClearMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveAllMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveAllMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveByObjectMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveByObjectMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfo.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionReferenceMethod(), and org.exolab.castor.builder.CollectionInfo.createSetCollectionReferenceMethod().
void org.exolab.castor.builder.CollectionInfo.createEnumerateMethod | ( | JMethod | method | ) |
Creates implementation of Enumerate method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.FieldInfo.getName(), and org.exolab.javasource.JMethod.getSourceCode().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createGetByIndexMethod | ( | JMethod | method | ) |
Creates implementation of the get(index) method.
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createGetCollectionReferenceMethod | ( | JMethod | method | ) |
Creates implementation of collection reference get method. This method simply returns the actual reference to the collection.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JDocComment.addDescriptor(), org.exolab.javasource.JSourceCode.append(), org.exolab.javasource.JDocComment.appendComment(), org.exolab.castor.builder.CollectionInfo.getElementName(), org.exolab.javasource.JMethod.getJDocComment(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getSourceCode(), and org.exolab.javasource.JDocDescriptor.setDescription().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createGetCountMethod | ( | JMethod | method | ) |
Creates implementation of getCount method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoODMG30.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.FieldInfo.getName(), and org.exolab.javasource.JMethod.getSourceCode().
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), and org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createGetMethod | ( | JMethod | method | ) |
Creates implementation of object[] get() method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createRemoveAllMethod | ( | JMethod | method | ) |
Creates implementation of removeAll() method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JMethod.getSourceCode(), and org.exolab.castor.builder.FieldInfo.isBound().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createRemoveByIndexMethod | ( | JMethod | method | ) |
Creates implementation of remove(int i) method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.types.XSType.CLASS, org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode(), 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(), and org.exolab.castor.builder.FieldInfo.isBound().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createRemoveByObjectMethod | ( | JMethod | method | ) |
Creates implementation of remove(Object) method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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.FieldInfo.getName(), org.exolab.javasource.JMethod.getSourceCode(), and org.exolab.castor.builder.FieldInfo.isBound().
void org.exolab.castor.builder.CollectionInfo.createSetArrayMethod | ( | JMethod | method | ) |
Creates implementation of array set method
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createSetByIndexMethod | ( | JMethod | method | ) |
Creates implementation of set method.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
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().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createSetCollectionMethod | ( | JMethod | method | ) |
Creates implementation of collection set method. The method will assign the field a copy of the given collection. The fields will be checked for type safety.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.javasource.JDocComment.appendComment(), org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.CollectionInfo.getElementName(), org.exolab.javasource.JMethod.getJDocComment(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JParameter.getName(), org.exolab.javasource.JDocComment.getParamDescriptor(), org.exolab.javasource.JMethod.getParameter(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.javasource.JSourceCode.indent(), org.exolab.castor.builder.FieldInfo.isBound(), org.exolab.javasource.JDocDescriptor.setDescription(), and org.exolab.javasource.JSourceCode.unindent().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.createSetCollectionReferenceMethod | ( | JMethod | method | ) |
Creates implementation of collection reference set method. This method is a non-type safe method which simply assigns the given collection to the field.
method | the JMethod in which to create the source code. |
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.javasource.JDocComment.appendComment(), org.exolab.castor.builder.CollectionInfo.createBoundPropertyCode(), org.exolab.castor.builder.CollectionInfo.getElementName(), org.exolab.javasource.JMethod.getJDocComment(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.javasource.JParameter.getName(), org.exolab.javasource.JDocComment.getParamDescriptor(), org.exolab.javasource.JMethod.getParameter(), org.exolab.javasource.JMethod.getSourceCode(), org.exolab.castor.builder.FieldInfo.isBound(), and org.exolab.javasource.JDocDescriptor.setDescription().
Referenced by org.exolab.castor.builder.CollectionInfo.createAccessMethods().
final boolean org.exolab.castor.builder.CollectionInfo.extraMethods | ( | ) | [protected] |
Returns true if extra collection methods should be generated. The extra collection methods are methods which return an actual reference to the underlying collection as opposed to an enumeration, iterator, or copy.
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), and org.exolab.castor.builder.CollectionInfo.createAccessMethods().
void org.exolab.castor.builder.CollectionInfo.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.FieldInfo.
Reimplemented in org.exolab.castor.builder.CollectionInfoJ2, and org.exolab.castor.builder.CollectionInfoODMG30.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), and org.exolab.castor.builder.FieldInfo.getName().
FieldInfo org.exolab.castor.builder.CollectionInfo.getContent | ( | ) |
String org.exolab.castor.builder.CollectionInfo.getContentName | ( | ) |
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), org.exolab.castor.builder.CollectionInfo.createAccessMethods(), org.exolab.castor.builder.CollectionInfoODMG30.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfo.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createAddMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddMethod(), org.exolab.castor.builder.CollectionInfo.createAddMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveByObjectMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveByObjectMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetByIndexMethod(), and org.exolab.castor.builder.CollectionInfo.createSetByIndexMethod().
XSType org.exolab.castor.builder.CollectionInfo.getContentType | ( | ) |
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), org.exolab.castor.builder.CollectionInfo.createAccessMethods(), org.exolab.castor.builder.CollectionInfoODMG30.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfo.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createAddMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddMethod(), org.exolab.castor.builder.CollectionInfo.createAddMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createGetMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetMethod(), org.exolab.castor.builder.CollectionInfo.createGetMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfo.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionMethod(), and org.exolab.castor.builder.CollectionInfo.getReadMethod().
String org.exolab.castor.builder.CollectionInfo.getElementName | ( | ) |
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), org.exolab.castor.builder.CollectionInfo.createAccessMethods(), org.exolab.castor.builder.CollectionInfoJ2.createGetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.createGetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.getReadMethodName(), and org.exolab.castor.builder.CollectionInfo.getWriteMethodName().
JMethod org.exolab.castor.builder.CollectionInfo.getReadMethod | ( | ) |
Returns the main read method for this member
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.types.XSType.getJType(), org.exolab.castor.builder.FieldInfo.getName(), org.exolab.castor.builder.CollectionInfo.getReadMethodName(), and org.exolab.javasource.JMethod.getSourceCode().
String org.exolab.castor.builder.CollectionInfo.getReadMethodName | ( | ) |
Returns the name of the read method for this FieldInfo
Reimplemented from org.exolab.castor.builder.FieldInfo.
References org.exolab.castor.builder.CollectionInfo.getElementName().
Referenced by org.exolab.castor.builder.CollectionInfo.getReadMethod().
final String org.exolab.castor.builder.CollectionInfo.getReferenceMethodSuffix | ( | ) | [protected] |
Returns the suffix (ending) that should be used when creating the extra collection methods
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods().
String org.exolab.castor.builder.CollectionInfo.getWriteMethodName | ( | ) |
Returns the name of the write method for this FieldInfo
Reimplemented from org.exolab.castor.builder.FieldInfo.
References org.exolab.castor.builder.CollectionInfo.getElementName().
XSList org.exolab.castor.builder.CollectionInfo.getXSList | ( | ) |
References org.exolab.castor.builder.CollectionInfo.xsList.
Referenced by org.exolab.castor.builder.CollectionInfoODMG30.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfo.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createAddMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddMethod(), org.exolab.castor.builder.CollectionInfo.createAddMethod(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.MemberFactory.createFieldInfoForAny(), org.exolab.castor.builder.CollectionInfoODMG30.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetByIndexMethod(), and org.exolab.castor.builder.CollectionInfo.createSetByIndexMethod().
boolean org.exolab.castor.builder.CollectionInfo.isMultivalued | ( | ) |
Return whether or not this member is a multivalued member or not
Reimplemented from org.exolab.castor.builder.XMLInfo.
void org.exolab.castor.builder.CollectionInfo.setCreateExtraMethods | ( | boolean | extraMethods | ) |
Sets whether or not to create extra collection methods for accessing the actual collection
extraMethods | a boolean that when true indicates that extra collection accessor methods should be created. False by default. |
Referenced by org.exolab.castor.builder.FieldInfoFactory.createCollection().
void org.exolab.castor.builder.CollectionInfo.setReferenceMethodSuffix | ( | String | suffix | ) |
Sets the method suffix (ending) to use when creating the extra collection methods.
suffix | the method suffix to use when creating the extra collection methods. If null or emtpty the default value, as specified by DEFAULT_REFERENCE_SUFFIX will used. |
References org.exolab.castor.builder.CollectionInfo.DEFAULT_REFERENCE_SUFFIX.
Referenced by org.exolab.castor.builder.FieldInfoFactory.createCollection().
final String org.exolab.castor.builder.CollectionInfo.DEFAULT_REFERENCE_SUFFIX = "AsReference" [static] |
final String org.exolab.castor.builder.CollectionInfo.REFERENCE_SUFFIX_PROPERTY = "org.exolab.castor.builder.collections.reference.suffix" [static] |
The property used to overwrite the reference suffix for extra collection methods
XSList org.exolab.castor.builder.CollectionInfo.xsList = null [protected] |