001// SECTION-START[License Header] 002// <editor-fold defaultstate="collapsed" desc=" Generated License "> 003/* 004 * Java Object Management and Configuration 005 * Copyright (C) Christian Schulte, 2005-206 006 * All rights reserved. 007 * 008 * Redistribution and use in source and binary forms, with or without 009 * modification, are permitted provided that the following conditions 010 * are met: 011 * 012 * o Redistributions of source code must retain the above copyright 013 * notice, this list of conditions and the following disclaimer. 014 * 015 * o Redistributions in binary form must reproduce the above copyright 016 * notice, this list of conditions and the following disclaimer in 017 * the documentation and/or other materials provided with the 018 * distribution. 019 * 020 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 021 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 022 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 023 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, 024 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 025 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 026 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 027 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 028 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 029 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 030 * 031 * $JOMC: OverrideTestImplementation.java 4588 2012-06-03 06:01:30Z schulte2005 $ 032 * 033 */ 034// </editor-fold> 035// SECTION-END 036package org.jomc.ri.test.support; 037 038import java.util.Locale; 039 040// SECTION-START[Documentation] 041// <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> 042/** 043 * Override Test Implementation. 044 * 045 * <dl> 046 * <dt><b>Identifier:</b></dt><dd>JOMC :: RI :: Tests :: Override Test Implementation</dd> 047 * <dt><b>Name:</b></dt><dd>JOMC :: RI :: Tests :: Override Test Implementation</dd> 048 * <dt><b>Specifications:</b></dt> 049 * <dd>JOMC :: RI :: Tests :: Override Test Specification @ 1.3</dd> 050 * <dt><b>Abstract:</b></dt><dd>No</dd> 051 * <dt><b>Final:</b></dt><dd>No</dd> 052 * <dt><b>Stateless:</b></dt><dd>No</dd> 053 * </dl> 054 * 055 * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0 056 * @version 1.3 057 */ 058// </editor-fold> 059// SECTION-END 060// SECTION-START[Annotations] 061// <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> 062@javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 063// </editor-fold> 064// SECTION-END 065public class OverrideTestImplementation 066 implements 067 org.jomc.ri.test.support.OverrideTestSpecification 068{ 069 // SECTION-START[OverrideTestSpecification] 070 071 public String getProperty() 072 { 073 return this.getPropertyImpl(); 074 } 075 076 public String getMessage() 077 { 078 return this.getMessageImpl( Locale.ENGLISH ); 079 } 080 081 public OverrideTestSpecification getDependency() 082 { 083 return this.getDependencyImpl(); 084 } 085 086 // SECTION-END 087 // SECTION-START[OverrideTestImplementation] 088 // SECTION-END 089 // SECTION-START[Constructors] 090 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> 091 /** Creates a new {@code OverrideTestImplementation} instance. */ 092 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 093 public OverrideTestImplementation() 094 { 095 // SECTION-START[Default Constructor] 096 super(); 097 // SECTION-END 098 } 099 // </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 @SuppressWarnings("unused") 116 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 117 private org.jomc.ri.test.support.OverrideTestSpecification getDependencyImpl() 118 { 119 final org.jomc.ri.test.support.OverrideTestSpecification _d = (org.jomc.ri.test.support.OverrideTestSpecification) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "dependencyImpl" ); 120 assert _d != null : "'dependencyImpl' dependency not found."; 121 return _d; 122 } 123 // </editor-fold> 124 // SECTION-END 125 // SECTION-START[Properties] 126 // <editor-fold defaultstate="collapsed" desc=" Generated Properties "> 127 /** 128 * Gets the value of the {@code <propertyImpl>} property. 129 * <p><dl> 130 * <dt><b>Final:</b></dt><dd>No</dd> 131 * </dl></p> 132 * @return The value of the {@code <propertyImpl>} property. 133 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 134 */ 135 @SuppressWarnings("unused") 136 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 137 private java.lang.String getPropertyImpl() 138 { 139 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "propertyImpl" ); 140 assert _p != null : "'propertyImpl' property not found."; 141 return _p; 142 } 143 // </editor-fold> 144 // SECTION-END 145 // SECTION-START[Messages] 146 // <editor-fold defaultstate="collapsed" desc=" Generated Messages "> 147 /** 148 * Gets the text of the {@code <messageImpl>} message. 149 * <p><dl> 150 * <dt><b>Languages:</b></dt> 151 * <dd>English (default)</dd> 152 * <dt><b>Final:</b></dt><dd>No</dd> 153 * </dl></p> 154 * @param locale The locale of the message to return. 155 * @return The text of the {@code <messageImpl>} message for {@code locale}. 156 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 157 */ 158 @SuppressWarnings("unused") 159 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 160 private String getMessageImpl( final java.util.Locale locale ) 161 { 162 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "messageImpl", locale ); 163 assert _m != null : "'messageImpl' message not found."; 164 return _m; 165 } 166 // </editor-fold> 167 // SECTION-END 168}