Coverage Report - com.lexicalscope.jewel.cli.validation.ArgumentImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ArgumentImpl
83%
5/6
N/A
1
 
 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  162
     {
 18  162
         m_optionName = optionName;
 19  162
         m_values = values;
 20  162
     }
 21  
 
 22  
     /**
 23  
      * {@inheritDoc}
 24  
      */
 25  
     public ParsedOptionSpecification getOptionName()
 26  
     {
 27  0
         return m_optionName;
 28  
     }
 29  
 
 30  
     /**
 31  
      * {@inheritDoc}
 32  
      */
 33  
     public List<String> getValues()
 34  
     {
 35  162
         return m_values;
 36  
     }
 37  
 }