private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, AttributeDefinition attribute) throws XMLStreamException { attribute.getAttributeMarshaller().marshallAsAttribute(attribute, model, true, writer); } }
private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException { attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer); }
private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException { attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer); }
private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException { attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer); }
private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException { attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, false, writer); }
IdentityResourceDefinition.OUTFLOW_SECURITY_DOMAINS.getAttributeMarshaller().marshallAsAttribute(IdentityResourceDefinition.OUTFLOW_SECURITY_DOMAINS, model.get(SERVICE, IDENTITY), false, writer); writer.writeEndElement();
/** * Marshalls the value from the given {@code resourceModel} as an xml attribute, if it * {@link #isMarshallable(org.jboss.dmr.ModelNode, boolean) is marshallable}. * @param resourceModel the model, a non-null node of {@link org.jboss.dmr.ModelType#OBJECT}. * @param marshallDefault {@code true} if the value should be marshalled even if it matches the default value * @param writer stream writer to use for writing the attribute * @throws javax.xml.stream.XMLStreamException if {@code writer} throws an exception */ public void marshallAsAttribute(final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { attributeMarshaller.marshallAsAttribute(this,resourceModel,marshallDefault,writer); }
/** * Marshalls the value from the given {@code resourceModel} as an xml attribute, if it * {@link #isMarshallable(org.jboss.dmr.ModelNode, boolean) is marshallable}. * @param resourceModel the model, a non-null node of {@link org.jboss.dmr.ModelType#OBJECT}. * @param marshallDefault {@code true} if the value should be marshalled even if it matches the default value * @param writer stream writer to use for writing the attribute * @throws javax.xml.stream.XMLStreamException if {@code writer} throws an exception */ public void marshallAsAttribute(final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { attributeMarshaller.marshallAsAttribute(this,resourceModel,marshallDefault,writer); }
/** * Marshalls the value from the given {@code resourceModel} as an xml attribute, if it * {@link #isMarshallable(org.jboss.dmr.ModelNode, boolean) is marshallable}. * @param resourceModel the model, a non-null node of {@link org.jboss.dmr.ModelType#OBJECT}. * @param marshallDefault {@code true} if the value should be marshalled even if it matches the default value * @param writer stream writer to use for writing the attribute * @throws javax.xml.stream.XMLStreamException if {@code writer} throws an exception */ public void marshallAsAttribute(final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { getMarshaller().marshallAsAttribute(this, resourceModel, marshallDefault, writer); }
/** * Marshalls the value from the given {@code resourceModel} as an xml attribute, if it * {@link #isMarshallable(org.jboss.dmr.ModelNode, boolean) is marshallable}. * @param resourceModel the model, a non-null node of {@link org.jboss.dmr.ModelType#OBJECT}. * @param marshallDefault {@code true} if the value should be marshalled even if it matches the default value * @param writer stream writer to use for writing the attribute * @throws javax.xml.stream.XMLStreamException if {@code writer} throws an exception */ public void marshallAsAttribute(final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { getMarshaller().marshallAsAttribute(this, resourceModel, marshallDefault, writer); }
public void marshall(final AttributeDefinition attribute,final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { if (isMarshallableAsElement()){ marshallAsElement(attribute,resourceModel, marshallDefault, writer); }else{ marshallAsAttribute(attribute, resourceModel, marshallDefault, writer); } }
public void marshall(final AttributeDefinition attribute,final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { if (isMarshallableAsElement()){ marshallAsElement(attribute,resourceModel, marshallDefault, writer); }else{ marshallAsAttribute(attribute, resourceModel, marshallDefault, writer); } }
void writeCertificate(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException { ModelNode value = model.get(Constants.Model.CERTIFICATE_ALIAS); if (!value.isDefined()) { return; } writer.writeStartElement(Constants.XML.CERTIFICATE); SimpleAttributeDefinition attr = KeyStoreCertificateDefinition.CERTIFICATE_ALIAS; attr.getAttributeMarshaller().marshallAsAttribute(attr, model, false, writer); writer.writeEndElement(); }
void writeCertificate(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException { ModelNode value = model.get(Constants.Model.CERTIFICATE_ALIAS); if (!value.isDefined()) { return; } writer.writeStartElement(Constants.XML.CERTIFICATE); SimpleAttributeDefinition attr = KeyStoreCertificateDefinition.CERTIFICATE_ALIAS; attr.getAttributeMarshaller().marshallAsAttribute(attr, model, false, writer); writer.writeEndElement(); }
void writeSingleLogout(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException { if (!model.isDefined()) { return; } writer.writeStartElement(Constants.XML.SINGLE_LOGOUT); for (SimpleAttributeDefinition attr : SingleLogoutDefinition.ATTRIBUTES) { attr.getAttributeMarshaller().marshallAsAttribute(attr, model, false, writer); } writer.writeEndElement(); }
void writeSingleLogout(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException { if (!model.isDefined()) { return; } writer.writeStartElement(Constants.XML.SINGLE_LOGOUT); for (SimpleAttributeDefinition attr : SingleLogoutDefinition.ATTRIBUTES) { attr.getAttributeMarshaller().marshallAsAttribute(attr, model, false, writer); } writer.writeEndElement(); }
void writeSingleSignOn(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException { if (!model.isDefined()) { return; } writer.writeStartElement(Constants.XML.SINGLE_SIGN_ON); for (SimpleAttributeDefinition attr : SingleSignOnDefinition.ATTRIBUTES) { attr.getAttributeMarshaller().marshallAsAttribute(attr, model, false, writer); } writer.writeEndElement(); }
void writeKeyStore(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException { if (!model.isDefined()) { return; } writer.writeStartElement(Constants.XML.KEY_STORE); for (SimpleAttributeDefinition attr : KeyStoreDefinition.ATTRIBUTES) { attr.getAttributeMarshaller().marshallAsAttribute(attr, model, false, writer); } writePrivateKey(writer, model); writeCertificate(writer, model); writer.writeEndElement(); }
private void writeProfile(final XMLExtendedStreamWriter writer, final String profileName, final ModelNode profileNode, final ModelMarshallingContext context) throws XMLStreamException { writer.writeStartElement(Element.PROFILE.getLocalName()); writer.writeAttribute(Attribute.NAME.getLocalName(), profileName); ProfileResourceDefinition.INCLUDES.getMarshaller().marshallAsAttribute(ProfileResourceDefinition.INCLUDES, profileNode, false, writer); writeSubsystems(profileNode, writer, context); writer.writeEndElement(); }
private void writeProfile(final XMLExtendedStreamWriter writer, final String profileName, final ModelNode profileNode, final ModelMarshallingContext context) throws XMLStreamException { writer.writeStartElement(Element.PROFILE.getLocalName()); writer.writeAttribute(Attribute.NAME.getLocalName(), profileName); ProfileResourceDefinition.INCLUDES.getMarshaller().marshallAsAttribute(ProfileResourceDefinition.INCLUDES, profileNode, false, writer); writeSubsystems(profileNode, writer, context); writer.writeEndElement(); }