public class ElementEncoder extends Object
| Constructor and Description |
|---|
ElementEncoder(BindingWalker bindingWalker,
MutablePicoContainer context) |
| Modifier and Type | Method and Description |
|---|---|
Attr |
encode(Object value,
XSDAttributeDeclaration attribute,
Document document,
XSDTypeDefinition container) |
Element |
encode(Object value,
XSDElementDeclaration element,
Document document) |
Element |
encode(Object value,
XSDElementDeclaration element,
Document document,
XSDTypeDefinition container)
Encodes a value corresponding to an element in a schema.
|
void |
setContext(MutablePicoContainer context) |
void |
setLogger(Logger logger)
Sets the logger for the encoder to use.
|
public ElementEncoder(BindingWalker bindingWalker, MutablePicoContainer context)
public void setLogger(Logger logger)
logger - public Element encode(Object value, XSDElementDeclaration element, Document document, XSDTypeDefinition container)
value - The value to encode.element - The declaration of the element corresponding to the value.document - The document used to create the encoded element.public Attr encode(Object value, XSDAttributeDeclaration attribute, Document document, XSDTypeDefinition container)
public void setContext(MutablePicoContainer context)
Copyright © 1996–2019 Geotools. All rights reserved.