// Path: src/java/com/idega/documentmanager/component/beans/LocalizedStringBean.java
// public class LocalizedStringBean {
// 	
// 	private Map<Locale, String> strings;
// 	
// 	public LocalizedStringBean() {
// 		strings = new HashMap<Locale, String>();
// 	}
// 	
// 	public LocalizedStringBean(String defaultString) {
// 		strings = new HashMap<Locale, String>();
// 		setString(new Locale("en"), defaultString);
// 	}
// 	
// 	public Set<Locale> getLanguagesKeySet() {
// 		return strings.keySet();
// 	}
// 	
// 	/**
// 	 * if You don't want to change the text, provide text value as null
// 	 * 
// 	 * @param locale
// 	 * @param text
// 	 */
// 	public void setString(Locale locale, String text) {
// 		
// 		if(locale == null)
// 			throw new NullPointerException("Locale is not provided");
// 		
// 		strings.put(locale, text);
// 	}
// 	
// 	public String getString(Locale locale) {
// 		return strings.get(locale);
// 	}
// 	
// 	public void removeString(Locale locale) {
// 		strings.remove(locale);
// 	}
// 	
// 	public void clear() {
// 		strings.clear();
// 	}
// 	public String toString() {
// 		
// 		StringBuffer toString = new StringBuffer("LocalizedStringBean:");
// 		
// 		
// 		for (Iterator<Locale> iter = strings.keySet().iterator(); iter.hasNext();) {
// 			Locale locale = iter.next();
// 			
// 			toString.append("\nlocale: ")
// 			.append(locale.toString())
// 			.append(" value: ")
// 			.append(strings.get(locale));
// 		}
// 		
// 		return toString.toString();
// 	}
// }


import com.idega.block.process.variables.Variable;
import com.idega.chiba.web.xml.xforms.validation.ErrorType;
import com.idega.documentmanager.component.beans.LocalizedStringBean;
package com.idega.documentmanager.business.component.properties;


/**
 * <i><b>Note: </b></i>for changes to take effect, u need to use setter methods for every property change
 * 
 * @author <a href="mailto:civilis@idega.com">Vytautas Čivilis</a>
 * @version $Revision: 1.13 $
 *
 * Last modified: $Date: 2008/10/26 16:47:12 $ by $Author: anton $
 */
public interface PropertiesComponent {
	
	public abstract LocalizedStringBean getErrorMsg(ErrorType errorType);
	
	public abstract LocalizedStringBean getErrorMsg();

	public abstract void setErrorMsg(ErrorType errorType, LocalizedStringBean errorMsg);
	
	public abstract void setErrorMsg(LocalizedStringBean errorMsg);

	public abstract LocalizedStringBean getLabel();

	public abstract void setLabel(LocalizedStringBean label);

	public abstract boolean isRequired();

	public abstract void setRequired(boolean required);
	
	public abstract String getP3ptype();
	
	public abstract void setP3ptype(String p3ptype);
	
	public abstract String getAutofillKey();
		
	public abstract void setAutofillKey(String autofill_key);
	
	public abstract LocalizedStringBean getHelpText();
	
	public abstract void setHelpText(LocalizedStringBean help_text);
		
	public abstract void setValidationText(LocalizedStringBean validation_text);
	
// Path: src/java/com/idega/documentmanager/component/beans/LocalizedStringBean.java
// public class LocalizedStringBean {
// 	
// 	private Map<Locale, String> strings;
// 	
// 	public LocalizedStringBean() {
// 		strings = new HashMap<Locale, String>();
// 	}
// 	
// 	public LocalizedStringBean(String defaultString) {
// 		strings = new HashMap<Locale, String>();
// 		setString(new Locale("en"), defaultString);
// 	}
// 	
// 	public Set<Locale> getLanguagesKeySet() {
// 		return strings.keySet();
// 	}
// 	
// 	/**
// 	 * if You don't want to change the text, provide text value as null
// 	 * 
// 	 * @param locale
// 	 * @param text
// 	 */
// 	public void setString(Locale locale, String text) {
// 		
// 		if(locale == null)
// 			throw new NullPointerException("Locale is not provided");
// 		
// 		strings.put(locale, text);
// 	}
// 	
// 	public String getString(Locale locale) {
// 		return strings.get(locale);
// 	}
// 	
// 	public void removeString(Locale locale) {
// 		strings.remove(locale);
// 	}
// 	
// 	public void clear() {
// 		strings.clear();
// 	}
// 	public String toString() {
// 		
// 		StringBuffer toString = new StringBuffer("LocalizedStringBean:");
// 		
// 		
// 		for (Iterator<Locale> iter = strings.keySet().iterator(); iter.hasNext();) {
// 			Locale locale = iter.next();
// 			
// 			toString.append("\nlocale: ")
// 			.append(locale.toString())
// 			.append(" value: ")
// 			.append(strings.get(locale));
// 		}
// 		
// 		return toString.toString();
// 	}
// }


// Path: src/java/com/idega/documentmanager/business/component/properties/PropertiesComponent.java
import com.idega.block.process.variables.Variable;
import com.idega.chiba.web.xml.xforms.validation.ErrorType;
import com.idega.documentmanager.component.beans.LocalizedStringBean;

package com.idega.documentmanager.business.component.properties;


/**
 * <i><b>Note: </b></i>for changes to take effect, u need to use setter methods for every property change
 * 
 * @author <a href="mailto:civilis@idega.com">Vytautas Čivilis</a>
 * @version $Revision: 1.13 $
 *
 * Last modified: $Date: 2008/10/26 16:47:12 $ by $Author: anton $
 */
public interface PropertiesComponent {
	
	public abstract LocalizedStringBean getErrorMsg(ErrorType errorType);
	
	public abstract LocalizedStringBean getErrorMsg();

	public abstract void setErrorMsg(ErrorType errorType, LocalizedStringBean errorMsg);
	
	public abstract void setErrorMsg(LocalizedStringBean errorMsg);

	public abstract LocalizedStringBean getLabel();

	public abstract void setLabel(LocalizedStringBean label);

	public abstract boolean isRequired();

	public abstract void setRequired(boolean required);
	
	public abstract String getP3ptype();
	
	public abstract void setP3ptype(String p3ptype);
	
	public abstract String getAutofillKey();
		
	public abstract void setAutofillKey(String autofill_key);
	
	public abstract LocalizedStringBean getHelpText();
	
	public abstract void setHelpText(LocalizedStringBean help_text);
		
	public abstract void setValidationText(LocalizedStringBean validation_text);
	
	public abstract LocalizedStringBean getValidationText();