Class TLcyDrawingXMLUtil

java.lang.Object
com.luciad.lucy.addons.drawing.format.xml.TLcyDrawingXMLUtil

public class TLcyDrawingXMLUtil extends Object
This class groups a number of methods to extract information from the context during xml marshalling and unmarshalling.
Since:
8.2
  • Method Details

    • getModelReference

      public static ILcdModelReference getModelReference(Map aXMLDocumentContext)
      Retrieve the model reference from a context
      Parameters:
      aXMLDocumentContext - the XML document context
      Returns:
      the ILcdModelReference contained in the context
    • getModel

      public static ILcdModel getModel(ILcdXMLDocumentContext aXMLDocumentContext)
      Retrieve the model from a context
      Parameters:
      aXMLDocumentContext - the XML document context
      Returns:
      the ILcdModel contained in the context
    • nextGmlId

      public static String nextGmlId(ILcdXMLDocumentContext aXMLDocumentContext)
      Returns a new id, unique in this context, that can be used where gml expects unique ids.
      Parameters:
      aXMLDocumentContext - the XML document context for which an ID is requested
      Returns:
      A new id, unique in this context, that can be used where gml expects unique ids. A typical example is the id attribute of geometry elements.
    • getDataType

      public static TLcdDataType getDataType(ILcdXMLDocumentContext aXMLDocumentContext)
      Retrieve the TLcdDataType of the domain objects from a context
      Parameters:
      aXMLDocumentContext - the XML document context
      Returns:
      the TLcdDataType contained in the context