org.n52.security.common.xml
Class DOMParserOptions

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

public class DOMParserOptions
extends Object

Options describing some common options for DOMParsers.

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

Constructor Summary
DOMParserOptions()
           
 
Method Summary
 DOMParserOptions coalescing()
           
 boolean equals(Object obj)
           
 DOMParserOptions expandEntityReferences()
           
static DOMParserOptions getDefault()
          Method gets the default options.
 Schema getSchema()
           
 int hashCode()
           
 DOMParserOptions ignoreComments()
          Method sets the ignoreComments flag.
 DOMParserOptions ignoreElementContentWhitespace()
           
 boolean isCoalescing()
           
 boolean isExpandEntityReferences()
           
 boolean isIgnoreComments()
          Method gets it comments are ignored.
 boolean isIgnoreElementContentWhitespace()
           
 boolean isNamespaceaware()
          Method gets the parser is namespaceaware.
 boolean isValidating()
          Method gets if the parser is in validating mode.
 boolean isXincludeAware()
           
 DOMParserOptions namespaceaware()
          Method sets the namespaceaware flag.
 DOMParserOptions notCoalescing()
           
 DOMParserOptions notExpandEntityReferences()
           
 DOMParserOptions notIgnoreComments()
          Method sets the ignoreComments to false.
 DOMParserOptions notIgnoreElementContentWhitespace()
           
 DOMParserOptions notNamespaceaware()
          Method sets the namespaceaware flag to false.
 DOMParserOptions notValidating()
          Method sets the validating to false.
 DOMParserOptions notXincludeAware()
           
 DOMParserOptions schema(Schema schema)
           
 void setCoalescing(boolean coalescing)
           
 void setExpandEntityReferences(boolean expandEntityReferences)
           
 void setIgnoreComments(boolean ignorecomments)
          Method sets the ignore comments flag.
 void setIgnoreElementContentWhitespace(boolean ignoreElementWhitespace)
           
 void setNamespaceaware(boolean namespaceaware)
          Method sets the namespaceaware flag.
 void setSchema(Schema schema)
           
 void setValidating(boolean validating)
          Method sets the validating flag.
 void setXincludeAware(boolean xincludeAware)
           
 String toString()
           
 DOMParserOptions validating()
          Method sets the validating flag.
 DOMParserOptions xincludeAware()
           
 
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.

ignoreComments

public DOMParserOptions ignoreComments()
Method sets the ignoreComments flag.

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.

namespaceaware

public DOMParserOptions namespaceaware()
Method sets the namespaceaware flag.

Returns:
DOMParserOptions.

notNamespaceaware

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

Returns:
DOMParserOptions.

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.

notValidating

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

Returns:
DOMParserOptions.

validating

public DOMParserOptions validating()
Method sets the validating flag.

Returns:
DOMParserOptions.

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.

ignoreElementContentWhitespace

public DOMParserOptions ignoreElementContentWhitespace()

notIgnoreElementContentWhitespace

public DOMParserOptions notIgnoreElementContentWhitespace()

isIgnoreElementContentWhitespace

public boolean isIgnoreElementContentWhitespace()

setIgnoreElementContentWhitespace

public void setIgnoreElementContentWhitespace(boolean ignoreElementWhitespace)

xincludeAware

public DOMParserOptions xincludeAware()

notXincludeAware

public DOMParserOptions notXincludeAware()

isXincludeAware

public boolean isXincludeAware()

setXincludeAware

public void setXincludeAware(boolean xincludeAware)

coalescing

public DOMParserOptions coalescing()

notCoalescing

public DOMParserOptions notCoalescing()

isCoalescing

public boolean isCoalescing()

setCoalescing

public void setCoalescing(boolean coalescing)

expandEntityReferences

public DOMParserOptions expandEntityReferences()

notExpandEntityReferences

public DOMParserOptions notExpandEntityReferences()

isExpandEntityReferences

public boolean isExpandEntityReferences()

setExpandEntityReferences

public void setExpandEntityReferences(boolean expandEntityReferences)

schema

public DOMParserOptions schema(Schema schema)

getSchema

public Schema getSchema()

setSchema

public void setSchema(Schema schema)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004–2014 52north.org. All rights reserved.