Class XmlObject
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component
-
- software.amazon.smithy.openapi.model.XmlObject
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<XmlObject>
public final class XmlObject extends Component implements ToSmithyBuilder<XmlObject>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlObject.Builder
builder()
protected ObjectNode.Builder
createNodeBuilder()
java.util.Optional<java.lang.String>
getName()
java.util.Optional<java.lang.String>
getNamespace()
java.util.Optional<java.lang.String>
getPrefix()
boolean
isAttribute()
boolean
isWrapped()
XmlObject.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.openapi.model.Component
equals, getExtension, getExtensions, hashCode, toNode
-
-
-
-
Method Detail
-
builder
public static XmlObject.Builder builder()
-
getName
public java.util.Optional<java.lang.String> getName()
-
getNamespace
public java.util.Optional<java.lang.String> getNamespace()
-
getPrefix
public java.util.Optional<java.lang.String> getPrefix()
-
isAttribute
public boolean isAttribute()
-
isWrapped
public boolean isWrapped()
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilder
in classComponent
-
toBuilder
public XmlObject.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<XmlObject>
- Returns:
- a builder for type T
-
-