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 reference loader.
    static InterfaceShape loadShape​(java.lang.String loader, java.lang.String url, ShapeInputOptions options, ProgressUpdater progress_bar)
    Attempts to load a shape with the given loader and url.

    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.IOException
      Attempts to load a shape with the given loader and url. 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

      public static InterfaceShapeLoader getLoaderInstance​(java.lang.String loader)
      Attempts to return an instance of the loader from the qualified reference loader. Returns null if the attempt fails.
      Parameters:
      loader -
      Returns: