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 AmbientLight
createHelper(org.w3c.dom.Element element)
Constructs a newAmbientLight
from an XMLElement
.Methods inherited from class xml.factories.element.XmlFactoryFromElement
create
Methods 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 newAmbientLight
from an XMLElement
.- Specified by:
createHelper
in 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.
-