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 InterfaceShapeLoadergetLoaderInstance(java.lang.String loader)Attempts to return an instance of the loader from the qualified referenceloader.static InterfaceShapeloadShape(java.lang.String loader, java.lang.String url, ShapeInputOptions options, ProgressUpdater progress_bar)Attempts to load a shape with the givenloaderandurl.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 givenloaderandurl. The loader must be a fully qualified reference to an class which is an instance of- Parameters:
loader-url-- Returns:
- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
getLoaderInstance
Attempts to return an instance of the loader from the qualified referenceloader. Returnsnullif the attempt fails.- Parameters:
loader-- Returns:
-