public static class ThriftDocument._Builder extends PMessageBuilder<ThriftDocument>
| Constructor and Description |
|---|
_Builder()
Make a model.ThriftDocument builder.
|
_Builder(ThriftDocument base)
Make a mutating builder off a base model.ThriftDocument.
|
| Modifier and Type | Method and Description |
|---|---|
ThriftDocument._Builder |
addTo(int key,
Object value) |
ThriftDocument._Builder |
addToDecl(Declaration... values)
Adds entries to decl.
|
ThriftDocument._Builder |
addToIncludes(String... values)
Adds entries to includes.
|
ThriftDocument |
build() |
ThriftDocument._Builder |
clear(int key) |
ThriftDocument._Builder |
clearComment()
Clears the comment field.
|
ThriftDocument._Builder |
clearDecl()
Clears the decl field.
|
ThriftDocument._Builder |
clearIncludes()
Clears the includes field.
|
ThriftDocument._Builder |
clearNamespaces()
Clears the namespaces field.
|
ThriftDocument._Builder |
clearPackage()
Clears the package field.
|
boolean |
isSetComment()
Checks for presence of the comment field.
|
boolean |
isSetDecl()
Checks for presence of the decl field.
|
boolean |
isSetIncludes()
Checks for presence of the includes field.
|
boolean |
isSetNamespaces()
Checks for presence of the namespaces field.
|
boolean |
isSetPackage()
Checks for presence of the package field.
|
boolean |
isValid() |
ThriftDocument._Builder |
putInNamespaces(String key,
String value)
Adds a mapping to namespaces.
|
ThriftDocument._Builder |
set(int key,
Object value) |
ThriftDocument._Builder |
setComment(String value)
Sets the value of comment.
|
ThriftDocument._Builder |
setDecl(Collection<Declaration> value)
Sets the value of decl.
|
ThriftDocument._Builder |
setIncludes(Collection<String> value)
Sets the value of includes.
|
ThriftDocument._Builder |
setNamespaces(Map<String,String> value)
Sets the value of namespaces.
|
ThriftDocument._Builder |
setPackage(String value)
Sets the value of package.
|
public _Builder()
public _Builder(ThriftDocument base)
base - The base ThriftDocumentpublic ThriftDocument._Builder setComment(String value)
value - The new valuepublic boolean isSetComment()
public ThriftDocument._Builder clearComment()
public ThriftDocument._Builder setPackage(String value)
value - The new valuepublic boolean isSetPackage()
public ThriftDocument._Builder clearPackage()
public ThriftDocument._Builder setIncludes(Collection<String> value)
value - The new valuepublic ThriftDocument._Builder addToIncludes(String... values)
values - The added valuepublic boolean isSetIncludes()
public ThriftDocument._Builder clearIncludes()
public ThriftDocument._Builder setNamespaces(Map<String,String> value)
value - The new valuepublic ThriftDocument._Builder putInNamespaces(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetNamespaces()
public ThriftDocument._Builder clearNamespaces()
public ThriftDocument._Builder setDecl(Collection<Declaration> value)
value - The new valuepublic ThriftDocument._Builder addToDecl(Declaration... values)
values - The added valuepublic boolean isSetDecl()
public ThriftDocument._Builder clearDecl()
public ThriftDocument._Builder set(int key, Object value)
set in class PMessageBuilder<ThriftDocument>public ThriftDocument._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<ThriftDocument>public ThriftDocument._Builder clear(int key)
clear in class PMessageBuilder<ThriftDocument>public boolean isValid()
isValid in class PMessageBuilder<ThriftDocument>public ThriftDocument build()
Copyright © 2016. All rights reserved.