Title: Message
I have a schema which defines and element of type Date as a child of another type which can occur an unlimited number of times:
 
 <xsd:complexType name="accessType">
  <xsd:sequence>
   <xsd:element name="userName" type="xsd:string" minOccurs="0"/>
   <xsd:element name="pass" type="xsd:string" minOccurs="0"/>
   <xsd:element name="accessExpiration" type="xsd:date" minOccurs="0"/>
    <xsd:element name="loginDate" type="xsd:date" minOccurs="0" maxOccurs="unbounded"/>
   
  </xsd:sequence>
  <xsd:attribute name="accessBlocked" type="xsd:boolean"/>
 </xsd:complexType>
 
 
When the source is generated, the accessor instantiates the return array without package qualifiers:
 

/****/

public org.exolab.castor.types.Date[] getLoginDate(){

int size = _loginDateList.size();

org.exolab.castor.types.Date[] mArray = new Date[size];

                                             ^^^^^^^

for (int index = 0; index < size; index++) {

mArray[index] = (org.exolab.castor.types.Date) _loginDateList.elementAt(index);

}

return mArray;

} //-- org.exolab.castor.types.Date[] getLoginDate()

 

The package org.exolab.castor.types.*; is not imported either.


Chris Longfield

[EMAIL PROTECTED]

Reply via email to