org.ow2.jonas.deployment.common.xml
Class AbsElement
java.lang.Object
org.ow2.jonas.deployment.common.xml.AbsElement
- All Implemented Interfaces:
- 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, Discovery, 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, JonasServlet, JonasWebserviceDescription, JonasWebservices, License, Location, Messageadapter, MessageDestination, MessageDestinationRef, MessageDrivenDestination, Messagelistener, Method, MethodParams, MethodPermission, Module, OutboundResourceadapter, PackageMapping, PersistenceUnitRef, 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 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 String |
indent(int indent)
Return indent spaces. |
String |
toString()
Return the representation of this element. |
String |
toXML()
Represents this element by it's XML description. |
abstract String |
toXML(int indent)
Represents this element by it's XML description. |
protected String |
xmlAttribute(String value,
String xmlTag)
Return the xml representation of the specified attribute value |
protected String |
xmlElement(String value,
String xmlTag,
int indent)
Return the xml representation of the specified value with the root-element xmlTag |
AbsElement
public AbsElement()
toXML
public abstract 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 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 String toString()
- Return the representation of this element.
Use the XML representation of the object for the toString() method.
- Overrides:
toString
in class Object
- Returns:
- the XML description of this object.
indent
protected String indent(int indent)
- Return indent spaces.
- Parameters:
indent
- number of indentation.
- Returns:
- the indent space string.
xmlElement
protected String xmlElement(String value,
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 String xmlAttribute(String value,
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
Copyright © 2010 OW2 Consortium. All Rights Reserved.