Class XmlDoubleFactory

java.lang.Object
xml.factories.attribute.XmlFactoryFromAttribute<java.lang.Double>
xml.factories.attribute.XmlDoubleFactory

public class XmlDoubleFactory
extends XmlFactoryFromAttribute<java.lang.Double>
Constructs doubles from XML attributes.
  • Constructor Summary

    Constructors
    Constructor Description
    XmlDoubleFactory()  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.Double create​(java.lang.String attribute)
    Create an instance of type T from the given attribute string.

    Methods inherited from class xml.factories.attribute.XmlFactoryFromAttribute

    create, create

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlDoubleFactory

      public XmlDoubleFactory()
  • Method Details

    • create

      protected java.lang.Double create​(java.lang.String attribute)
      Description copied from class: XmlFactoryFromAttribute
      Create an instance of type T from the given attribute string.
      Specified by:
      create in class XmlFactoryFromAttribute<java.lang.Double>
      Parameters:
      attribute - The XML attribute string from which to construct the T.
      Returns:
      An instance of type T whose value is the data in the given string.