de.smartics.xml.encoding
Class XmlDescriptor

Package class diagram package XmlDescriptor
java.lang.Object
  extended by de.smartics.xml.encoding.XmlDescriptor
All Implemented Interfaces:
Serializable

public final class XmlDescriptor
     
     
extends Object
implements Serializable

Provides the information detected from the given XML document.

See Also:
Serialized Form

Nested Class Summary
static class XmlDescriptor.Builder
          The builder for XMLDescriptor instances.
 
Method Summary
 String getEncoding()
          Returns the detected encoding.
 String getPublicId()
          Returns the detected public ID version.
 String getSystemId()
          Returns the detected system ID version.
 String getVersion()
          Returns the detected XML version.
 boolean isAnyInformationProvided()
          Checks if at least one piece of information has been provided.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getVersion

public String getVersion()
Returns the detected XML version.

Returns:
the detected XML version. May be null.

getEncoding

public String getEncoding()
Returns the detected encoding.

Returns:
the detected encoding. May be null.

getPublicId

public String getPublicId()
Returns the detected public ID version.

Returns:
the detected public ID version. May be null.

getSystemId

public String getSystemId()
Returns the detected system ID version.

Returns:
the detected system ID version. May be null.

isAnyInformationProvided

public boolean isAnyInformationProvided()
Checks if at least one piece of information has been provided.

Returns:
false if no information has been found, true if at least one piece of information has been found.

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.