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 4459 2012-03-27 23:55:31Z schulte2005 $
032     *
033     */
034    // </editor-fold>
035    // SECTION-END
036    package org.jomc.ri.test.support;
037    
038    import 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.2.2</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.2.2
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.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
063    // </editor-fold>
064    // SECTION-END
065    public 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.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
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        @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    }