Documentation
¶
Index ¶
Constants ¶
View Source
const OBJECT_TRANSLATIONS_NAME = "CustomObjectTranslation"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildComponentProvider ¶
type ChildComponentProvider interface {
Items(metadataType string) []metadata.RegisterableMetadata
}
ChildComponentProvider provides access to child components for composition
type CustomObjectTranslation ¶
type CustomObjectTranslation struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"CustomObjectTranslation"`
Xmlns string `xml:"xmlns,attr"`
CaseValues []struct {
Article *TranslationText `xml:"article"`
CaseType *TranslationText `xml:"caseType"`
Plural *TranslationText `xml:"plural"`
PossessivePlural *TranslationText `xml:"possessivePlural"`
Value *TranslationText `xml:"value"`
} `xml:"caseValues"`
FieldSets []struct {
Label TranslationText `xml:"label"`
Name TranslationText `xml:"name"`
} `xml:"fieldSets"`
Gender *TranslationText `xml:"gender"`
Layouts []struct {
Layout TranslationText `xml:"layout"`
LayoutType *TranslationText `xml:"layoutType"`
Sections []struct {
Label TranslationText `xml:"label"`
Section TranslationText `xml:"section"`
} `xml:"sections"`
} `xml:"layouts"`
NameFieldLabel *TranslationText `xml:"nameFieldLabel"`
QuickActions []struct {
Label TranslationText `xml:"label"`
Name TranslationText `xml:"name"`
} `xml:"quickActions"`
SharingReasons []struct {
Label TranslationText `xml:"label"`
Name TranslationText `xml:"name"`
} `xml:"sharingReasons"`
StartsWith *TranslationText `xml:"startsWith"`
WebLinks []struct {
Label TranslationText `xml:"label"`
Name TranslationText `xml:"name"`
} `xml:"webLinks"`
WorkflowTasks []struct {
Description *TranslationText `xml:"description"`
Name TranslationText `xml:"name"`
Subject *TranslationText `xml:"subject"`
} `xml:"workflowTasks"`
Fields FieldList `xml:"fields"`
RecordTypes RecordTypeList `xml:"recordTypes"`
ValidationRules ValidationRuleList `xml:"validationRules"`
// contains filtered or unexported fields
}
func ComposeFromChildren ¶
func ComposeFromChildren(objectTranslationName string, provider ChildComponentProvider) *CustomObjectTranslation
ComposeFromChildren creates a composed CustomObjectTranslation by merging child components from a provider. This is used when converting from source format (where components are separate) to metadata format. The returned CustomObjectTranslation needs to have SetName called before using Files() method.
func Open ¶
func Open(path string) (*CustomObjectTranslation, error)
func (*CustomObjectTranslation) SetMetadata ¶
func (c *CustomObjectTranslation) SetMetadata(m metadata.MetadataInfo)
func (*CustomObjectTranslation) Tidy ¶
func (c *CustomObjectTranslation) Tidy()
Tidy sorts the fields, record types, and validation rules in the CustomObjectTranslation
func (*CustomObjectTranslation) Type ¶
func (c *CustomObjectTranslation) Type() metadata.MetadataType
type RecordTypeList ¶
type RecordTypeList []recordtype.RecordType
type ValidationRuleList ¶
type ValidationRuleList []validationrule.ValidationRule
Click to show internal directories.
Click to hide internal directories.