Class XmlSchemaContext

java.lang.Object
ghidra.trace.model.target.schema.DefaultSchemaContext
ghidra.trace.model.target.schema.XmlSchemaContext
All Implemented Interfaces:
SchemaContext

public class XmlSchemaContext extends DefaultSchemaContext
A SchemaContext decoded from XML.
  • Field Details

  • Constructor Details

    • XmlSchemaContext

      public XmlSchemaContext()
  • Method Details

    • parseBoolean NEW

      protected static boolean parseBoolean(org.jdom2.Element ele, String attrName)
    • parseHidden NEW

      protected static TraceObjectSchema.Hidden parseHidden(org.jdom2.Element ele, String attrName)
    • serialize

      public static String serialize(SchemaContext ctx)
    • contextToXml MODIFIED

      public static org.jdom2.Element contextToXml(SchemaContext ctx)
      return type: Element → Element
      -static org.jdom.Element contextToXml(ghidra.trace.model.target.schema.SchemaContext ctx)
      +static org.jdom2.Element contextToXml(ghidra.trace.model.target.schema.SchemaContext ctx)
    • attributeSchemaToXml MODIFIED

      public static org.jdom2.Element attributeSchemaToXml(TraceObjectSchema.AttributeSchema as)
      return type: Element → Element
      -static org.jdom.Element attributeSchemaToXml(ghidra.trace.model.target.schema.TraceObjectSchema.AttributeSchema as)
      +static org.jdom2.Element attributeSchemaToXml(ghidra.trace.model.target.schema.TraceObjectSchema.AttributeSchema as)
    • aliasToXml

      public static org.jdom2.Element aliasToXml(Map.Entry<String,String> alias)
    • schemaToXml MODIFIED

      public static org.jdom2.Element schemaToXml(TraceObjectSchema schema)
      return type: Element → Element
      -static org.jdom.Element schemaToXml(ghidra.trace.model.target.schema.TraceObjectSchema schema)
      +static org.jdom2.Element schemaToXml(ghidra.trace.model.target.schema.TraceObjectSchema schema)
    • deserialize MODIFIED

      public static XmlSchemaContext deserialize(String xml) throws org.jdom2.JDOMException
      added throws JDOMException; removed throws JDOMException
      -static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(java.lang.String xml) throws JDOMException
      +static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(java.lang.String xml) throws JDOMException
      Throws:
      org.jdom2.JDOMException
      JDOMException (removed)
    • deserialize MODIFIED

      public static XmlSchemaContext deserialize(byte[] xml) throws org.jdom2.JDOMException
      added throws JDOMException; removed throws JDOMException
      -static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(byte[] xml) throws JDOMException
      +static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(byte[] xml) throws JDOMException
      Throws:
      org.jdom2.JDOMException
      JDOMException (removed)
    • deserialize MODIFIED

      public static XmlSchemaContext deserialize(File file) throws org.jdom2.JDOMException, IOException
      added throws JDOMException; removed throws JDOMException
      -static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(java.io.File file) throws JDOMException, IOException
      +static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(java.io.File file) throws JDOMException, IOException
      Throws:
      org.jdom2.JDOMException
      IOException
      JDOMException (removed)
    • deserialize MODIFIED

      public static XmlSchemaContext deserialize(InputStream is) throws org.jdom2.JDOMException, IOException
      added throws JDOMException; removed throws JDOMException
      -static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(java.io.InputStream is) throws JDOMException, IOException
      +static ghidra.trace.model.target.schema.XmlSchemaContext deserialize(java.io.InputStream is) throws JDOMException, IOException
      Throws:
      org.jdom2.JDOMException
      IOException
      JDOMException (removed)
    • contextFromXml NEW

      public static XmlSchemaContext contextFromXml(org.jdom2.Element contextElem)
    • name

    • schemaFromXml NEW

      public TraceObjectSchema schemaFromXml(org.jdom2.Element schemaElem)