org.objectweb.jonas_lib.deployment.xml
Class AbsElement
java.lang.Object
org.objectweb.jonas_lib.deployment.xml.AbsElement
- All Implemented Interfaces:
- java.io.Serializable, Element
- Direct Known Subclasses:
- AbsDescriptionElement, AbsJonasEnvironmentElement, AbsJonasParam, ActivationConfig, ActivationConfigProperty, Activationspec, Adminobject, AsContextMapping, AssemblyDescriptor, AuthConstraint, AuthenticationMechanism, Cluster, ClusterDaemon, CmpField, CmpFieldJdbcMapping, CmrField, ConfigProperty, ConnectionDefinition, Connector, ContainerTransaction, EjbLocalRef, EjbRef, EjbRelation, EjbRelationshipRole, EnterpriseBeans, EnvEntry, ExcludeList, FinderMethodJdbcMapping, ForeignKeyJdbcMapping, Handler, Icon, Icon, InboundResourceadapter, InitParam, IorSecurityConfigMapping, JavaWsdlMapping, JavaXmlTypeMapping, JdbcConnParams, JdbcMapping, JonasActivationspec, JonasAdminobject, JonasConfigProperty, JonasConnectionDefinition, JonasConnector, JonasEjbJar, JonasEjbRef, JonasEjbRelation, JonasEjbRelationshipRole, JonasInitParam, JonasMessageDestination, JonasMessageDestinationRef, JonasMessageDrivenDestination, JonasMethod, JonasPortComponent, JonasPortComponentRef, JonasResource, JonasResourceEnv, JonasRunAsMapping, JonasSecurity, JonasSecurity, JonasSecurityMapping, JonasServiceRef, JonasWebserviceDescription, JonasWebservices, License, Location, Messageadapter, MessageDestination, MessageDestinationRef, MessageDrivenDestination, Messagelistener, Method, MethodParams, MethodPermission, Module, OutboundResourceadapter, PackageMapping, PoolParams, PortComponentRef, Qname, Query, QueryMethod, RelationshipRoleSource, Relationships, RequiredConfigProperty, Resourceadapter, ResourceEnvRef, ResourceRef, RunAs, SasContextMapping, SecurityConstraint, SecurityEntry, SecurityIdentity, SecurityPermission, SecurityRole, SecurityRole, SecurityRoleMapping, SecurityRoleRef, Server, Server, ServiceImplBean, ServiceRef, Servlet, ServletMapping, TmConfigProperty, TmParams, TransportConfigMapping, UseCallerIdentity, UserDataConstraint, VariableMapping, Web, WebResourceCollection, WebserviceDescription
public abstract class AbsElement
- extends java.lang.Object
- implements Element
This class defines the implementation of the interface Element.
These elements are used by Digester during the xml parsing.
- Author:
- Florent Benoit
- See Also:
- Serialized Form
Method Summary |
protected java.lang.String |
indent(int indent)
Return indent spaces. |
java.lang.String |
toString()
Return the representation of this element. |
java.lang.String |
toXML()
Represents this element by it's XML description. |
abstract java.lang.String |
toXML(int indent)
Represents this element by it's XML description. |
protected java.lang.String |
xmlAttribute(java.lang.String value,
java.lang.String xmlTag)
Return the xml representation of the specified attribute value |
protected java.lang.String |
xmlElement(java.lang.String value,
java.lang.String xmlTag,
int indent)
Return the xml representation of the specified value with the root-element xmlTag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbsElement
public AbsElement()
toXML
public abstract java.lang.String toXML(int indent)
- Represents this element by it's XML description.
- Specified by:
toXML
in interface Element
- Parameters:
indent
- use this indent for prexifing XML representation.
- Returns:
- the XML description of this object.
toXML
public java.lang.String toXML()
- Represents this element by it's XML description.
Use a default indent set to 0.
- Specified by:
toXML
in interface Element
- Returns:
- the XML description of this object.
toString
public java.lang.String toString()
- Return the representation of this element.
Use the XML representation of the object for the toString() method.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the XML description of this object.
indent
protected java.lang.String indent(int indent)
- Return indent spaces.
- Parameters:
indent
- number of indentation.
- Returns:
- the indent space string.
xmlElement
protected java.lang.String xmlElement(java.lang.String value,
java.lang.String xmlTag,
int indent)
- Return the xml representation of the specified value with the root-element xmlTag
- Parameters:
value
- String value to represent in XMLxmlTag
- tag of the root-elementindent
- indent to use
- Returns:
- xml representation of the specified value
xmlAttribute
protected java.lang.String xmlAttribute(java.lang.String value,
java.lang.String xmlTag)
- Return the xml representation of the specified attribute value
- Parameters:
value
- String value to represent in XMLxmlTag
- tag of the attribute
- Returns:
- xml representation of the specified value