You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/09/14 01:10:56 UTC
svn commit: r695059 [4/4] - in /myfaces/core/branches/2_0_0: ./ api/
api/src/main/java/javax/faces/component/
api/src/main/java/javax/faces/convert/
api/src/main/java/javax/faces/validator/
api/src/main/java/javax/faces/webapp/ impl/ impl/src/main/conf...
Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/AbstractAttributeMap.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/AbstractAttributeMap.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/AbstractAttributeMap.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/AbstractAttributeMap.java Sat Sep 13 16:10:53 2008
@@ -43,33 +43,32 @@
public void clear()
{
- List<String> names = new ArrayList<String>();
- for (Enumeration<String> e = getAttributeNames(); e.hasMoreElements();)
+ final List<String> names = new ArrayList<String>();
+ for (final Enumeration<String> e = getAttributeNames(); e.hasMoreElements();)
{
names.add(e.nextElement());
}
- for (Iterator it = names.iterator(); it.hasNext();)
- {
- removeAttribute((String) it.next());
+ for (String name : names) {
+ removeAttribute(name);
}
}
- public boolean containsKey(Object key)
+ public final boolean containsKey(final Object key)
{
return getAttribute(key.toString()) != null;
}
- public boolean containsValue(Object findValue)
+ public boolean containsValue(final Object findValue)
{
if (findValue == null)
{
return false;
}
- for (Enumeration<String> e = getAttributeNames(); e.hasMoreElements();)
+ for (final Enumeration<String> e = getAttributeNames(); e.hasMoreElements();)
{
- Object value = getAttribute(e.nextElement());
+ final Object value = getAttribute(e.nextElement());
if (findValue.equals(value))
{
return true;
@@ -85,7 +84,7 @@
return (_entrySet != null) ? _entrySet : (_entrySet = new EntrySet());
}
- public V get(Object key)
+ public V get(final Object key)
{
return getAttribute(key.toString());
}
@@ -100,27 +99,25 @@
return (_keySet != null) ? _keySet : (_keySet = new KeySet());
}
- public V put(String key, V value)
+ public final V put(final String key, final V value)
{
- V retval = getAttribute(key);
+ final V retval = getAttribute(key);
setAttribute(key, value);
return retval;
}
- public void putAll(Map<? extends String, ? extends V> t)
+ public void putAll(final Map<? extends String, ? extends V> t)
{
- for (Iterator<? extends Entry<? extends String, ? extends V>> it = t.entrySet().iterator(); it.hasNext();)
- {
- Entry<? extends String, ? extends V> entry = it.next();
- setAttribute(entry.getKey(), entry.getValue());
- }
+ for (final Entry<? extends String, ? extends V> entry : t.entrySet()) {
+ setAttribute(entry.getKey(), entry.getValue());
+ }
}
@Override
- public V remove(Object key)
+ public final V remove(final Object key)
{
- String key_ = key.toString();
- V retval = getAttribute(key_);
+ final String key_ = key.toString();
+ final V retval = getAttribute(key_);
removeAttribute(key_);
return retval;
}
@@ -129,7 +126,7 @@
public int size()
{
int size = 0;
- for (Enumeration e = getAttributeNames(); e.hasMoreElements();)
+ for (final Enumeration e = getAttributeNames(); e.hasMoreElements();)
{
size++;
e.nextElement();
@@ -172,7 +169,7 @@
}
}
- private class KeySet extends AbstractAttributeSet<String>
+ private final class KeySet extends AbstractAttributeSet<String>
{
@Override
public Iterator<String> iterator()
@@ -181,13 +178,13 @@
}
@Override
- public boolean contains(Object o)
+ public boolean contains(final Object o)
{
return AbstractAttributeMap.this.containsKey(o);
}
@Override
- public boolean remove(Object o)
+ public boolean remove(final Object o)
{
return AbstractAttributeMap.this.remove(o) != null;
}
@@ -224,10 +221,10 @@
protected abstract E getValue(String attributeName);
}
- private class KeyIterator extends AbstractAttributeIterator<String>
+ private final class KeyIterator extends AbstractAttributeIterator<String>
{
@Override
- protected String getValue(String attributeName)
+ protected String getValue(final String attributeName)
{
return attributeName;
}
@@ -242,14 +239,14 @@
}
@Override
- public boolean contains(Object o)
+ public boolean contains(final Object o)
{
if (o == null)
{
return false;
}
- for (Iterator it = iterator(); it.hasNext();)
+ for (final Iterator it = iterator(); it.hasNext();)
{
if (o.equals(it.next()))
{
@@ -261,14 +258,14 @@
}
@Override
- public boolean remove(Object o)
+ public boolean remove(final Object o)
{
if (o == null)
{
return false;
}
- for (Iterator it = iterator(); it.hasNext();)
+ for (final Iterator it = iterator(); it.hasNext();)
{
if (o.equals(it.next()))
{
@@ -284,13 +281,13 @@
private class ValuesIterator extends AbstractAttributeIterator<V>
{
@Override
- protected V getValue(String attributeName)
+ protected V getValue(final String attributeName)
{
return AbstractAttributeMap.this.get(attributeName);
}
}
- private class EntrySet extends AbstractAttributeSet<Entry<String, V>>
+ private final class EntrySet extends AbstractAttributeSet<Entry<String, V>>
{
@Override
public Iterator<Entry<String, V>> iterator()
@@ -299,16 +296,16 @@
}
@Override
- public boolean contains(Object o)
+ public boolean contains(final Object o)
{
if (!(o instanceof Entry))
{
return false;
}
- Entry entry = (Entry) o;
- Object key = entry.getKey();
- Object value = entry.getValue();
+ final Entry entry = (Entry) o;
+ final Object key = entry.getKey();
+ final Object value = entry.getValue();
if (key == null || value == null)
{
return false;
@@ -318,16 +315,16 @@
}
@Override
- public boolean remove(Object o)
+ public boolean remove(final Object o)
{
if (!(o instanceof Entry))
{
return false;
}
- Entry entry = (Entry) o;
- Object key = entry.getKey();
- Object value = entry.getValue();
+ final Entry entry = (Entry) o;
+ final Object key = entry.getKey();
+ final Object value = entry.getValue();
if (key == null || value == null || !value.equals(AbstractAttributeMap.this.get(key)))
{
return false;
@@ -341,10 +338,10 @@
* Not very efficient since it generates a new instance of <code>Entry</code> for each element and still internaly
* uses the <code>KeyIterator</code>. It is more efficient to use the <code>KeyIterator</code> directly.
*/
- private class EntryIterator extends AbstractAttributeIterator<Entry<String, V>>
+ private final class EntryIterator extends AbstractAttributeIterator<Entry<String, V>>
{
@Override
- protected Entry<String, V> getValue(String attributeName)
+ protected Entry<String, V> getValue(final String attributeName)
{
// Must create new Entry every time--value of the entry must stay
// linked to the same attribute name
@@ -352,11 +349,11 @@
}
}
- private class EntrySetEntry implements Entry<String, V>
+ private final class EntrySetEntry implements Entry<String, V>
{
private final String _currentKey;
- public EntrySetEntry(String currentKey)
+ public EntrySetEntry(final String currentKey)
{
_currentKey = currentKey;
}
@@ -371,7 +368,7 @@
return AbstractAttributeMap.this.get(_currentKey);
}
- public V setValue(V value)
+ public V setValue(final V value)
{
return AbstractAttributeMap.this.put(_currentKey, value);
}
@@ -379,14 +376,13 @@
@Override
public int hashCode()
{
- final int PRIME = 31;
int result = 1;
- result = PRIME * result + ((_currentKey == null) ? 0 : _currentKey.hashCode());
+ result = 31 * result + ((_currentKey == null) ? 0 : _currentKey.hashCode());
return result;
}
@Override
- public boolean equals(Object obj)
+ public boolean equals(final Object obj)
{
if (this == obj)
return true;
Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/EnumerationIterator.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/EnumerationIterator.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/EnumerationIterator.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/util/EnumerationIterator.java Sat Sep 13 16:10:53 2008
@@ -25,14 +25,14 @@
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
-public class EnumerationIterator
+public final class EnumerationIterator
implements Iterator
{
//private static final Log log = LogFactory.getLog(EnumerationIterator.class);
- private Enumeration _enumeration;
+ private final Enumeration _enumeration;
- public EnumerationIterator(Enumeration enumeration)
+ public EnumerationIterator(final Enumeration enumeration)
{
_enumeration = enumeration;
}
Modified: myfaces/core/branches/2_0_0/impl/src/main/resources/javax/faces/Messages_fr.properties
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/resources/javax/faces/Messages_fr.properties?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/resources/javax/faces/Messages_fr.properties (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/resources/javax/faces/Messages_fr.properties Sat Sep 13 16:10:53 2008
@@ -15,113 +15,113 @@
# standard messages (Spec. 2.5.2.4)
javax.faces.component.UIInput.CONVERSION = Erreur de conversion
-javax.faces.component.UIInput.CONVERSION_detail = "{0}": Erreur durant la mise à jour des données.
+javax.faces.component.UIInput.CONVERSION_detail = "{0}": Erreur durant la mise \u00e0 jour des donn\u00e9es.
javax.faces.component.UIInput.REQUIRED = Erreur de validation
-javax.faces.component.UIInput.REQUIRED_detail = "{0}": Une donnée est requise.
+javax.faces.component.UIInput.REQUIRED_detail = "{0}": Une donn\u00e9e est requise.
javax.faces.component.UISelectOne.INVALID = Erreur de Validation
-javax.faces.component.UISelectOne.INVALID_detail = "{0}": La donnée n''est pas une option valide.
+javax.faces.component.UISelectOne.INVALID_detail = "{0}": La donn\u00e9e n''est pas une option valide.
javax.faces.component.UISelectMany.INVALID = Erreur de Validation
-javax.faces.component.UISelectMany.INVALID_detail = "{0}": La donnée n''est pas une option valide.
+javax.faces.component.UISelectMany.INVALID_detail = "{0}": La donn\u00e9e n''est pas une option valide.
javax.faces.validator.NOT_IN_RANGE = Erreur de Validation
-javax.faces.validator.NOT_IN_RANGE_detail = "{2}": La donnée n''est pas comprise entre {0} et {1}.
+javax.faces.validator.NOT_IN_RANGE_detail = "{2}": La donn\u00e9e n''est pas comprise entre {0} et {1}.
javax.faces.validator.DoubleRangeValidator.LIMIT = Erreur de Validation
-javax.faces.validator.DoubleRangeValidator.LIMIT_detail = La donnée ne peut étre convertie dans le bon type.
+javax.faces.validator.DoubleRangeValidator.LIMIT_detail = La donn\u00e9e ne peut \u00e9tre convertie dans le bon type.
javax.faces.validator.DoubleRangeValidator.MAXIMUM = Erreur de Validation
-javax.faces.validator.DoubleRangeValidator.MAXIMUM_detail = "{1}": La donnée est supérieur au maximum authorisé de ''{0}''.
+javax.faces.validator.DoubleRangeValidator.MAXIMUM_detail = "{1}": La donn\u00e9e est sup\u00e9rieur au maximum authoris\u00e9 de ''{0}''.
javax.faces.validator.DoubleRangeValidator.MINIMUM = Erreur de Validation
-javax.faces.validator.DoubleRangeValidator.MINIMUM_detail = "{1}": La donnée est inférieur au maximum authorisé de ''{0}''.
+javax.faces.validator.DoubleRangeValidator.MINIMUM_detail = "{1}": La donn\u00e9e est inf\u00e9rieur au maximum authoris\u00e9 de ''{0}''.
javax.faces.validator.DoubleRangeValidator.TYPE = Erreur de Validation
-javax.faces.validator.DoubleRangeValidator.TYPE_detail = "{0}": La donnée n''est pas du bon type.
+javax.faces.validator.DoubleRangeValidator.TYPE_detail = "{0}": La donn\u00e9e n''est pas du bon type.
javax.faces.validator.LengthValidator.LIMIT = Erreur de Validation
-javax.faces.validator.LengthValidator.LIMIT_detail = La donnée ne peut étre convertie dans le bon type.
+javax.faces.validator.LengthValidator.LIMIT_detail = La donn\u00e9e ne peut \u00e9tre convertie dans le bon type.
javax.faces.validator.LengthValidator.MAXIMUM = Erreur de Validation
-javax.faces.validator.LengthValidator.MAXIMUM_detail = "{1}": La donnée a plus que les {0} caractéres maximum authorisés.
+javax.faces.validator.LengthValidator.MAXIMUM_detail = "{1}": La donn\u00e9e a plus que les {0} caract\u00e9res maximum authoris\u00e9s.
javax.faces.validator.LengthValidator.MINIMUM = Erreur de Validation
-javax.faces.validator.LengthValidator.MINIMUM_detail = "{1}": La donnée a moins que les {0} caractéres maximum requis.
+javax.faces.validator.LengthValidator.MINIMUM_detail = "{1}": La donn\u00e9e a moins que les {0} caract\u00e9res maximum requis.
javax.faces.validator.LongRangeValidator.LIMIT = Erreur de Validation
-javax.faces.validator.LongRangeValidator.LIMIT_detail = La donnée ne peut étre convertie dans le bon type.
+javax.faces.validator.LongRangeValidator.LIMIT_detail = La donn\u00e9e ne peut \u00e9tre convertie dans le bon type.
javax.faces.validator.LongRangeValidator.MAXIMUM = Erreur de Validation
-javax.faces.validator.LongRangeValidator.MAXIMUM_detail = "{1}": La donnée est supérieur au maximum authorisé de ''{0}''.
+javax.faces.validator.LongRangeValidator.MAXIMUM_detail = "{1}": La donn\u00e9e est sup\u00e9rieur au maximum authoris\u00e9 de ''{0}''.
javax.faces.validator.LongRangeValidator.MINIMUM = Erreur de Validation
-javax.faces.validator.LongRangeValidator.MINIMUM_detail = "{1}": La donnée est inférieur au maximum authorisé de ''{0}''.
+javax.faces.validator.LongRangeValidator.MINIMUM_detail = "{1}": La donn\u00e9e est inf\u00e9rieur au maximum authoris\u00e9 de ''{0}''.
javax.faces.validator.LongRangeValidator.TYPE = Erreur de Validation
-javax.faces.validator.LongRangeValidator.TYPE_detail = "{0}": La donnée n''est pas du bon type.
+javax.faces.validator.LongRangeValidator.TYPE_detail = "{0}": La donn\u00e9e n''est pas du bon type.
# additional messages (not specified, but supported by myfaces API converters)
javax.faces.convert.BigDecimalConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.BigDecimalConverter.CONVERSION_detail = La donnée n''est pas un nombre valide.
+javax.faces.convert.BigDecimalConverter.CONVERSION_detail = La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.BigIntegerConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.BigIntegerConverter.CONVERSION_detail = La donnée n''est pas un nombre valide.
+javax.faces.convert.BigIntegerConverter.CONVERSION_detail = La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.BooleanConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.BooleanConverter.CONVERSION_detail = Conversion de '{0}' en Boolean impossible.
+javax.faces.convert.BooleanConverter.CONVERSION_detail = Conversion de "{0}" en Boolean impossible.
javax.faces.convert.ByteConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.ByteConverter.CONVERSION_detail = Conversion de '{0}' en Octet impossible.
+javax.faces.convert.ByteConverter.CONVERSION_detail = Conversion de "{0}" en Octet impossible.
javax.faces.convert.CharacterConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.CharacterConverter.CONVERSION_detail = Conversion de '{0}' en Caractère impossible.
+javax.faces.convert.CharacterConverter.CONVERSION_detail = Conversion de "{0}" en Caract\u00e8re impossible.
javax.faces.convert.DateTimeConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.DateTimeConverter.CONVERSION_detail = "{1}": Conversion de '{0}' en Date/Heure impossible.
+javax.faces.convert.DateTimeConverter.CONVERSION_detail = "{1}": Conversion de "{0}" en Date/Heure impossible.
javax.faces.convert.DoubleConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.DoubleConverter.CONVERSION_detail = "{0}": La donnée n''est pas un nombre valide.
+javax.faces.convert.DoubleConverter.CONVERSION_detail = "{0}": La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.FloatConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.FloatConverter.CONVERSION_detail = "{0}": La donnée n''est pas un nombre valide.
+javax.faces.convert.FloatConverter.CONVERSION_detail = "{0}": La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.IntegerConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.IntegerConverter.CONVERSION_detail = "{0}": La donnée n''est pas un nombre valide.
+javax.faces.convert.IntegerConverter.CONVERSION_detail = "{0}": La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.LongConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.LongConverter.CONVERSION_detail = "{0}": La donnée n''est pas un nombre valide.
+javax.faces.convert.LongConverter.CONVERSION_detail = "{0}": La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.NumberConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.NumberConverter.CONVERSION_detail = "{0}": La donnée n''est pas un nombre valide.
+javax.faces.convert.NumberConverter.CONVERSION_detail = "{0}": La donn\u00e9e n''est pas un nombre valide.
javax.faces.convert.ShortConverter.CONVERSION = Erreur de conversion
-javax.faces.convert.ShortConverter.CONVERSION_detail = "{0}": La donnée n''est pas un nombre valide.
+javax.faces.convert.ShortConverter.CONVERSION_detail = "{0}": La donn\u00e9e n''est pas un nombre valide.
# myfaces specific messages
-org.apache.myfaces.renderkit.html.HtmlMessagesRenderer.IN_FIELD = \u0020in {0}
+org.apache.myfaces.renderkit.html.HtmlMessagesRenderer.IN_FIELD = dans {0}
org.apache.myfaces.Email.INVALID = Erreur de Validation
-org.apache.myfaces.Email.INVALID_detail =TRANSLATE__The given value ({0}) is not a correct email-address.
+org.apache.myfaces.Email.INVALID_detail = La valeur saisie ({0}) n''est pas une adresse de couriel correcte.
org.apache.myfaces.Equal.INVALID = Erreur de Validation
-org.apache.myfaces.Equal.INVALID_detail =TRANSLATE__The given value ({0}) is not equal with value of "{1}".
+org.apache.myfaces.Equal.INVALID_detail = La valeur saisie ({0}) n''est pas \u00e9gale \u00e0 celle de "{1}".
org.apache.myfaces.Creditcard.INVALID = Erreur de Validation
-org.apache.myfaces.Creditcard.INVALID_detail =TRANSLATE__The given value ({0}) is not a correct creditcard
+org.apache.myfaces.Creditcard.INVALID_detail = La valeur saisie ({0}) n''est pas un num\u00e9ro de carte de cr\u00e9dit correct.
-org.apache.myfaces.Regexpr.INVALID=Erreur de Validation
-org.apache.myfaces.Regexpr.INVALID_detail=TRANSLATE__The given value ({0}) is not valid.
+org.apache.myfaces.Regexpr.INVALID= Erreur de Validation
+org.apache.myfaces.Regexpr.INVALID_detail= La valeur saisie ({0}) n''est pas une expression r\u00e9guli\u00e8re valide.
org.apache.myfaces.Date.INVALID = Erreur de Validation
-org.apache.myfaces.Date.INVALID_detail =TRANSLATE__The given value ({0}) is not a correct date
+org.apache.myfaces.Date.INVALID_detail = La valeur saisie ({0}) n''est pas une date correcte.
org.apache.myfaces.ticker.NOCONNECTION = Pas de connexion :
-org.apache.myfaces.ticker.NOCONNECTION_detail = Peut-être êtes-vous derrière un firewall
+org.apache.myfaces.ticker.NOCONNECTION_detail = Peut-\u00eatre \u00eates-vous derri\u00e8re un firewall
org.apache.myfaces.ISBN.INVALID = Erreur de Validation
-org.apache.myfaces.ISBN.INVALID_detail =TRANSLATE__The given value ({0}) is not a correct isbn code.
\ No newline at end of file
+org.apache.myfaces.ISBN.INVALID_detail = La valeur saisie ({0}) n''est pas une code ISBN correct.
\ No newline at end of file
Modified: myfaces/core/branches/2_0_0/impl/src/test/java/org/apache/myfaces/test/ImplClassElementTestCase.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/test/java/org/apache/myfaces/test/ImplClassElementTestCase.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/test/java/org/apache/myfaces/test/ImplClassElementTestCase.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/test/java/org/apache/myfaces/test/ImplClassElementTestCase.java Sat Sep 13 16:10:53 2008
@@ -26,7 +26,8 @@
public ImplClassElementTestCase(){
//resource.add("META-INF/f.tld");
- resource.add("META-INF/myfaces-html.tld");
+ resource.add("META-INF/myfaces_core.tld");
+ resource.add("META-INF/myfaces_html.tld");
resource.add("META-INF/standard-faces-config.xml");
}
Modified: myfaces/core/branches/2_0_0/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/pom.xml?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/pom.xml (original)
+++ myfaces/core/branches/2_0_0/pom.xml Sat Sep 13 16:10:53 2008
@@ -32,7 +32,7 @@
<url>http://svn.apache.org/repos/asf/myfaces/branches/2_0__x</url>
</scm>
<modules>
- <module>build</module>
+ <!-- module>build</module -->
<module>api</module>
<module>impl</module>
</modules>