public class NullElement extends AbstractElement
| Modifier and Type | Field and Description |
|---|---|
static ElementType |
TYPE
The BSON type for a binary.
|
ELEMENT_TYPE| Constructor and Description |
|---|
NullElement(String name)
Constructs a new
NullElement. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accepts the visitor and calls the
Visitor.visitNull(java.lang.String) method. |
ElementType |
getType()
Returns the type for the BSON type.
|
NullElement |
withName(String name)
Creates a new element with the same type and value as this element but
with the specified name.
|
public static final ElementType TYPE
public NullElement(String name)
NullElement.name - The name for the BSON null.IllegalArgumentException - If the name is null.public void accept(Visitor visitor)
Visitor.visitNull(java.lang.String) method.visitor - The visitor for the element.Element.accept(Visitor)public ElementType getType()
public NullElement withName(String name)
Returns a new NullElement.
name - The new name for the element.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.