Data Request Broker
2-3-release

fr.gael.drb.impl.xml
Class XmlWriter.Context

java.lang.Object
  extended by fr.gael.drb.impl.xml.XmlWriter.Context
All Implemented Interfaces:
Cloneable
Enclosing class:
XmlWriter

public static class XmlWriter.Context
extends Object
implements Cloneable

The dynamic context.


Field Summary
protected  boolean preserveSpace
          Preserve space flag.
 
Constructor Summary
XmlWriter.Context()
          Environment constructor.
XmlWriter.Context(Namespace namespace, String default_namespace_uri)
          Environment constructor.
 
Method Summary
 XmlWriter.Context cloneContext()
          Clones the current class.
 String getDefaultElementNamespaceURI()
          Returns the default namespace URI of elements and types.
 int getFilter()
          Returns the filtering flags.
 int getIndent()
          Returns the indentation.
 Namespace getNamespace()
          Returns the namespace of the environment.
 void setDefaultElementNamespaceURI(String namespace_uri)
          Set the default namespace URI for elements and types.
 void setFilter(int filter)
          Set the filter provided in parameter.
 void setIndent(int indent)
          Set the indent provided in parameter.
 void setNamespace(Namespace namespace)
          Set the namespace provided in parameter.
 void setPreserveSpace(boolean preserve_space)
          Change the preserve space flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

preserveSpace

protected boolean preserveSpace
Preserve space flag.

Constructor Detail

XmlWriter.Context

public XmlWriter.Context()
Environment constructor. This operations initialises the environment with default values.

The following default namespaces are inserted:

xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
xsi http://www.w3.org/2001/XMLSchema-instance


XmlWriter.Context

public XmlWriter.Context(Namespace namespace,
                         String default_namespace_uri)
Environment constructor. This operations initialises the environment with specified values.

Parameters:
namespace - the namespace bindings.
default_namespace_uri - the default namespace URI.
Method Detail

cloneContext

public XmlWriter.Context cloneContext()
Clones the current class.

Returns:
the cloned context.

getIndent

public final int getIndent()
Returns the indentation.

Returns:
the indentation.

setIndent

public final void setIndent(int indent)
Set the indent provided in parameter. Any previous indent will be discarded.

Parameters:
indent - the indent to be considered.

setPreserveSpace

public final void setPreserveSpace(boolean preserve_space)
Change the preserve space flag.

Parameters:
preserve_space - the preserve space flag

getFilter

public final int getFilter()
Returns the filtering flags.

Returns:
the filtering flags.

setFilter

public final void setFilter(int filter)
Set the filter provided in parameter. Any previous filter will be discarded.

Parameters:
filter - the filter to be considered.

getNamespace

public final Namespace getNamespace()
Returns the namespace of the environment.

Returns:
the namespace of the current environment.

setNamespace

public final void setNamespace(Namespace namespace)
Set the namespace provided in parameter. Any previous namespace will be discarded.

Parameters:
namespace - the namespace to be considered.

getDefaultElementNamespaceURI

public final String getDefaultElementNamespaceURI()
Returns the default namespace URI of elements and types.

Returns:
the default namspace URI if exist or null otherwise.

setDefaultElementNamespaceURI

public final void setDefaultElementNamespaceURI(String namespace_uri)
Set the default namespace URI for elements and types. Any previous default namespace URI will be overriden.

Parameters:
namespace_uri - the new default namespace URI to consider.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .