Class XmlFactorsFactory

java.lang.Object
xml.factories.attribute.XmlFactoryFromAttribute<Factors>
xml.factories.attribute.XmlFactorsFactory

public class XmlFactorsFactory
extends XmlFactoryFromAttribute<Factors>
Constructs Factorss from XML attributes.
  • Constructor Summary

    Constructors
    Constructor Description
    XmlFactorsFactory()  
  • Method Summary

    Modifier and Type Method Description
    protected Factors create​(java.lang.String attribute)
    Constructs a new Factors from an XML 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

    • XmlFactorsFactory

      public XmlFactorsFactory()
  • Method Details

    • create

      protected Factors create​(java.lang.String attribute)
      Constructs a new Factors from an XML attribute string.
      Specified by:
      create in class XmlFactoryFromAttribute<Factors>
      Parameters:
      attribute - The XML attribute, in the form "r g b" where r, g, and b are integers between 0 and 255 representing the red, green, and blue values.
      Returns:
      A new colour with the given values.
      Throws:
      XmlParserException - if the input string was malformed.