public final class SwaggerXml extends Object
Constructor and Description |
---|
SwaggerXml() |
Modifier and Type | Method and Description |
---|---|
Boolean |
attribute()
Get the attribute property: Indicates whether the property should be an attribute instead of an element.
|
Map<String,Object> |
extensions()
Get the extensions property: The vendor extensions.
|
String |
name()
Get the name property: The xml element or attribute name.
|
String |
namespace()
Get the namespace property: The xml namespace.
|
String |
prefix()
Get the prefix property: The name prefix.
|
void |
validate()
Validates the instance.
|
SwaggerXml |
withAttribute(Boolean attribute)
Set the attribute property: Indicates whether the property should be an attribute instead of an element.
|
SwaggerXml |
withExtensions(Map<String,Object> extensions)
Set the extensions property: The vendor extensions.
|
SwaggerXml |
withName(String name)
Set the name property: The xml element or attribute name.
|
SwaggerXml |
withNamespace(String namespace)
Set the namespace property: The xml namespace.
|
SwaggerXml |
withPrefix(String prefix)
Set the prefix property: The name prefix.
|
SwaggerXml |
withWrapped(Boolean wrapped)
Set the wrapped property: Indicates whether the array elements are wrapped in a container element.
|
Boolean |
wrapped()
Get the wrapped property: Indicates whether the array elements are wrapped in a container element.
|
public String name()
public SwaggerXml withName(String name)
name
- the name value to set.public String namespace()
public SwaggerXml withNamespace(String namespace)
namespace
- the namespace value to set.public String prefix()
public SwaggerXml withPrefix(String prefix)
prefix
- the prefix value to set.public Boolean attribute()
public SwaggerXml withAttribute(Boolean attribute)
attribute
- the attribute value to set.public Boolean wrapped()
public SwaggerXml withWrapped(Boolean wrapped)
wrapped
- the wrapped value to set.public Map<String,Object> extensions()
public SwaggerXml withExtensions(Map<String,Object> extensions)
extensions
- the extensions value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.