Package ghidra.trace.model.target.schema
Class XmlSchemaContext
java.lang.Object
ghidra.trace.model.target.schema.DefaultSchemaContext
ghidra.trace.model.target.schema.XmlSchemaContext
- All Implemented Interfaces:
SchemaContext
A
SchemaContext decoded from XML.-
Field Summary
FieldsChangeModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final Map<String, TraceObjectSchema.SchemaName> protected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionstatic org.jdom2.ElementaliasToXml(Map.Entry<String, String> alias) MODIFIEDstatic org.jdom2.ElementNEWstatic XmlSchemaContextcontextFromXml(org.jdom2.Element contextElem) MODIFIEDstatic org.jdom2.ElementMODIFIEDstatic XmlSchemaContextdeserialize(byte[] xml) MODIFIEDstatic XmlSchemaContextdeserialize(File file) MODIFIEDstatic XmlSchemaContextMODIFIEDstatic XmlSchemaContextdeserialize(String xml) NEWprotected static booleanparseBoolean(org.jdom2.Element ele, String attrName) NEWprotected static TraceObjectSchema.HiddenparseHidden(org.jdom2.Element ele, String attrName) NEWschemaFromXml(org.jdom2.Element schemaElem) MODIFIEDstatic org.jdom2.ElementschemaToXml(TraceObjectSchema schema) static Stringserialize(SchemaContext ctx) REMOVEDbooleanparseBoolean(Element ele, String attrName) RemovedREMOVEDHiddenparseHidden(Element ele, String attrName) RemovedREMOVEDXmlSchemaContextcontextFromXml(Element contextElem) RemovedREMOVEDTraceObjectSchemaschemaFromXml(Element schemaElem) RemovedMethods inherited from class ghidra.trace.model.target.schema.DefaultSchemaContext
builder, builder, equals, getAllSchemas, getSchema, getSchemaOrNull, hashCode, modify, putSchema, replaceSchema, toString
-
Field Details
-
ELEM_CONTEXT
- See Also:
-
ATTR_CANONICAL
- See Also:
-
ELEM_SCHEMA
- See Also:
-
ELEM_INTERFACE
- See Also:
-
ELEM_ELEMENT
- See Also:
-
ATTR_INDEX
- See Also:
-
ELEM_ATTRIBUTE
- See Also:
-
ATTR_NAME
- See Also:
-
ATTR_SCHEMA
- See Also:
-
ATTR_REQUIRED
- See Also:
-
ATTR_FIXED
- See Also:
-
ATTR_HIDDEN
- See Also:
-
ELEM_ATTRIBUTE_ALIAS
- See Also:
-
ATTR_FROM
- See Also:
-
ATTR_TO
- See Also:
-
YES
- See Also:
-
NO
- See Also:
-
DEFAULT
- See Also:
-
TRUES
-
FALSES
-
names
-
-
Constructor Details
-
XmlSchemaContext
public XmlSchemaContext()
-
-
Method Details
-
parseBoolean NEW
-
parseHidden NEW
-
serialize
-
contextToXml MODIFIED
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
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
-
schemaToXml MODIFIED
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
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.JDOMExceptionJDOMException(removed)
-
deserialize MODIFIED
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.JDOMExceptionJDOMException(removed)
-
deserialize MODIFIED
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.JDOMExceptionIOExceptionJDOMException(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.JDOMExceptionIOExceptionJDOMException(removed)
-
contextFromXml NEW
-
name
-
schemaFromXml NEW
-