Hey,

I am developing an Android application with TripIt integration but I
don't know how to make a java class of this:

 <xs:simpleType name="AirportCode">
   <xs:restriction base="xs:string">
     <xs:pattern value="[A-Z][A-Z][A-Z]"/>
   </xs:restriction>
 </xs:simpleType>


And AirportCode is a type that is used in AirObject (for example)

 <xs:complexType name="AirSegment">
   <xs:all>
     <xs:element maxOccurs="1" minOccurs="0" name="Status"
type="FlightStatus"/>
     <xs:element maxOccurs="1" minOccurs="0" name="StartDateTime"
type="DateTime"/>
     <xs:element maxOccurs="1" minOccurs="0" name="EndDateTime"
type="DateTime"/>
     <xs:element maxOccurs="1" minOccurs="0"
name="start_airport_code" type="AirportCode"/>

so it has to be private AirportCode start_airport_code.. But what do I
have to write in the AirportCode.java file?

Thank you for your help!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to