public static final class PrimitiveSerializerOptions.Builder extends Object
Modifier and Type | Method and Description |
---|---|
PrimitiveSerializerOptions |
build()
Builds the OData serializer options.
|
PrimitiveSerializerOptions.Builder |
contextURL(ContextURL contextURL)
Sets the
ContextURL . |
PrimitiveSerializerOptions.Builder |
facetsFrom(EdmProperty property)
Sets all facets from an EDM property.
|
PrimitiveSerializerOptions.Builder |
maxLength(Integer maxLength)
Sets the maxLength facet.
|
PrimitiveSerializerOptions.Builder |
nullable(Boolean isNullable)
Sets the nullable facet.
|
PrimitiveSerializerOptions.Builder |
precision(Integer precision)
Sets the precision facet.
|
PrimitiveSerializerOptions.Builder |
scale(Integer scale)
Sets the scale facet.
|
PrimitiveSerializerOptions.Builder |
unicode(Boolean isUnicode)
Sets the unicode facet.
|
PrimitiveSerializerOptions.Builder |
xml10InvalidCharReplacement(String replacement)
set the replacement string for xml 1.0 unicode controlled characters that are not allowed
|
public PrimitiveSerializerOptions.Builder contextURL(ContextURL contextURL)
ContextURL
.public PrimitiveSerializerOptions.Builder nullable(Boolean isNullable)
public PrimitiveSerializerOptions.Builder maxLength(Integer maxLength)
public PrimitiveSerializerOptions.Builder precision(Integer precision)
public PrimitiveSerializerOptions.Builder scale(Integer scale)
public PrimitiveSerializerOptions.Builder unicode(Boolean isUnicode)
public PrimitiveSerializerOptions.Builder facetsFrom(EdmProperty property)
public PrimitiveSerializerOptions.Builder xml10InvalidCharReplacement(String replacement)
public PrimitiveSerializerOptions build()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.