org.n52.security.common.xml
Class DOMSerializerOptions

java.lang.Object
  extended by org.n52.security.common.xml.DOMSerializerOptions

public class DOMSerializerOptions
extends java.lang.Object

Class DOMSerializerOptions encapsulates settings for the DOMSerializer.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 23.04.2008

Constructor Summary
DOMSerializerOptions()
           
 
Method Summary
 DOMSerializerOptions emitXMLDeclaration()
          Method sets the XMLDeclaration shall be emited.
 DOMSerializerOptions encoding(java.lang.String encoding)
          Method sets encoding.
 DOMSerializerOptions encodingUTF8()
          Method sets encoding to UTF-8.
 boolean equals(java.lang.Object o)
          Method equals.
static DOMSerializerOptions getDefaultOptions()
          Method gets the defaultOptions.
 java.lang.String getEncoding()
          Method gets the encoding.
 int getIndentAmount()
          Method gets the indent Amount.
 int hashCode()
          Method hashCode.
 DOMSerializerOptions indent()
          Method sets the indent is requested.
 DOMSerializerOptions indentAmount(int amount)
          Method sets the indent amount.
 boolean isIndent()
          Method gets if indent is enabled.
 boolean isOmitXMLDeclaration()
          Method gets if xml declaration shall be written.
 DOMSerializerOptions noIndent()
          Method sets no indent.
 DOMSerializerOptions omitXMLDeclaration()
          Method sets that XMLDeclaration shall be omited.
 java.lang.String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMSerializerOptions

public DOMSerializerOptions()
Method Detail

getDefaultOptions

public static DOMSerializerOptions getDefaultOptions()
Method gets the defaultOptions.

Returns:
DOMSerializerOptions.

noIndent

public DOMSerializerOptions noIndent()
Method sets no indent.

Returns:
DOMSerializerOptions.

getEncoding

public java.lang.String getEncoding()
Method gets the encoding.

Returns:
String.

getIndentAmount

public int getIndentAmount()
Method gets the indent Amount.

Returns:
int.

isIndent

public boolean isIndent()
Method gets if indent is enabled.

Returns:
boolean.

isOmitXMLDeclaration

public boolean isOmitXMLDeclaration()
Method gets if xml declaration shall be written.

Returns:
boolean.

equals

public boolean equals(java.lang.Object o)
Method equals.

Overrides:
equals in class java.lang.Object
Parameters:
o - the o.
Returns:
boolean.

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class java.lang.Object
Returns:
int.

toString

public java.lang.String toString()
Method toString.

Overrides:
toString in class java.lang.Object
Returns:
String.

emitXMLDeclaration

public DOMSerializerOptions emitXMLDeclaration()
Method sets the XMLDeclaration shall be emited.

Returns:
DOMSerializerOptions.

encoding

public DOMSerializerOptions encoding(java.lang.String encoding)
Method sets encoding.

Parameters:
encoding - the encoding.
Returns:
DOMSerializerOptions.

encodingUTF8

public DOMSerializerOptions encodingUTF8()
Method sets encoding to UTF-8.

Returns:
DOMSerializerOptions.

indentAmount

public DOMSerializerOptions indentAmount(int amount)
Method sets the indent amount.

Parameters:
amount - the amount.
Returns:
DOMSerializerOptions.

indent

public DOMSerializerOptions indent()
Method sets the indent is requested.

Returns:
DOMSerializerOptions.

omitXMLDeclaration

public DOMSerializerOptions omitXMLDeclaration()
Method sets that XMLDeclaration shall be omited.

Returns:
DOMSerializerOptions.


Copyright © 2004-2009 52north.org. All Rights Reserved.