1 7 8 package org.jdesktop.jdnc.markup.attr; 9 10 import net.openmarkup.ApplierException; 11 import net.openmarkup.AttributeApplier; 12 import net.openmarkup.AttributeHandler; 13 import net.openmarkup.Realizable; 14 15 import org.jdesktop.jdnc.markup.Attributes; 16 import org.jdesktop.jdnc.markup.Namespace; 17 18 21 public class NullAttribute { 22 23 29 public static final AttributeApplier nullApplier = new AttributeApplier() { 30 public void apply(Realizable target, String namespaceURI, 31 String attributeName, String attributeValue) throws 32 ApplierException { 33 } 35 }; 36 37 40 public static final AttributeHandler idHandler = 41 new AttributeHandler(Namespace.JDNC, Attributes.ID, 42 NullAttribute.nullApplier); 43 44 47 public static final AttributeHandler valueHandler = 48 new AttributeHandler(Namespace.JDNC, Attributes.VALUE, 49 NullAttribute.nullApplier); 50 51 } 52 | Popular Tags |