Package ghidra.trace.model.target.schema
Class DefaultTraceObjectSchema.DefaultAttributeSchema
java.lang.Object
ghidra.trace.model.target.schema.DefaultTraceObjectSchema.DefaultAttributeSchema
- All Implemented Interfaces:
TraceObjectSchema.AttributeSchema,Comparable<DefaultTraceObjectSchema.DefaultAttributeSchema>
- Enclosing class:
DefaultTraceObjectSchema
public static class DefaultTraceObjectSchema.DefaultAttributeSchema
extends Object
implements TraceObjectSchema.AttributeSchema, Comparable<DefaultTraceObjectSchema.DefaultAttributeSchema>
-
Field Summary
Fields inherited from interface ghidra.trace.model.target.schema.TraceObjectSchema.AttributeSchema
DEFAULT_ANY, DEFAULT_OBJECT, DEFAULT_VOID -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAttributeSchema(String name, TraceObjectSchema.SchemaName schema, boolean isRequired, boolean isFixed, TraceObjectSchema.Hidden hidden) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.trace.model.target.schema.TraceObjectSchema.AttributeSchema
isHidden
-
Constructor Details
-
DefaultAttributeSchema
public DefaultAttributeSchema(String name, TraceObjectSchema.SchemaName schema, boolean isRequired, boolean isFixed, TraceObjectSchema.Hidden hidden)
-
-
Method Details
-
toString
-
equals
Generally speaking, object identity is sufficient for checking equality in production; however, this method is provided for testing equality between an actual and expected attribute schema.
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<DefaultTraceObjectSchema.DefaultAttributeSchema>
-
getName
Description copied from interface:TraceObjectSchema.AttributeSchemaGet the name of the attribute- Specified by:
getNamein interfaceTraceObjectSchema.AttributeSchema- Returns:
- the name of the attribute
-
getSchema
Description copied from interface:TraceObjectSchema.AttributeSchemaGet the schema name for the named attribute- Specified by:
getSchemain interfaceTraceObjectSchema.AttributeSchema- Returns:
- the schema name
-
isRequired
public boolean isRequired()Description copied from interface:TraceObjectSchema.AttributeSchemaCheck if the named attribute must always be present- Specified by:
isRequiredin interfaceTraceObjectSchema.AttributeSchema- Returns:
- true if required, false if optional
-
isFixed
public boolean isFixed()Description copied from interface:TraceObjectSchema.AttributeSchemaCheck if the named attribute can be modified- Specified by:
isFixedin interfaceTraceObjectSchema.AttributeSchema- Returns:
- true if immutable, false if mutable
-
getHidden
- Specified by:
getHiddenin interfaceTraceObjectSchema.AttributeSchema
-