View Javadoc

1   //
2   //Author       : t.wood
3   //Copyright    : (c) Teamphone.com Ltd. 2008 - All Rights Reserved
4   //
5   package com.lexicalscope.jewel.cli.validation;
6   
7   import java.util.List;
8   
9   import com.lexicalscope.jewel.cli.specification.ParsedOptionSpecification;
10  
11  class ArgumentImpl implements Argument
12  {
13      private final ParsedOptionSpecification m_optionName;
14      private final List<String> m_values;
15  
16      ArgumentImpl(final ParsedOptionSpecification optionName, final List<String> values)
17      {
18          m_optionName = optionName;
19          m_values = values;
20      }
21  
22      /**
23       * {@inheritDoc}
24       */
25      public ParsedOptionSpecification getOptionName()
26      {
27          return m_optionName;
28      }
29  
30      /**
31       * {@inheritDoc}
32       */
33      public List<String> getValues()
34      {
35          return m_values;
36      }
37  }