createAccessMethods
public void createAccessMethods(JClass jClass)
Creates the Access methods for the collection described
by this CollectionInfo
- createAccessMethods in interface FieldInfo
jClass
- the JClass to add the methods to.
createAddInsertMethod
public void createAddInsertMethod(JMethod method)
Creates implementation of add method with an index.
method
- the JMethod in which to create the source
code.
createAddMethod
public void createAddMethod(JMethod method)
Creates implementation of add method.
method
- the JMethod in which to create the source
code.
createBoundPropertyCode
protected void createBoundPropertyCode(JSourceCode jsc)
Creates the necessary source code for notifying
PropertyChangeListeners when the collection has
been updated.
jsc
- the JSourceCode to add the new source code to.
createEnumerateMethod
public void createEnumerateMethod(JMethod method)
Creates implementation of Enumerate method.
method
- the JMethod in which to create the source
code.
createGetByIndexMethod
public void createGetByIndexMethod(JMethod method)
Creates implementation of the get(index) method.
createGetCollectionReferenceMethod
public void 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.
createGetCountMethod
public void createGetCountMethod(JMethod method)
Creates implementation of getCount method.
method
- the JMethod in which to create the source
code.
createGetMethod
public void createGetMethod(JMethod method)
Creates implementation of object[] get() method.
method
- the JMethod in which to create the source
code.
createRemoveAllMethod
public void createRemoveAllMethod(JMethod method)
Creates implementation of removeAll() method.
method
- the JMethod in which to create the source
code.
createRemoveByIndexMethod
public void createRemoveByIndexMethod(JMethod method)
Creates implementation of remove(int i) method.
method
- the JMethod in which to create the source
code.
createRemoveByObjectMethod
public void createRemoveByObjectMethod(JMethod method)
Creates implementation of remove(Object) method.
method
- the JMethod in which to create the source
code.
createSetArrayMethod
public void createSetArrayMethod(JMethod method)
Creates implementation of array set method
method
- the JMethod in which to create the source
code.
createSetByIndexMethod
public void createSetByIndexMethod(JMethod method)
Creates implementation of set method.
method
- the JMethod in which to create the source
code.
createSetCollectionMethod
public void 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.
createSetCollectionReferenceMethod
public void 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.
extraMethods
protected final boolean extraMethods()
Returns true if extra collection methods should be generated
- true if extra collection methods should be generated
generateInitializerCode
public void generateInitializerCode(JSourceCode jsc)
Creates code for initialization of this Member
- generateInitializerCode in interface FieldInfo
jsc
- the JSourceCode in which to add the source to
getContentName
public String getContentName()
getContentType
public XSType getContentType()
getElementName
public String getElementName()
getReadMethod
public JMethod getReadMethod()
Returns the main read method for this member
- the main read method for this member
getReadMethodName
public String getReadMethodName()
Returns the name of the read method for this FieldInfo
- getReadMethodName in interface FieldInfo
- the name of the read method for this FieldInfo
getWriteMethodName
public String getWriteMethodName()
Returns the name of the write method for this FieldInfo
- getWriteMethodName in interface FieldInfo
- the name of the write method for this FieldInfo
getXSList
public XSList getXSList()
isMultivalued
public boolean isMultivalued()
Return whether or not this member is a multivalued member or not
- isMultivalued in interface XMLInfo
- true if this member can appear more than once