1 23 24 29 30 package com.sun.enterprise.deployment.node; 31 32 import org.xml.sax.Attributes ; 33 import org.w3c.dom.Node ; 34 35 import com.sun.enterprise.deployment.Descriptor; 36 import com.sun.enterprise.deployment.util.DOLUtils; 37 import com.sun.enterprise.deployment.xml.TagNames; 38 39 44 public class LocalizedInfoNode extends LocalizedNode { 45 46 49 public Object getDescriptor() { 50 return null; 51 } 52 53 56 public void postParsing() { 57 Object o = getParentNode().getDescriptor(); 58 if (o instanceof Descriptor) { 59 Descriptor descriptor = (Descriptor) o; 60 if (getXMLRootTag().getQName().equals(TagNames.DESCRIPTION)) { 61 descriptor.setLocalizedDescription(lang, localizedValue); 62 } else 63 if (getXMLRootTag().getQName().equals(TagNames.NAME)) { 64 descriptor.setLocalizedDisplayName(lang, localizedValue); 65 } 66 } 67 } 68 } 69 | Popular Tags |