Package xml.factories.element
Class XmlAmbientLightFactory
java.lang.Object
xml.factories.element.XmlFactoryFromElement<AmbientLight>
xml.factories.element.XmlAmbientLightFactory
public class XmlAmbientLightFactory extends XmlFactoryFromElement<AmbientLight>
Constructs an
AmbientLight from an XML Element.-
Constructor Summary
Constructors Constructor Description XmlAmbientLightFactory() -
Method Summary
Modifier and Type Method Description protected AmbientLightcreateHelper(org.w3c.dom.Element element)Constructs a newAmbientLightfrom an XMLElement.Methods inherited from class xml.factories.element.XmlFactoryFromElement
createMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
XmlAmbientLightFactory
public XmlAmbientLightFactory()
-
-
Method Details
-
createHelper
Constructs a newAmbientLightfrom an XMLElement.- Specified by:
createHelperin classXmlFactoryFromElement<AmbientLight>- Parameters:
element- The XML element, containing an attribute "colour" whose value can be parsed into aColour.- Returns:
- A new AmbientLight with the given values.
- Throws:
XmlParserException- if the XML element did not have a valid colour attribute.
-