|
||||||||||
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 |
DEFAULT_REFERENCE_SUFFIX, REFERENCE_SUFFIX_PROPERTY |
Fields inherited from class org.exolab.castor.builder.FieldInfo |
READ_METHOD, READ_WRITE_METHODS, WRITE_METHOD |
Fields inherited from class org.exolab.castor.builder.XMLInfo |
ATTRIBUTE_TYPE, ELEMENT_TYPE, TEXT_TYPE |
Constructor Summary | |
CollectionInfoJ2(org.exolab.castor.builder.types.XSType contentType,
java.lang.String name,
java.lang.String elementName)
|
Method Summary | |
void |
createAccessMethods(org.exolab.javasource.JClass jClass)
Creates the Access methods for the collection described by this CollectionInfo |
void |
createAddInsertMethod(org.exolab.javasource.JMethod method)
Creates implementation of add method with index. |
void |
createAddMethod(org.exolab.javasource.JMethod method)
Creates implementation of add method. |
void |
createClearMethod(org.exolab.javasource.JMethod method)
Creates implementation of clear() method. |
void |
createEnumerateMethod(org.exolab.javasource.JMethod method)
Creates implementation of Enumerate method. |
void |
createGetByIndexMethod(org.exolab.javasource.JMethod method)
Creates implementation of the get(index) method. |
void |
createGetCollectionReferenceMethod(org.exolab.javasource.JMethod method)
Creates implementation of collection reference get method. |
void |
createGetMethod(org.exolab.javasource.JMethod method)
Creates implementation of object[] get() method. |
void |
createRemoveAllMethod(org.exolab.javasource.JMethod method)
Creates implementation of removeAll() method. |
void |
createRemoveByIndexMethod(org.exolab.javasource.JMethod method)
Creates implementation of remove(int i) method. |
void |
createRemoveByObjectMethod(org.exolab.javasource.JMethod method)
Creates implementation of remove(Object) method. |
void |
createRemoveMethod(org.exolab.javasource.JMethod method)
Creates implementation of remove(Object) method. |
void |
createSetArrayMethod(org.exolab.javasource.JMethod method)
Creates implementation of array set method |
void |
createSetByIndexMethod(org.exolab.javasource.JMethod method)
Creates implementation of set method. |
void |
createSetCollectionMethod(org.exolab.javasource.JMethod method)
Creates implementation of collection set method. |
void |
createSetCollectionReferenceMethod(org.exolab.javasource.JMethod method)
Creates implementation of collection reference set method. |
void |
generateInitializerCode(org.exolab.javasource.JSourceCode jsc)
Creates code for initialization of this Member |
Methods inherited from class org.exolab.castor.builder.CollectionInfo |
createGetCountMethod, getContent, getContentName, getContentType, getElementName, getReadMethod, getReadMethodName, getWriteMethodName, getXSList, isMultivalued, setCreateExtraMethods, setReferenceMethodSuffix |
Methods inherited from class org.exolab.castor.builder.FieldInfo |
createGetterComment, createGetterMethod, createHasAndDeleteMethods, createJavaField, createSetterComment, createSetterMethod, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFixedValue, getHasMethodName, getMethods, getName, getValidator, getXMLFieldHandler, isBound, isContainer, isHasAndDeleteMethods, isNillable, isTransient, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFinal, setFixedValue, setMethods, setNillable, setReference, 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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionInfoJ2(org.exolab.castor.builder.types.XSType contentType, java.lang.String name, java.lang.String elementName)
contentType
- the content type of the collection, ie. the type
of objects that the collection will containname
- the name of the CollectionelementName
- the element name for each element in collectionMethod Detail |
public void generateInitializerCode(org.exolab.javasource.JSourceCode jsc)
generateInitializerCode
in class CollectionInfo
jsc
- the JSourceCode in which to add the source topublic void createAccessMethods(org.exolab.javasource.JClass jClass)
createAccessMethods
in class CollectionInfo
jClass
- the JClass to add the methods to.public void createAddMethod(org.exolab.javasource.JMethod method)
createAddMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createAddInsertMethod(org.exolab.javasource.JMethod method)
createAddInsertMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createEnumerateMethod(org.exolab.javasource.JMethod method)
createEnumerateMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createGetMethod(org.exolab.javasource.JMethod method)
createGetMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createGetByIndexMethod(org.exolab.javasource.JMethod method)
createGetByIndexMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createGetCollectionReferenceMethod(org.exolab.javasource.JMethod method)
createGetCollectionReferenceMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createSetArrayMethod(org.exolab.javasource.JMethod method)
createSetArrayMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createSetByIndexMethod(org.exolab.javasource.JMethod method)
createSetByIndexMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createSetCollectionMethod(org.exolab.javasource.JMethod method)
createSetCollectionMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createSetCollectionReferenceMethod(org.exolab.javasource.JMethod method)
createSetCollectionReferenceMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createRemoveMethod(org.exolab.javasource.JMethod method)
method
- the JMethod in which to create the source
code.public void createRemoveByObjectMethod(org.exolab.javasource.JMethod method)
createRemoveByObjectMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createRemoveByIndexMethod(org.exolab.javasource.JMethod method)
createRemoveByIndexMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createRemoveAllMethod(org.exolab.javasource.JMethod method)
createRemoveAllMethod
in class CollectionInfo
method
- the JMethod in which to create the source
code.public void createClearMethod(org.exolab.javasource.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 |