//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected void writeJobAcquisitionsContent(final org.jboss.staxmapper.XMLExtendedStreamWriter writer, final org.jboss.as.controller.persistence.SubsystemMarshallingContext context, org.jboss.dmr.ModelNode parentNode) throws javax.xml.stream.XMLStreamException //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: protected internal void writeJobAcquisitionsContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context, ModelNode parentNode) { writer.writeStartElement(Element.JOB_AQUISITIONS.LocalName); ModelNode jobAcquisitionConfigurations = parentNode.get(Element.JOB_AQUISITIONS.LocalName); if (jobAcquisitionConfigurations.Defined) { foreach (Property property in jobAcquisitionConfigurations.asPropertyList()) { // write each child element to xml writer.writeStartElement(Element.JOB_AQUISITION.LocalName); foreach (AttributeDefinition jobAcquisitionAttribute in SubsystemAttributeDefinitons.JOB_ACQUISITION_ATTRIBUTES) { if (jobAcquisitionAttribute.Equals(SubsystemAttributeDefinitons.NAME)) { ((SimpleAttributeDefinition)jobAcquisitionAttribute).marshallAsAttribute(property.Value, writer); } else { jobAcquisitionAttribute.marshallAsElement(property.Value, writer); } } writer.writeEndElement(); } } // end job-acquisitions writer.writeEndElement(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected void writeProcessEnginesContent(final org.jboss.staxmapper.XMLExtendedStreamWriter writer, final org.jboss.as.controller.persistence.SubsystemMarshallingContext context) throws javax.xml.stream.XMLStreamException //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: protected internal void writeProcessEnginesContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) { writer.writeStartElement(Element.PROCESS_ENGINES.LocalName); ModelNode node = context.ModelNode; ModelNode processEngineConfigurations = node.get(Element.PROCESS_ENGINES.LocalName); if (processEngineConfigurations.Defined) { foreach (Property property in processEngineConfigurations.asPropertyList()) { // write each child element to xml writer.writeStartElement(Element.PROCESS_ENGINE.LocalName); ModelNode propertyValue = property.Value; foreach (AttributeDefinition processEngineAttribute in SubsystemAttributeDefinitons.PROCESS_ENGINE_ATTRIBUTES) { if (processEngineAttribute.Equals(SubsystemAttributeDefinitons.NAME) || processEngineAttribute.Equals(SubsystemAttributeDefinitons.DEFAULT)) { ((SimpleAttributeDefinition)processEngineAttribute).marshallAsAttribute(propertyValue, writer); } else { processEngineAttribute.marshallAsElement(propertyValue, writer); } } writer.writeEndElement(); } } // end process-engines writer.writeEndElement(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected void writeJobExecutorContent(final org.jboss.staxmapper.XMLExtendedStreamWriter writer, final org.jboss.as.controller.persistence.SubsystemMarshallingContext context) throws javax.xml.stream.XMLStreamException //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: protected internal void writeJobExecutorContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) { ModelNode node = context.ModelNode; ModelNode jobExecutorNode = node.get(Element.JOB_EXECUTOR.LocalName); if (jobExecutorNode.Defined) { writer.writeStartElement(Element.JOB_EXECUTOR.LocalName); foreach (Property property in jobExecutorNode.asPropertyList()) { ModelNode propertyValue = property.Value; foreach (AttributeDefinition jobExecutorAttribute in SubsystemAttributeDefinitons.JOB_EXECUTOR_ATTRIBUTES) { if (jobExecutorAttribute.Equals(SubsystemAttributeDefinitons.NAME)) { ((SimpleAttributeDefinition)jobExecutorAttribute).marshallAsAttribute(propertyValue, writer); } else { jobExecutorAttribute.marshallAsElement(propertyValue, writer); } } writeJobAcquisitionsContent(writer, context, propertyValue); } // end job-executor writer.writeEndElement(); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override public void writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.as.controller.persistence.SubsystemMarshallingContext context) throws javax.xml.stream.XMLStreamException public override void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) { context.startSubsystemElement(Namespace.CURRENT.UriString, false); writeProcessEnginesContent(writer, context); writeJobExecutorContent(writer, context); // end subsystem writer.writeEndElement(); }