de.smartics.xml.encoding
Class XmlDescriptor.Builder

Package class diagram package XmlDescriptor.Builder
java.lang.Object
  extended by de.smartics.xml.encoding.XmlDescriptor.Builder
Enclosing class:
XmlDescriptor

public static final class XmlDescriptor.Builder
     
     
extends Object

The builder for XMLDescriptor instances.


Constructor Summary
XmlDescriptor.Builder()
           
 
Method Summary
 XmlDescriptor build()
          Creates the instance upon the builder's data.
 XmlDescriptor.Builder withEncoding(String encoding)
          Sets the detected encoding.
 XmlDescriptor.Builder withPublicId(String publicId)
          Sets the detected public ID version.
 XmlDescriptor.Builder withSystemId(String systemId)
          Sets the detected system ID version.
 XmlDescriptor.Builder withVersion(String version)
          Sets the detected XML version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDescriptor.Builder

public XmlDescriptor.Builder()
Method Detail

withVersion

public XmlDescriptor.Builder withVersion(String version)
Sets the detected XML version.

Parameters:
version - the detected XML version.
Returns:
a reference to this builder instance.

withEncoding

public XmlDescriptor.Builder withEncoding(String encoding)
Sets the detected encoding.

Parameters:
encoding - the detected encoding.
Returns:
a reference to this builder instance.

withPublicId

public XmlDescriptor.Builder withPublicId(String publicId)
Sets the detected public ID version.

Parameters:
publicId - the detected public ID version.
Returns:
a reference to this builder instance.

withSystemId

public XmlDescriptor.Builder withSystemId(String systemId)
Sets the detected system ID version.

Parameters:
systemId - the detected system ID version.
Returns:
a reference to this builder instance.

build

public XmlDescriptor build()
Creates the instance upon the builder's data.

Returns:
the created instance.


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