|
From: <tri...@us...> - 2008-01-28 15:16:22
|
Revision: 276
http://equanda.svn.sourceforge.net/equanda/?rev=276&view=rev
Author: triathlon98
Date: 2008-01-28 07:16:20 -0800 (Mon, 28 Jan 2008)
Log Message:
-----------
EQ-123 fix code style and assure project header is there
Modified Paths:
--------------
trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBinding.java
trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBindingFactory.java
Modified: trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBinding.java
===================================================================
--- trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBinding.java 2008-01-28 15:11:13 UTC (rev 275)
+++ trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBinding.java 2008-01-28 15:16:20 UTC (rev 276)
@@ -1,3 +1,27 @@
+/**
+ * This file is part of the equanda project.
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
+ * ANY KIND, either express or implied. See the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ */
+
package org.equanda.t5gui.bindings;
import org.apache.tapestry.ComponentResources;
@@ -7,10 +31,11 @@
/**
* Equanda Message Binding
- *
+ *
* @author <a href="mailto:vla...@gm...">Vladimir Tkachenko</a>
*/
-public class EquandaMessageBinding extends AbstractBinding
+public class EquandaMessageBinding
+ extends AbstractBinding
{
private String expression;
private ComponentResources componentResources;
@@ -18,18 +43,14 @@
/**
* Creates Equanda Message Binding
- *
- * @param componentResources
- * component resources
- * @param expression
- * message expression
- * @param location
- * location
- * @param messagesSource
- * equanda message source
+ *
+ * @param componentResources component resources
+ * @param expression message expression
+ * @param location location
+ * @param messagesSource equanda message source
*/
- public EquandaMessageBinding ( ComponentResources componentResources, String expression, Location location,
- EquandaMessagesSource messagesSource )
+ public EquandaMessageBinding( ComponentResources componentResources, String expression, Location location,
+ EquandaMessagesSource messagesSource )
{
super( location );
this.componentResources = componentResources;
@@ -43,8 +64,7 @@
public Object get()
{
String key = expression != null ? expression.trim() : expression;
- String value = messagesSource.getMessages( componentResources ).get( key );
- return value;
+ return messagesSource.getMessages( componentResources ).get( key );
}
@Override
Modified: trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBindingFactory.java
===================================================================
--- trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBindingFactory.java 2008-01-28 15:11:13 UTC (rev 275)
+++ trunk/equanda-t5gui/src/main/java/org/equanda/t5gui/bindings/EquandaMessageBindingFactory.java 2008-01-28 15:16:20 UTC (rev 276)
@@ -1,3 +1,27 @@
+/**
+ * This file is part of the equanda project.
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
+ * ANY KIND, either express or implied. See the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ */
+
package org.equanda.t5gui.bindings;
import org.apache.tapestry.Binding;
@@ -8,43 +32,37 @@
/**
* Factory for Equanda Message Binding
- *
+ *
* @author <a href="mailto:vla...@gm...">Vladimir Tkachenko</a>
*/
-public class EquandaMessageBindingFactory implements BindingFactory
+public class EquandaMessageBindingFactory
+ implements BindingFactory
{
private EquandaMessagesSource messagesSource;
/**
* Creates Equanda Message Binding Factory
- *
- * @param messagesSource
- * equanda message source
+ *
+ * @param messagesSource equanda message source
*/
- public EquandaMessageBindingFactory ( EquandaMessagesSource messagesSource )
+ public EquandaMessageBindingFactory( EquandaMessagesSource messagesSource )
{
this.messagesSource = messagesSource;
}
/**
* Creates new Equanda Message Binding
- *
- * @param description
- * of the binding
- * @param container
- * the component, as represented by its resources, for which a
- * binding is to be created.
- * @param component
- * the component whose parameter is to be bound by the resulting
- * binding (rarely used)
+ *
+ * @param description of the binding
+ * @param container the component, as represented by its resources, for which a binding is to be created.
+ * @param componentResources the component whose parameter is to be bound by the resulting binding (rarely used)
* @param expression
- * @param location
- * from which the binding was generate, or null if not known
+ * @param location from which the binding was generate, or null if not known
* @return the new equanda message binding instance
*/
public Binding newBinding( String description, ComponentResources container, ComponentResources componentResources,
- String expression, Location location )
+ String expression, Location location )
{
return new EquandaMessageBinding( componentResources, expression, location, messagesSource );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|