public class EmptyDocument extends AbstractDocument
Modifier and Type | Field and Description |
---|---|
static EmptyDocument |
INSTANCE
An instance of the Empty Document.
|
static int |
SIZE
The bytes to encode an empty document.
|
ELEMENT_TYPE, EMPTY_ELEMENTS
Constructor and Description |
---|
EmptyDocument()
Constructs a new
EmptyDocument . |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Element> |
getElementMap()
Returns the mapping from the names of elements to the element.
|
List<Element> |
getElements()
Returns the array of elements that create this document.
|
long |
size()
Returns the size of the empty document when encoded as bytes.
|
public static final EmptyDocument INSTANCE
public static final int SIZE
public EmptyDocument()
EmptyDocument
.public List<Element> getElements()
Overridden to return an empty list of elements.
getElements
in interface Document
getElements
in class AbstractDocument
public long size()
protected Map<String,Element> getElementMap()
Overridden to return an empty map as this document is always empty.
getElementMap
in class AbstractDocument
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.