jford 2004/02/26 11:13:11 Modified: components/registry/src/java/org/apache/jetspeed/om/common/impl LocalizedFieldImpl.java Log: Added name field Revision Changes Path 1.2 +23 -1 jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/common/impl/LocalizedFieldImpl.java Index: LocalizedFieldImpl.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/common/impl/LocalizedFieldImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LocalizedFieldImpl.java 24 Feb 2004 00:40:19 -0000 1.1 +++ LocalizedFieldImpl.java 26 Feb 2004 19:13:11 -0000 1.2 @@ -31,6 +31,7 @@ public class LocalizedFieldImpl implements LocalizedField { protected String value; + protected String name; protected Locale locale; protected long parentId; @@ -94,5 +95,26 @@ public void setId(String oid) { id = JetspeedObjectID.createFromString(oid).intValue(); + } + + public void setLanguage(String lang) + { + this.locale = new Locale(lang); + } + + /* (non-Javadoc) + * @see org.apache.jetspeed.om.common.LocalizedField#getName() + */ + public String getName() + { + return name; + } + + /* (non-Javadoc) + * @see org.apache.jetspeed.om.common.LocalizedField#setName(java.lang.String) + */ + public void setName(String name) + { + this.name = name; } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]