Documentation
¶
Index ¶
Constants ¶
View Source
const NAME = "DataCategoryGroup"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataCategory ¶
type DataCategory struct {
DataCategory []DataCategory `xml:"dataCategory"`
Label string `xml:"label"`
Name string `xml:"name"`
}
DataCategory is a node in a data category group's category tree. The root node's children are the top-level categories; each child may have further children, forming the tree.
type DataCategoryGroup ¶
type DataCategoryGroup struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"DataCategoryGroup"`
Xmlns string `xml:"xmlns,attr"`
Active BooleanText `xml:"active"`
Description *string `xml:"description"`
Label string `xml:"label"`
DataCategory DataCategory `xml:"dataCategory"`
ObjectUsage *ObjectUsage `xml:"objectUsage"`
}
func Open ¶
func Open(path string) (*DataCategoryGroup, error)
func (*DataCategoryGroup) SetMetadata ¶
func (c *DataCategoryGroup) SetMetadata(m metadata.MetadataInfo)
func (*DataCategoryGroup) Type ¶
func (c *DataCategoryGroup) Type() metadata.MetadataType
type ObjectUsage ¶
type ObjectUsage struct {
Object []string `xml:"object"`
}
ObjectUsage lists the SObjects a data category group applies to (e.g., KnowledgeArticleVersion, Question).
Click to show internal directories.
Click to hide internal directories.