org.geotools.xml.impl
Class ElementEncoder
java.lang.Object
org.geotools.xml.impl.ElementEncoder
public class ElementEncoder
- extends java.lang.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
Method Summary |
org.w3c.dom.Attr |
encode(java.lang.Object value,
org.eclipse.xsd.XSDAttributeDeclaration attribute,
org.w3c.dom.Document document,
org.eclipse.xsd.XSDTypeDefinition container)
|
org.w3c.dom.Element |
encode(java.lang.Object value,
org.eclipse.xsd.XSDElementDeclaration element,
org.w3c.dom.Document document)
|
org.w3c.dom.Element |
encode(java.lang.Object value,
org.eclipse.xsd.XSDElementDeclaration element,
org.w3c.dom.Document document,
org.eclipse.xsd.XSDTypeDefinition container)
Encodes a value corresponding to an element in a schema. |
void |
setContext(org.picocontainer.MutablePicoContainer context)
|
void |
setLogger(java.util.logging.Logger logger)
Sets the logger for the encoder to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementEncoder
public ElementEncoder(BindingWalker bindingWalker,
org.picocontainer.MutablePicoContainer context)
setLogger
public void setLogger(java.util.logging.Logger logger)
- Sets the logger for the encoder to use.
- Parameters:
logger
-
encode
public org.w3c.dom.Element encode(java.lang.Object value,
org.eclipse.xsd.XSDElementDeclaration element,
org.w3c.dom.Document document)
encode
public org.w3c.dom.Element encode(java.lang.Object value,
org.eclipse.xsd.XSDElementDeclaration element,
org.w3c.dom.Document document,
org.eclipse.xsd.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
public org.w3c.dom.Attr encode(java.lang.Object value,
org.eclipse.xsd.XSDAttributeDeclaration attribute,
org.w3c.dom.Document document,
org.eclipse.xsd.XSDTypeDefinition container)
setContext
public void setContext(org.picocontainer.MutablePicoContainer context)
Copyright © 1996-2010 Geotools. All Rights Reserved.