Package org.geotools.xsd.impl
Class ElementEncoder
- Object
- 
- ElementEncoder
 
- 
 public class ElementEncoder extends Object 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 SummaryConstructors Constructor Description ElementEncoder(BindingWalker bindingWalker, MutablePicoContainer context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Attrencode(Object value, XSDAttributeDeclaration attribute, Document document, XSDTypeDefinition container)Elementencode(Object value, XSDElementDeclaration element, Document document)Elementencode(Object value, XSDElementDeclaration element, Document document, XSDTypeDefinition container)Encodes a value corresponding to an element in a schema.voidsetContext(MutablePicoContainer context)voidsetLogger(Logger logger)Sets the logger for the encoder to use.
 
- 
- 
- 
Constructor Detail- 
ElementEncoderpublic ElementEncoder(BindingWalker bindingWalker, MutablePicoContainer context) 
 
- 
 - 
Method Detail- 
setLoggerpublic void setLogger(Logger logger) Sets the logger for the encoder to use.
 - 
encodepublic 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.
 
 - 
encodepublic Attr encode(Object value, XSDAttributeDeclaration attribute, Document document, XSDTypeDefinition container) 
 - 
setContextpublic void setContext(MutablePicoContainer context) 
 
- 
 
-