Package org.geotools.xsd.impl
Class ElementEncoder
Object
ElementEncoder
Utility class to be used by bindings to encode an element or an attribute.
- Author:
- Justin Deoliveira, The Open Planning Project TODO: rename this class, it is not just for element.s
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode
(Object value, XSDAttributeDeclaration attribute, Document document, XSDTypeDefinition container) Encodes a value corresponding to an element in a schema.void
setContext
(MutablePicoContainer context) void
Sets the logger for the encoder to use.
-
Constructor Details
-
ElementEncoder
-
-
Method Details
-
setLogger
Sets the logger for the encoder to use. -
encode
-
encode
public Element encode(Object value, XSDElementDeclaration element, Document document, XSDTypeDefinition container) Encodes a value corresponding to an element in a schema.- Parameters:
value
- The value to encode.element
- The declaration of the element corresponding to the value.document
- The document used to create the encoded element.- Returns:
- The encoded value as an element.
-
encode
-
setContext
public void setContext(MutablePicoContainer context)
-