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 classXmlObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlObject.Builderbuilder()protected ObjectNode.BuildercreateNodeBuilder()java.util.Optional<java.lang.String>getName()java.util.Optional<java.lang.String>getNamespace()java.util.Optional<java.lang.String>getPrefix()booleanisAttribute()booleanisWrapped()XmlObject.BuildertoBuilder()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:
createNodeBuilderin classComponent
-
toBuilder
public XmlObject.Builder toBuilder()
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<XmlObject>- Returns:
- a builder for type T
-
-