Class Send
- java.lang.Object
-
- com.github.rvesse.airline.examples.sendit.Send
-
- All Implemented Interfaces:
ExampleRunnable
@Command(name="send", description="Sends a package") public class Send extends java.lang.Object implements ExampleRunnable
-
-
Field Summary
Fields Modifier and Type Field Description private PostalAddressaddressprivate Packageitemprivate PostalServiceservice
-
Constructor Summary
Constructors Constructor Description Send()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)intrun()Runs the command and returns an exit code that the application should return
-
-
-
Field Detail
-
address
@AirlineModule private PostalAddress address
-
item
@AirlineModule private Package item
-
service
@Option(name={"-s","--service"}, title="Service", description="Specifies the postal service you would like to use") private PostalService service
-
-
Method Detail
-
run
public int run()
Description copied from interface:ExampleRunnableRuns the command and returns an exit code that the application should return- Specified by:
runin interfaceExampleRunnable- Returns:
- Exit code
-
main
public static void main(java.lang.String[] args)
-
-