View Javadoc

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 4588 2012-06-03 06:01:30Z 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.3</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.3
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.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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     @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 }