1 // SECTION-START[License Header] 2 // <editor-fold defaultstate="collapsed" desc=" Generated License "> 3 /* 4 * Java Object Management and Configuration 5 * Copyright (C) Christian Schulte, 2005-206 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 12 * o Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 15 * o Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in 17 * the documentation and/or other materials provided with the 18 * distribution. 19 * 20 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 21 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 22 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $JOMC: OverrideTestImplementation.java 4459 2012-03-27 23:55:31Z schulte2005 $ 32 * 33 */ 34 // </editor-fold> 35 // SECTION-END 36 package org.jomc.ri.test.support; 37 38 import java.util.Locale; 39 40 // SECTION-START[Documentation] 41 // <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> 42 /** 43 * Override Test Implementation. 44 * 45 * <dl> 46 * <dt><b>Identifier:</b></dt><dd>JOMC :: RI :: Tests :: Override Test Implementation</dd> 47 * <dt><b>Name:</b></dt><dd>JOMC :: RI :: Tests :: Override Test Implementation</dd> 48 * <dt><b>Specifications:</b></dt> 49 * <dd>JOMC :: RI :: Tests :: Override Test Specification @ 1.2.2</dd> 50 * <dt><b>Abstract:</b></dt><dd>No</dd> 51 * <dt><b>Final:</b></dt><dd>No</dd> 52 * <dt><b>Stateless:</b></dt><dd>No</dd> 53 * </dl> 54 * 55 * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0 56 * @version 1.2.2 57 */ 58 // </editor-fold> 59 // SECTION-END 60 // SECTION-START[Annotations] 61 // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> 62 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 63 // </editor-fold> 64 // SECTION-END 65 public class OverrideTestImplementation 66 implements 67 org.jomc.ri.test.support.OverrideTestSpecification 68 { 69 // SECTION-START[OverrideTestSpecification] 70 71 public String getProperty() 72 { 73 return this.getPropertyImpl(); 74 } 75 76 public String getMessage() 77 { 78 return this.getMessageImpl( Locale.ENGLISH ); 79 } 80 81 public OverrideTestSpecification getDependency() 82 { 83 return this.getDependencyImpl(); 84 } 85 86 // SECTION-END 87 // SECTION-START[OverrideTestImplementation] 88 // SECTION-END 89 // SECTION-START[Constructors] 90 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> 91 /** Creates a new {@code OverrideTestImplementation} instance. */ 92 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 93 public OverrideTestImplementation() 94 { 95 // SECTION-START[Default Constructor] 96 super(); 97 // SECTION-END 98 } 99 // </editor-fold> 100 // SECTION-END 101 // SECTION-START[Dependencies] 102 // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies "> 103 /** 104 * Gets the {@code <dependencyImpl>} dependency. 105 * <p> 106 * This method returns the {@code <JOMC :: RI :: Tests :: Override Test Implementation>} object of the {@code <JOMC :: RI :: Tests :: Override Test Specification>} specification at any specification level. 107 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 108 * </p> 109 * <dl> 110 * <dt><b>Final:</b></dt><dd>No</dd> 111 * </dl> 112 * @return The {@code <dependencyImpl>} dependency. 113 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 114 */ 115 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 116 private org.jomc.ri.test.support.OverrideTestSpecification getDependencyImpl() 117 { 118 final org.jomc.ri.test.support.OverrideTestSpecification _d = (org.jomc.ri.test.support.OverrideTestSpecification) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "dependencyImpl" ); 119 assert _d != null : "'dependencyImpl' dependency not found."; 120 return _d; 121 } 122 // </editor-fold> 123 // SECTION-END 124 // SECTION-START[Properties] 125 // <editor-fold defaultstate="collapsed" desc=" Generated Properties "> 126 /** 127 * Gets the value of the {@code <propertyImpl>} property. 128 * <p><dl> 129 * <dt><b>Final:</b></dt><dd>No</dd> 130 * </dl></p> 131 * @return The value of the {@code <propertyImpl>} property. 132 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 133 */ 134 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 135 private java.lang.String getPropertyImpl() 136 { 137 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "propertyImpl" ); 138 assert _p != null : "'propertyImpl' property not found."; 139 return _p; 140 } 141 // </editor-fold> 142 // SECTION-END 143 // SECTION-START[Messages] 144 // <editor-fold defaultstate="collapsed" desc=" Generated Messages "> 145 /** 146 * Gets the text of the {@code <messageImpl>} message. 147 * <p><dl> 148 * <dt><b>Languages:</b></dt> 149 * <dd>English (default)</dd> 150 * <dt><b>Final:</b></dt><dd>No</dd> 151 * </dl></p> 152 * @param locale The locale of the message to return. 153 * @return The text of the {@code <messageImpl>} message for {@code locale}. 154 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 155 */ 156 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 157 private String getMessageImpl( final java.util.Locale locale ) 158 { 159 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "messageImpl", locale ); 160 assert _m != null : "'messageImpl' message not found."; 161 return _m; 162 } 163 // </editor-fold> 164 // SECTION-END 165 }