Class representing fields and other information for a spec type. More...
Public Member Functions | |
SDF_API TfTokenVector | GetFields () const |
Returns all fields for this spec. More... | |
TfTokenVector const & | GetRequiredFields () const |
Returns all value fields marked as required for this spec. More... | |
SDF_API TfTokenVector | GetMetadataFields () const |
Returns all value fields marked as metadata for this spec. More... | |
SDF_API bool | IsValidField (const TfToken &name) const |
Returns whether the given field is valid for this spec. More... | |
SDF_API bool | IsMetadataField (const TfToken &name) const |
Returns whether the given field is metadata for this spec. More... | |
SDF_API TfToken | GetMetadataFieldDisplayGroup (const TfToken &name) const |
Returns the display group for this metadata field. More... | |
SDF_API bool | IsRequiredField (const TfToken &name) const |
Returns whether the given field is required for this spec. More... | |
Friends | |
class | _SpecDefiner |
Class representing fields and other information for a spec type.
SDF_API TfTokenVector GetFields | ( | ) | const |
Returns all fields for this spec.
Returns the display group for this metadata field.
Returns the empty token if this field is not a metadata field or if this metadata field has no display group.
SDF_API TfTokenVector GetMetadataFields | ( | ) | const |
Returns all value fields marked as metadata for this spec.
|
inline |
SDF_API bool IsMetadataField | ( | const TfToken & | name | ) | const |
Returns whether the given field is metadata for this spec.
SDF_API bool IsRequiredField | ( | const TfToken & | name | ) | const |
Returns whether the given field is required for this spec.
SDF_API bool IsValidField | ( | const TfToken & | name | ) | const |
Returns whether the given field is valid for this spec.