com.sun.enterprise.deployment.node
Class LocalizedNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode
      extended by com.sun.enterprise.deployment.node.LocalizedNode
All Implemented Interfaces:
XMLNode
Direct Known Subclasses:
IconNode, LocalizedInfoNode

public class LocalizedNode
extends DeploymentDescriptorNode

This class is responsible for handling the xml lang attribute of an xml element

Author:
Jerome Dochez

Field Summary
protected  java.lang.String lang
           
protected  java.lang.String localizedValue
           
 
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode
 
Constructor Summary
LocalizedNode()
           
 
Method Summary
 java.lang.Object getDescriptor()
           
 void setElementValue(XMLElement element, java.lang.String value)
          receives notification of the value for a particular tag
 void startElement(XMLElement element, org.xml.sax.Attributes attributes)
          notification of element start with attributes.
 void writeLocalizedMap(org.w3c.dom.Node parentNode, java.lang.String tagName, java.util.Map localizedMap)
          writes all the localized map element usign the tagname with the lang attribute to a DOM node
 
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addDescriptor, addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, endElement, forceAppendTextChild, getDispatchTable, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, writeAroundInvokeDescriptors, writeAroundTimeoutDescriptors, writeDataSourceDefinitionDescriptors, writeDescriptor, writeDescriptor, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writePostActivateDescriptors, writePostConstructDescriptors, writePreDestroyDescriptors, writePrePassivateDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lang

protected java.lang.String lang

localizedValue

protected java.lang.String localizedValue
Constructor Detail

LocalizedNode

public LocalizedNode()
Method Detail

getDescriptor

public java.lang.Object getDescriptor()
Specified by:
getDescriptor in interface XMLNode
Overrides:
getDescriptor in class DeploymentDescriptorNode
Returns:
the descriptor for this node

startElement

public void startElement(XMLElement element,
                         org.xml.sax.Attributes attributes)
notification of element start with attributes.

Specified by:
startElement in interface XMLNode
Overrides:
startElement in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
attributes - the specified or defaultted attritutes

setElementValue

public void setElementValue(XMLElement element,
                            java.lang.String value)
receives notification of the value for a particular tag

Specified by:
setElementValue in interface XMLNode
Overrides:
setElementValue in class DeploymentDescriptorNode
Parameters:
element - the xml element
value - it's associated value

writeLocalizedMap

public void writeLocalizedMap(org.w3c.dom.Node parentNode,
                              java.lang.String tagName,
                              java.util.Map localizedMap)
writes all the localized map element usign the tagname with the lang attribute to a DOM node



Copyright © 2012 GlassFish Community. All Rights Reserved.