/** * Transform the <code>JMSConnectionFactory</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "jmsconnectionfactory" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "active", new Boolean( this.isActive() ).toString() ); element.setAttribute( "blocker", new Boolean( this.isBlocker() ).toString() ); return element; }
/** * Transform the <code>SharedLibrary</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "sharedlibrary" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "classpath", this.getClasspath() ); element.setAttribute( "active", new Boolean( this.isActive() ).toString() ); element.setAttribute( "blocker", new Boolean( this.isBlocker() ).toString() ); return element; }
/** * Transforms the <code>JDBCDataSource</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "jdbcdatasource" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "pool", this.getPool() ); element.setAttribute( "active", new Boolean( this.isActive() ).toString() ); element.setAttribute( "blocker", new Boolean( this.isBlocker() ).toString() ); return element; }
/** * Transform the <code>Statistics</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "statistics" ); element.setAttribute( "updatecount", new Integer( this.getUpdateCount() ).toString() ); element.setAttribute( "lastupdatedate", this.getLastUpdateDate() ); element.setAttribute( "lastchangedate", this.getLastChangeDate() ); return element; }
/** * Transform a <code>logfile</code> into a DOM element. * * @param document the DOM document. * @return the DOM element. */ public Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "logfile" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "path", this.getPath() ); element.setAttribute( "agent", this.getAgent() ); return element; }
/** * Transform the <code>JNDIBinding</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "jndibinding" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "jndiname", this.getJndiname() ); element.setAttribute( "jndialias", this.getJndialias() ); element.setAttribute( "providerurl", this.getProviderurl() ); element.setAttribute( "active", new Boolean( this.isActive() ).toString() ); element.setAttribute( "blocker", new Boolean( this.isBlocker() ).toString() ); return element; }
/** * Transform a <code>location</code> into a DOM element. * * @param document the DOM document. * @return the DOM element. */ public Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "location" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "active", new Boolean( this.isActive() ).toString() ); element.setAttribute( "blocker", new Boolean( this.isBlocker() ).toString() ); element.setAttribute( "uri", this.getUri() ); element.setAttribute( "path", this.getPath() ); element.setAttribute( "agent", this.getAgent() ); return element; }
/** * Transform the <code>User</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "user" ); element.setAttribute( "id", this.getId() ); element.setAttribute( "name", this.getName() ); element.setAttribute( "email", this.getEmail() ); element.setAttribute( "password", this.getPassword() ); return element; }
/** * Transforms the <code>Agent</code> POJO into a DOM element. * * @param document the DOM core document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "agent" ); element.setAttribute( "id", this.getId() ); element.setAttribute( "hostname", this.getHostname() ); element.setAttribute( "port", new Integer( this.getPort() ).toString() ); element.setAttribute( "cron", this.getCron() ); element.setAttribute( "maxmanagedenvironments", new Integer( this.getMaxmanagedenvironments() ).toString() ); element.setAttribute( "maxjeeapplicationserversstarted", new Integer( this.getMaxjeeapplicationserversstarted() ).toString() ); return element; }
/** * Transform the <code>Mapping</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "mapping" ); element.setAttribute( "key", this.getKey() ); element.setAttribute( "value", this.getValue() ); return element; }
/** * Transform the <code>Property</code> POJO to a DOM Element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "property" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "value", this.getValue() ); return element; }
/** * Transform the <code>Variable</code> POJO to a DOM Element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "variable" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "value", this.getValue() ); return element; }
/** * Transforms the <code>Cache</code> POJO to a DOM element. * * @param document the core XML document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "cache" ); element.setAttribute( "path", this.getPath() ); return element; }
/** * Transform the <code>JMSTopic</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "jmstopic" ); element.setAttribute( "name", this.getName() ); return element; }
/** * Transform the <code>Destination</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "destination" ); element.setAttribute( "address", this.getAddress() ); return element; }
/** * Transform the <code>JMSQueue</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "jmsqueue" ); element.setAttribute( "name", this.getName() ); return element; }
/** * Transforms a <code>command</code> into a XML DOM element. * * @param document the DOM document. * @return the <code>command</code> DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "command" ); element.setAttribute( "name", this.getName() ); element.setAttribute( "active", new Boolean( this.isActive() ).toString() ); element.setAttribute( "blocker", new Boolean( this.isBlocker() ).toString() ); element.setAttribute( "agent", this.getAgent() ); CDATASectionImpl content = new CDATASectionImpl( document, this.getCommand() ); element.appendChild( content ); return element; }
/** * Transforms the <code>Event</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "event" ); element.setAttribute( "date", this.getDate() ); element.setAttribute( "severity", this.getSeverity() ); element.setAttribute( "author", this.getAuthor() ); CDATASectionImpl content = new CDATASectionImpl( document, this.getContent() ); element.appendChild( content ); return element; }
/** * Transforms the <code>UpdateMessage</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "updatemessage" ); element.setAttribute( "priority", this.getPriority() ); CDATASectionImpl message = new CDATASectionImpl( document, this.getMessage() ); element.appendChild( message ); return element; }
/** * Transform the <code>FreeField</code> POJO to a DOM element. * * @param document the DOM document. * @return the DOM element. */ protected Element toDOMElement( CoreDocumentImpl document ) { ElementImpl element = new ElementImpl( document, "freefield" ); element.setAttribute( "name", this.getName() ); CDATASectionImpl content = new CDATASectionImpl( document, this.getContent() ); element.appendChild( content ); return element; }