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
FieldsModifier 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
Modifier and TypeMethodDescriptionstatic org.jdom.ElementaliasToXml(Map.Entry<String, String> alias) static org.jdom.Elementstatic XmlSchemaContextcontextFromXml(org.jdom.Element contextElem) static org.jdom.Elementstatic XmlSchemaContextdeserialize(byte[] xml) static XmlSchemaContextdeserialize(File file) static XmlSchemaContextstatic XmlSchemaContextdeserialize(String xml) protected static booleanparseBoolean(org.jdom.Element ele, String attrName) protected static TraceObjectSchema.HiddenparseHidden(org.jdom.Element ele, String attrName) schemaFromXml(org.jdom.Element schemaElem) static org.jdom.ElementschemaToXml(TraceObjectSchema schema) static Stringserialize(SchemaContext ctx) Methods 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
-
parseHidden
-
serialize
-
contextToXml
-
attributeSchemaToXml
-
aliasToXml
-
schemaToXml
-
deserialize
- Throws:
org.jdom.JDOMException
-
deserialize
- Throws:
org.jdom.JDOMException
-
deserialize
- Throws:
org.jdom.JDOMExceptionIOException
-
deserialize
public static XmlSchemaContext deserialize(InputStream is) throws org.jdom.JDOMException, IOException - Throws:
org.jdom.JDOMExceptionIOException
-
contextFromXml
-
name
-
schemaFromXml
-