Package mgui.io.domestic.shapes.xml
Class ShapeXMLFunctions
java.lang.Object
mgui.interfaces.Utility
mgui.io.domestic.shapes.xml.ShapeXMLFunctions
public class ShapeXMLFunctions extends Utility
Utility class for methods related specifically to XML representations of
Shape
or
InterfaceShape
objects.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Constructor Summary
Constructors Constructor Description ShapeXMLFunctions()
-
Method Summary
Modifier and Type Method Description static InterfaceShapeLoader
getLoaderInstance(java.lang.String loader)
Attempts to return an instance of the loader from the qualified referenceloader
.static InterfaceShape
loadShape(java.lang.String loader, java.lang.String url, ShapeInputOptions options, ProgressUpdater progress_bar)
Attempts to load a shape with the givenloader
andurl
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ShapeXMLFunctions
public ShapeXMLFunctions()
-
-
Method Details
-
loadShape
public static InterfaceShape loadShape(java.lang.String loader, java.lang.String url, ShapeInputOptions options, ProgressUpdater progress_bar) throws java.io.IOExceptionAttempts to load a shape with the givenloader
andurl
. The loader must be a fully qualified reference to an class which is an instance of- Parameters:
loader
-url
-- Returns:
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
-
getLoaderInstance
Attempts to return an instance of the loader from the qualified referenceloader
. Returnsnull
if the attempt fails.- Parameters:
loader
-- Returns:
-