01: // LanguageAttributeModifier.java
02: // $Id: LanguageAttributeModifier.java,v 1.2 2000/08/16 21:37:27 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1998.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigadm.editors;
07:
08: /**
09: * @version $Revision: 1.2 $
10: * @author Benoît Mahé (bmahe@w3.org)
11: */
12: public class LanguageAttributeModifier implements EditorModifier {
13:
14: /**
15: * Modify the selected item, returns the 2 first characters
16: * @return The modifier item
17: */
18:
19: public String modify(String item) {
20: return item.substring(0, 2);
21: }
22:
23: /**
24: * Create a new LanguageAttributeModifier
25: */
26: public LanguageAttributeModifier() {
27:
28: }
29: }
|