|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.builder.XMLInfo
org.exolab.castor.builder.FieldInfo
org.exolab.castor.builder.CollectionInfo
org.exolab.castor.builder.CollectionInfoJ2
A helper used for generating source that deals with Java 2 Collections.
| Field Summary |
|---|
| Fields inherited from class org.exolab.castor.builder.CollectionInfo |
|---|
REFERENCE_SUFFIX_PROPERTY, xsList |
| Fields inherited from class org.exolab.castor.builder.XMLInfo |
|---|
ATTRIBUTE_TYPE, ELEMENT_TYPE, TEXT_TYPE |
| Constructor Summary | |
|---|---|
CollectionInfoJ2(XSType contentType,
java.lang.String name,
java.lang.String elementName)
|
|
| Method Summary | |
|---|---|
void |
createAccessMethods(JClass jClass)
Creates the Access methods for the collection described by this CollectionInfo |
void |
createAddInsertMethod(JMethod method)
Creates implementation of add method with index. |
void |
createAddMethod(JMethod method)
Creates implementation of add method. |
void |
createClearMethod(JMethod method)
Creates implementation of clear() method. |
void |
createEnumerateMethod(JMethod method)
Creates implementation of Enumerate method. |
void |
createGetByIndexMethod(JMethod method)
Creates implementation of the get(index) method. |
void |
createGetCollectionReferenceMethod(JMethod method)
Creates implementation of collection reference get method. |
void |
createGetMethod(JMethod method)
Creates implementation of object[] get() method. |
void |
createRemoveAllMethod(JMethod method)
Creates implementation of removeAll() method. |
void |
createRemoveByIndexMethod(JMethod method)
Creates implementation of remove(int i) method. |
void |
createRemoveByObjectMethod(JMethod method)
Creates implementation of remove(Object) method. |
void |
createRemoveMethod(JMethod method)
Creates implementation of remove(Object) method. |
void |
createSetArrayMethod(JMethod method)
Creates implementation of array set method |
void |
createSetByIndexMethod(JMethod method)
Creates implementation of set method. |
void |
createSetCollectionMethod(JMethod method)
Creates implementation of collection set method. |
void |
createSetCollectionReferenceMethod(JMethod method)
Creates implementation of collection reference set method. |
void |
generateInitializerCode(JSourceCode jsc)
Creates code for initialization of this Member |
| Methods inherited from class org.exolab.castor.builder.CollectionInfo |
|---|
createBoundPropertyCode, createGetCountMethod, extraMethods, getContent, getContentName, getContentType, getElementName, getReadMethod, getReadMethodName, getWriteMethodName, getXSList, isMultivalued |
| Methods inherited from class org.exolab.castor.builder.FieldInfo |
|---|
createGetterComment, createJavaField, createSetterComment, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFixedValue, getHasMethodName, getName, getValidator, getXMLFieldHandler, isBound, isContainer, isTransient, methodSuffix, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFinal, setFixedValue, setStatic, setTransient, setValidator, setXMLFieldHandler |
| Methods inherited from class org.exolab.castor.builder.XMLInfo |
|---|
getNamespacePrefix, getNamespaceURI, getNodeName, getNodeType, getNodeTypeName, getSchemaType, isRequired, setMultivalued, setNamespacePrefix, setNamespaceURI, setNodeName, setNodeType, setRequired, setSchemaType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CollectionInfoJ2(XSType contentType,
java.lang.String name,
java.lang.String elementName)
name - the name of the CollectionelementName - the element name for each element in collection| Method Detail |
public void generateInitializerCode(JSourceCode jsc)
generateInitializerCode in class CollectionInfojsc - the JSourceCode in which to add the source topublic void createAccessMethods(JClass jClass)
createAccessMethods in class CollectionInfojClass - the JClass to add the methods to.public void createAddMethod(JMethod method)
createAddMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createAddInsertMethod(JMethod method)
createAddInsertMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createEnumerateMethod(JMethod method)
createEnumerateMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createGetMethod(JMethod method)
createGetMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createGetByIndexMethod(JMethod method)
createGetByIndexMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createGetCollectionReferenceMethod(JMethod method)
createGetCollectionReferenceMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createSetArrayMethod(JMethod method)
createSetArrayMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createSetByIndexMethod(JMethod method)
createSetByIndexMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createSetCollectionMethod(JMethod method)
createSetCollectionMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createSetCollectionReferenceMethod(JMethod method)
createSetCollectionReferenceMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createRemoveMethod(JMethod method)
method - the JMethod in which to create the source
code.public void createRemoveByObjectMethod(JMethod method)
createRemoveByObjectMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createRemoveByIndexMethod(JMethod method)
createRemoveByIndexMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createRemoveAllMethod(JMethod method)
createRemoveAllMethod in class CollectionInfomethod - the JMethod in which to create the source
code.public void createClearMethod(JMethod method)
method - the JMethod in which to create the source
code.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||