org.n52.security.common.xml
Class DOMParserOptions

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

public class DOMParserOptions
extends java.lang.Object

Class DOMParserOptions are options describing some common options for DOMParsers.

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

Constructor Summary
DOMParserOptions()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Method equals.
static DOMParserOptions getDefault()
          Method gets the default options.
 int hashCode()
          Method hashCode.
 DOMParserOptions ignoreComments()
          Method sets the ignoreComments flag.
 boolean isIgnoreComments()
          Method gets it comments are ignored.
 boolean isNamespaceaware()
          Method gets the parser is namespaceaware.
 boolean isValidating()
          Method gets if the parser is in validating mode.
 DOMParserOptions namespaceaware()
          Method sets the namespaceaware flag.
 DOMParserOptions notIgnoreComments()
          Method sets the ignoreComments to false.
 DOMParserOptions notNamespaceaware()
          Method sets the namespaceaware flag to false.
 DOMParserOptions notValidating()
          Method sets the validating to false.
 void setIgnoreComments(boolean ignorecomments)
          Method sets the ignore comments flag.
 void setNamespaceaware(boolean namespaceaware)
          Method sets the namespaceaware flag.
 void setValidating(boolean validating)
          Method sets the validating flag.
 java.lang.String toString()
          Method toString.
 DOMParserOptions validating()
          Method sets the validating flag.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMParserOptions

public DOMParserOptions()
Method Detail

getDefault

public static DOMParserOptions getDefault()
Method gets the default options. The default is a namespaceaware, non validating parser, which ignores comments.

Returns:
DOMParserOptions.

notIgnoreComments

public DOMParserOptions notIgnoreComments()
Method sets the ignoreComments to false.

Returns:
DOMParserOptions.

isIgnoreComments

public boolean isIgnoreComments()
Method gets it comments are ignored.

Returns:
boolean.

setIgnoreComments

public void setIgnoreComments(boolean ignorecomments)
Method sets the ignore comments flag.

Parameters:
ignorecomments - the ignoreComments.

isNamespaceaware

public boolean isNamespaceaware()
Method gets the parser is namespaceaware.

Returns:
boolean.

setNamespaceaware

public void setNamespaceaware(boolean namespaceaware)
Method sets the namespaceaware flag.

Parameters:
namespaceaware - the namespaceaware.

isValidating

public boolean isValidating()
Method gets if the parser is in validating mode. Consider that validating works only in xml files based on dtds. To validate xml files based on xml schemata use the schema class.

Returns:
boolean.

setValidating

public void setValidating(boolean validating)
Method sets the validating flag.

Parameters:
validating - the validating.

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.

ignoreComments

public DOMParserOptions ignoreComments()
Method sets the ignoreComments flag.

Returns:
DOMParserOptions.

namespaceaware

public DOMParserOptions namespaceaware()
Method sets the namespaceaware flag.

Returns:
DOMParserOptions.

notNamespaceaware

public DOMParserOptions notNamespaceaware()
Method sets the namespaceaware flag to false.

Returns:
DOMParserOptions.

notValidating

public DOMParserOptions notValidating()
Method sets the validating to false.

Returns:
DOMParserOptions.

validating

public DOMParserOptions validating()
Method sets the validating flag.

Returns:
DOMParserOptions.


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