Package xml.factories.attribute
Class XmlResolutionFactory
java.lang.Object
xml.factories.attribute.XmlFactoryFromAttribute<Resolution>
xml.factories.attribute.XmlResolutionFactory
public class XmlResolutionFactory extends XmlFactoryFromAttribute<Resolution>
Constructs a new
Resolution from an XML attribute string in a form similar to "1920x1080".-
Constructor Summary
Constructors Constructor Description XmlResolutionFactory() -
Method Summary
Modifier and Type Method Description protected Resolutioncreate(java.lang.String attribute)Create an instance of type T from the given attribute string.Methods inherited from class xml.factories.attribute.XmlFactoryFromAttribute
create, createMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
XmlResolutionFactory
public XmlResolutionFactory()
-
-
Method Details
-
create
Description copied from class:XmlFactoryFromAttributeCreate an instance of type T from the given attribute string.- Specified by:
createin classXmlFactoryFromAttribute<Resolution>- 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.
-