1 package org.testng.internal; 2 3 4 /** 5 * Describes a property 6 * 7 * @author Cedric Beust, May 2, 2004 8 * 9 */ 10 public class TestNGProperty { 11 private String m_commandLineName = null; 12 private String m_name = null; 13 private String m_documentation = null; 14 private String m_default = null; 15 16 public TestNGProperty(String clName, String name, String doc, String def) { 17 init(clName, name, doc, def); 18 } 19 20 public TestNGProperty(String name, String doc, String def) { 21 init(name, name, doc, def); 22 } 23 24 private void init(String clName, String name, String doc, String def) { 25 m_commandLineName = clName; 26 m_name = name; 27 m_documentation = doc; 28 m_default = def; 29 } 30 31 /** 32 * @return Returns the default. 33 */ 34 public String getDefault() { 35 return m_default; 36 } 37 /** 38 * @return Returns the documentation. 39 */ 40 public String getDocumentation() { 41 return m_documentation; 42 } 43 /** 44 * @return Returns the name. 45 */ 46 public String getName() { 47 return m_name; 48 } 49 50 public String getCommandLineName() { 51 return m_commandLineName; 52 } 53 } 54