Documentation
¶
Index ¶
- Constants
- Variables
- func Unpack(cfg UnpackConfig, filename string, value interface{}) error
- type Attribute
- type AttributeType
- type AttributeTypedValue
- type Catalog
- type ChartOfCharacteristicType
- type Command
- type CommonModule
- type CommonTemplates
- type Configuration
- type ConfigurationChildObjects
- type ConfigurationProperties
- type ContainedObject
- type Content
- type Dimension
- type Document
- type EventSubscription
- type ExchangePlan
- type Form
- type Help
- type InformationRegister
- type Language
- type MDOBaseType
- type MDOProducedTypes
- type MDORef
- type MDOType
- type MDOTypeRef
- func (m MDOTypeRef) Dir() string
- func (m MDOTypeRef) Empty() bool
- func (m MDOTypeRef) Filename() string
- func (m MDOTypeRef) GetPath() string
- func (m MDOTypeRef) IsNull() bool
- func (m MDOTypeRef) MarshalText() ([]byte, error)
- func (m MDOTypeRef) Parent() MDORef
- func (m MDOTypeRef) Ref() string
- func (m MDOTypeRef) String() string
- func (m MDOTypeRef) Type() MDOType
- func (m *MDOTypeRef) UnmarshalText(text []byte) error
- func (m MDOTypeRef) Unpack(cfg UnpackConfig, value interface{}) error
- type MDOTypeRefList
- func (e MDOTypeRefList) Delete(index int) ([]MDOTypeRef, error)
- func (e MDOTypeRefList) Exist(typeRef MDOTypeRef) bool
- func (e MDOTypeRefList) GetByName(name string) (MDOTypeRef, error)
- func (e MDOTypeRefList) GetIndex(typeRef MDOTypeRef) int
- func (e MDOTypeRefList) Unpack(cfg UnpackConfig, value interface{}) error
- type MobileApplicationFunctionalities
- type MobileApplicationFunctionality
- type ObjectKeyValueType
- type ObjectTypeRef
- type Predefined
- type ProducedTypes
- type Report
- type Resource
- type Source
- type StandardAttribute
- type Subsystem
- type SubsystemChildSubsystems
- type TabularSection
- type TabularSectionProducedTypes
- type UnpackConfig
- type Unpacker
Constants ¶
View Source
const ConfigurationFile = "Configuration.mdo"
View Source
const ExtMdo = ".mdo"
Variables ¶
View Source
var NoNameFile = errors.New("no name unpack config")
Functions ¶
func Unpack ¶
func Unpack(cfg UnpackConfig, filename string, value interface{}) error
Types ¶
type Attribute ¶ added in v0.0.7
type Attribute struct {
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
Comment string `xml:"comment"`
Type AttributeType `xml:"type"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
MinValue AttributeTypedValue `xml:"minValue"`
MaxValue AttributeTypedValue `xml:"maxValue"`
FillChecking string `xml:"fillChecking"`
QuickChoice string `xml:"quickChoice"`
CreateOnInput string `xml:"createOnInput"`
FillValue AttributeTypedValue `xml:"fillValue"`
Indexing string `xml:"indexing"`
FullTextSearch string `xml:"fullTextSearch"`
Use string `xml:"use"`
DataHistory string `xml:"dataHistory"`
Format ObjectKeyValueType `xml:"format"`
EditFormat ObjectKeyValueType `xml:"editFormat"`
Mask string `xml:"mask"`
MultiLine string `xml:"multiLine"`
}
Attribute - Реквизиты
type AttributeType ¶ added in v0.0.7
type AttributeType struct {
Types string `xml:"types"`
NumberQualifiers struct {
Precision string `xml:"precision"`
} `xml:"numberQualifiers"`
StringQualifiers struct {
Length string `xml:"length"`
} `xml:"stringQualifiers"`
DateQualifiers struct {
DateFractions string `xml:"dateFractions"`
} `xml:"dateQualifiers"`
}
AttributeType - тип реквизита
type AttributeTypedValue ¶ added in v0.0.7
AttributeTypedValue - значение реквизитов
type Catalog ¶ added in v0.0.2
type Catalog struct {
MDOBaseType
XMLName xml.Name `xml:"Catalog"`
ProducedTypes MDOProducedTypes `xml:"producedTypes"`
InputByString string `xml:"inputByString"`
FullTextSearchOnInputByString string `xml:"fullTextSearchOnInputByString"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
CreateOnInput string `xml:"createOnInput"`
Help Help `xml:"help"`
DataLockControlMode string `xml:"dataLockControlMode"`
FullTextSearch string `xml:"fullTextSearch"`
ObjectPresentation ObjectKeyValueType `xml:"objectPresentation"`
Hierarchical string `xml:"hierarchical"`
LevelCount string `xml:"levelCount"`
FoldersOnTop string `xml:"foldersOnTop"`
DescriptionLength string `xml:"descriptionLength"`
CodeType string `xml:"codeType"`
CodeAllowedLength string `xml:"codeAllowedLength"`
DefaultPresentation string `xml:"defaultPresentation"`
EditType string `xml:"editType"`
ChoiceMode string `xml:"choiceMode"`
Attributes []Attribute `xml:"attributes"`
TabularSections []TabularSection `xml:"tabularSections"`
}
type ChartOfCharacteristicType ¶ added in v0.0.10
type ChartOfCharacteristicType struct {
XMLName xml.Name `xml:"ChartOfCharacteristicTypes"`
Xsi string `xml:"xsi,attr"`
Core string `xml:"core,attr"`
Mdclass string `xml:"mdclass,attr"`
Uuid string `xml:"uuid,attr"`
ProducedTypes MDOProducedTypes `xml:"producedTypes"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
UseStandardCommands string `xml:"useStandardCommands"`
InputByString []string `xml:"inputByString"`
FullTextSearchOnInputByString string `xml:"fullTextSearchOnInputByString"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
Characteristics []struct {
CharacteristicTypes string `xml:"characteristicTypes"`
KeyField string `xml:"keyField"`
TypesFilterField string `xml:"typesFilterField"`
TypesFilterValue AttributeTypedValue `xml:"typesFilterValue"`
CharacteristicValues string `xml:"characteristicValues"`
ObjectField string `xml:"objectField"`
TypeField string `xml:"typeField"`
ValueField string `xml:"valueField"`
} `xml:"characteristics"`
CreateOnInput string `xml:"createOnInput"`
Help Help `xml:"help"`
FullTextSearch string `xml:"fullTextSearch"`
Type struct {
Types []string `xml:"types"`
} `xml:"type"`
Hierarchical string `xml:"hierarchical"`
FoldersOnTop string `xml:"foldersOnTop"`
CodeLength string `xml:"codeLength"`
DescriptionLength string `xml:"descriptionLength"`
CheckUnique string `xml:"checkUnique"`
Autonumbering string `xml:"autonumbering"`
DefaultPresentation string `xml:"defaultPresentation"`
Predefined Predefined `xml:"predefined"`
EditType string `xml:"editType"`
ChoiceMode string `xml:"choiceMode"`
ChoiceHistoryOnInput string `xml:"choiceHistoryOnInput"`
DefaultObjectForm string `xml:"defaultObjectForm"`
DefaultFolderForm string `xml:"defaultFolderForm"`
DefaultListForm string `xml:"defaultListForm"`
DefaultChoiceForm string `xml:"defaultChoiceForm"`
Attributes []Attribute `xml:"attributes"`
TabularSections TabularSection `xml:"tabularSections"`
Forms []Form `xml:"forms"`
}
type Command ¶ added in v0.0.7
type Command struct {
MDOBaseType
Group string `xml:"group"`
Representation string `xml:"representation"`
}
type CommonModule ¶ added in v0.0.7
type CommonModule struct {
MDOBaseType
Comment string `xml:"comment"`
Global bool `xml:"global"`
ClientManagedApplication bool `xml:"clientManagedApplication"`
Server bool `xml:"server"`
ExternalConnection bool `xml:"externalConnection"`
ClientOrdinaryApplication bool `xml:"clientOrdinaryApplication"`
Client bool `xml:"client"`
ServerCall bool `xml:"serverCall"`
Privileged bool `xml:"privileged"`
ReturnValuesReuse string `xml:"returnValuesReuse"`
}
CommonModule ...
type CommonTemplates ¶ added in v0.0.7
type CommonTemplates struct {
MDOBaseType
XMLName xml.Name `xml:"CommonTemplate"`
TemplateType string `xml:"templateType"`
Comment string `xml:"comment"`
}
type Configuration ¶
type Configuration struct {
MDOBaseType
XMLName xml.Name `xml:"mdclass Configuration"`
Synonym []ObjectKeyValueType `xml:"synonym"`
ContainedObjects []ContainedObject `xml:"containedObjects,allowempty"`
ConfigurationProperties
Languages []*Language `xml:"languages"`
Subsystems []*Subsystem `xml:"-"`
// StyleItems []MDOTypeRef `xml:"styleItems"`
// CommonPictures []MDOTypeRef `xml:"commonPictures"`
// SessionParameters []MDOTypeRef `xml:"sessionParameters"`
// Roles []MDOTypeRef `xml:"roles"`
CommonTemplates []*CommonTemplates `xml:"-"`
// FilterCriteria []MDOTypeRef `xml:"filterCriteria"`
CommonModules []*CommonModule `xml:"-"`
// CommonAttributes []MDOTypeRef `xml:"commonAttributes"`
ExchangePlans []*ExchangePlan `xml:"-"`
// XDTOPackages []MDOTypeRef `xml:"xDTOPackages"`
// WebServices []MDOTypeRef `xml:"webServices"`
// HttpServices []MDOTypeRef `xml:"httpServices"`
// WsReferences []MDOTypeRef `xml:"wsReferences"`
EventSubscriptions []*EventSubscription `xml:"-"`
// ScheduledJobs []MDOTypeRef `xml:"scheduledJobs"`
// SettingsStorages []MDOTypeRef `xml:"settingsStorages"`
// FunctionalOptions []MDOTypeRef `xml:"functionalOptions"`
// FunctionalOptionsParameters []MDOTypeRef `xml:"functionalOptionsParameters"`
// DefinedTypes []MDOTypeRef `xml:"definedTypes"`
// CommonCommands []MDOTypeRef `xml:"commonCommands"`
// CommandGroups []MDOTypeRef `xml:"commandGroups"`
// Constants []MDOTypeRef `xml:"constants"`
// CommonForms []MDOTypeRef `xml:"commonForms"`
// CatalogsNames []MDOTypeRef `xml:"catalogs"`
Catalogs []*Catalog `xml:"-"`
Documents []*Document `xml:"-"`
// DocumentNumerators []MDOTypeRef `xml:"documentNumerators"`
// DocumentJournals []MDOTypeRef `xml:"documentJournals"`
// Enums []MDOTypeRef `xml:"enums"`
Reports []*Report `xml:"-"`
// DataProcessors []MDOTypeRef `xml:"dataProcessors"`
InformationRegisters []*InformationRegister `xml:"-"`
// AccumulationRegisters []MDOTypeRef `xml:"accumulationRegisters"`
ChartsOfCharacteristicTypes []*ChartOfCharacteristicType `xml:"-"`
// BusinessProcesses []MDOTypeRef `xml:"businessProcesses"`
// Tasks []MDOTypeRef `xml:"tasks"`
ConfigurationChildObjects
// contains filtered or unexported fields
}
func UnpackConfiguration ¶
func UnpackConfiguration(dir string) (Configuration, error)
func (*Configuration) Unpack ¶
func (conf *Configuration) Unpack(cfg UnpackConfig) error
type ConfigurationChildObjects ¶ added in v0.0.5
type ConfigurationChildObjects struct {
Subsystems MDOTypeRefList `xml:"subsystems"`
StyleItems MDOTypeRefList `xml:"styleItems"`
Styles MDOTypeRefList `xml:"styles"`
CommonPictures MDOTypeRefList `xml:"commonPictures"`
SessionParameters MDOTypeRefList `xml:"sessionParameters"`
Roles MDOTypeRefList `xml:"roles"`
CommonTemplates MDOTypeRefList `xml:"commonTemplates"`
FilterCriteria MDOTypeRefList `xml:"filterCriteria"`
CommonModules MDOTypeRefList `xml:"commonModules"`
CommonAttributes MDOTypeRefList `xml:"commonAttributes"`
ExchangePlans MDOTypeRefList `xml:"exchangePlans"`
XDTOPackages MDOTypeRefList `xml:"xDTOPackages"`
WebServices MDOTypeRefList `xml:"webServices"`
HttpServices MDOTypeRefList `xml:"httpServices"`
WsReferences MDOTypeRefList `xml:"wsReferences"`
EventSubscriptions MDOTypeRefList `xml:"eventSubscriptions"`
ScheduledJobs MDOTypeRefList `xml:"scheduledJobs"`
SettingsStorages MDOTypeRefList `xml:"settingsStorages"`
FunctionalOptions MDOTypeRefList `xml:"functionalOptions"`
FunctionalOptionsParameters MDOTypeRefList `xml:"functionalOptionsParameters"`
DefinedTypes MDOTypeRefList `xml:"definedTypes"`
CommonCommands MDOTypeRefList `xml:"commonCommands"`
CommandGroups MDOTypeRefList `xml:"commandGroups"`
Constants MDOTypeRefList `xml:"constants"`
CommonForms MDOTypeRefList `xml:"commonForms"`
Catalogs MDOTypeRefList `xml:"catalogs"`
Documents MDOTypeRefList `xml:"documents"`
DocumentNumerators MDOTypeRefList `xml:"documentNumerators"`
Sequences MDOTypeRefList `xml:"sequences"`
DocumentJournals MDOTypeRefList `xml:"documentJournals"`
Enums MDOTypeRefList `xml:"enums"`
Reports MDOTypeRefList `xml:"reports"`
DataProcessors MDOTypeRefList `xml:"dataProcessors"`
InformationRegisters MDOTypeRefList `xml:"informationRegisters"`
AccumulationRegisters MDOTypeRefList `xml:"accumulationRegisters"`
ChartsOfCharacteristicTypes MDOTypeRefList `xml:"chartsOfCharacteristicTypes"`
ChartsOfAccounts MDOTypeRefList `xml:"chartsOfAccounts"`
AccountingRegisters MDOTypeRefList `xml:"accountingRegisters"`
ChartsOfCalculationTypes MDOTypeRefList `xml:"chartsOfCalculationTypes"`
CalculationRegisters MDOTypeRefList `xml:"calculationRegisters"`
BusinessProcesses MDOTypeRefList `xml:"businessProcesses"`
Tasks MDOTypeRefList `xml:"tasks"`
}
func (ConfigurationChildObjects) GetChildByType ¶ added in v0.1.7
func (o ConfigurationChildObjects) GetChildByType(mdoType MDOType) *MDOTypeRefList
Возвращает раздел не распаковоанных объектов метаданных по имени типа
type ConfigurationProperties ¶ added in v0.0.7
type ConfigurationProperties struct {
ConfigurationExtensionCompatibilityMode string `xml:"configurationExtensionCompatibilityMode,omitempty"`
DefaultRunMode string `xml:"defaultRunMode,omitempty"`
UsePurposes []string `xml:"usePurposes,omitempty"`
ScriptVariant string `xml:"scriptVariant,omitempty"`
DefaultRoles MDOTypeRefList `xml:"defaultRoles,omitempty"`
Vendor string `xml:"vendor,omitempty"`
Version string `xml:"version,omitempty"`
UpdateCatalogAddress string `xml:"updateCatalogAddress,omitempty"`
UseManagedFormInOrdinaryApplication string `xml:"useManagedFormInOrdinaryApplication,omitempty"`
UseOrdinaryFormInManagedApplication string `xml:"useOrdinaryFormInManagedApplication,omitempty"`
ReportsVariantsStorage string `xml:"reportsVariantsStorage,omitempty"`
DefaultReportForm MDOTypeRef `xml:"defaultReportForm,omitempty"`
DefaultReportVariantForm MDOTypeRef `xml:"defaultReportVariantForm,omitempty"`
DefaultReportSettingsForm MDOTypeRef `xml:"defaultReportSettingsForm,omitempty"`
DefaultSearchForm MDOTypeRef `xml:"defaultSearchForm,omitempty"`
UsedMobileApplicationFunctionalities *MobileApplicationFunctionalities `xml:"usedMobileApplicationFunctionalities,omitempty"`
RequiredMobileApplicationPermissions []string `xml:"requiredMobileApplicationPermissions,omitempty"`
MainSectionPicture string `xml:"mainSectionPicture,allowempty"`
DefaultLanguage MDOTypeRef `xml:"defaultLanguage,omitempty"`
BriefInformation ObjectKeyValueType `xml:"briefInformation,omitempty"`
DetailedInformation ObjectKeyValueType `xml:"detailedInformation,omitempty"`
Splash string `xml:"splash,omitempty,allowempty"`
Copyright ObjectKeyValueType `xml:"copyright,omitempty"`
VendorInformationAddress ObjectKeyValueType `xml:"vendorInformationAddress,omitempty"`
ConfigurationInformationAddress ObjectKeyValueType `xml:"configurationInformationAddress,omitempty"`
DataLockControlMode string `xml:"dataLockControlMode,omitempty"`
ObjectAutonumerationMode string `xml:"objectAutonumerationMode,omitempty"`
SynchronousExtensionAndAddInCallUseMode string `xml:"synchronousExtensionAndAddInCallUseMode,omitempty"`
SynchronousPlatformExtensionAndAddInCallUseMode string `xml:"synchronousPlatformExtensionAndAddInCallUseMode,omitempty"`
ModalityUseMode string `xml:"modalityUseMode,omitempty"`
InterfaceCompatibilityMode string `xml:"interfaceCompatibilityMode,omitempty"`
CompatibilityMode string `xml:"compatibilityMode,omitempty"`
}
type ContainedObject ¶ added in v0.0.5
type Dimension ¶ added in v0.0.10
type Dimension struct {
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
Type struct {
Types string `xml:"types"`
} `xml:"type"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
MinValue struct {
Type string `xml:"type,attr"`
} `xml:"minValue"`
MaxValue struct {
Type string `xml:"type,attr"`
} `xml:"maxValue"`
FullTextSearch string `xml:"fullTextSearch"`
DataHistory string `xml:"dataHistory"`
FillFromFillingValue string `xml:"fillFromFillingValue"`
FillValue AttributeTypedValue `xml:"fillValue"`
Master string `xml:"master"`
MainFilter string `xml:"mainFilter"`
}
type Document ¶ added in v0.0.2
type Document struct {
MDOBaseType
XMLName xml.Name `xml:"Document"`
ProducedTypes MDOProducedTypes `xml:"producedTypes"`
UseStandardCommands bool `xml:"useStandardCommands"`
InputByString MDOTypeRef `xml:"inputByString"`
FullTextSearchOnInputByString string `xml:"fullTextSearchOnInputByString"`
CreateOnInput string `xml:"createOnInput"`
DataLockControlMode string `xml:"dataLockControlMode"`
FullTextSearch string `xml:"fullTextSearch"`
NumberType string `xml:"numberType"`
NumberLength string `xml:"numberLength"`
NumberAllowedLength string `xml:"numberAllowedLength"`
CheckUnique bool `xml:"checkUnique"`
Autonumbering bool `xml:"autonumbering"`
DefaultObjectForm MDOTypeRef `xml:"defaultObjectForm"`
DefaultListForm MDOTypeRef `xml:"defaultListForm"`
DefaultChoiceForm MDOTypeRef `xml:"defaultChoiceForm"`
RegisterRecords MDOTypeRefList `xml:"registerRecords"`
PostInPrivilegedMode bool `xml:"postInPrivilegedMode"`
UnpostInPrivilegedMode bool `xml:"unpostInPrivilegedMode"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
Attributes []Attribute `xml:"attributes"`
Forms []Form `xml:"forms"`
TabularSections []TabularSection `xml:"tabularSections"`
Commands []Command `xml:"commands"`
}
type EventSubscription ¶ added in v0.1.0
type EventSubscription struct {
MDOBaseType
XMLName xml.Name `xml:"EventSubscription"`
Mdclass string `xml:"mdclass,attr"`
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
Source Source `xml:"source"`
Event string `xml:"event"`
Handler string `xml:"handler"`
}
type ExchangePlan ¶ added in v0.1.0
type ExchangePlan struct {
MDOBaseType
XMLName xml.Name `xml:"ExchangePlan"`
Xsi string `xml:"xsi,attr"`
Core string `xml:"core,attr"`
Mdclass string `xml:"mdclass,attr"`
Uuid string `xml:"uuid,attr"`
ThisNode string `xml:"thisNode,attr"`
ProducedTypes MDOProducedTypes `xml:"producedTypes"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
UseStandardCommands string `xml:"useStandardCommands"`
InputByString []string `xml:"inputByString"`
FullTextSearchOnInputByString string `xml:"fullTextSearchOnInputByString"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
CreateOnInput string `xml:"createOnInput"`
DataLockFields string `xml:"dataLockFields"`
DataLockControlMode string `xml:"dataLockControlMode"`
FullTextSearch string `xml:"fullTextSearch"`
ObjectPresentation ObjectKeyValueType `xml:"objectPresentation"`
ListPresentation ObjectKeyValueType `xml:"listPresentation"`
CodeLength string `xml:"codeLength"`
CodeAllowedLength string `xml:"codeAllowedLength"`
DescriptionLength string `xml:"descriptionLength"`
Content Content `xml:"content"`
DefaultPresentation string `xml:"defaultPresentation"`
EditType string `xml:"editType"`
ChoiceMode string `xml:"choiceMode"`
Attributes []Attribute `xml:"attributes"`
}
type Form ¶ added in v0.0.7
type Form struct {
MDOBaseType
UsePurposes []string `xml:"usePurposes"`
}
type Help ¶ added in v0.0.10
type Help struct {
Pages struct {
Lang string `xml:"lang"`
} `xml:"pages"`
}
type InformationRegister ¶ added in v0.0.10
type InformationRegister struct {
XMLName xml.Name `xml:"InformationRegister"`
Xsi string `xml:"xsi,attr"`
Core string `xml:"core,attr"`
Mdclass string `xml:"mdclass,attr"`
Uuid string `xml:"uuid,attr"`
ProducedTypes ProducedTypes `xml:"producedTypes"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
UseStandardCommands string `xml:"useStandardCommands"`
DefaultRecordForm string `xml:"defaultRecordForm"`
DefaultListForm string `xml:"defaultListForm"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
InformationRegisterPeriodicity string `xml:"informationRegisterPeriodicity"`
MainFilterOnPeriod string `xml:"mainFilterOnPeriod"`
Help Help `xml:"help"`
RecordPresentation ObjectKeyValueType `xml:"recordPresentation"`
ListPresentation ObjectKeyValueType `xml:"listPresentation"`
Explanation ObjectKeyValueType `xml:"explanation"`
Resources []Resource `xml:"resources"`
Dimensions []Dimension `xml:"dimensions"`
Forms []Form `xml:"forms"`
}
type Language ¶ added in v0.0.5
type Language struct {
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym []ObjectKeyValueType `xml:"synonym"`
LanguageCode string `xml:"languageCode"`
}
type MDOBaseType ¶ added in v0.0.5
type MDOProducedTypes ¶ added in v0.0.7
type MDOProducedTypes struct {
ObjectType ObjectTypeRef `xml:"objectType"`
RefType ObjectTypeRef `xml:"refType"`
SelectionType ObjectTypeRef `xml:"selectionType"`
ListType ObjectTypeRef `xml:"listType"`
ManagerType ObjectTypeRef `xml:"managerType"`
}
MDOProducedTypes - описание типов объекта метаданных
type MDOType ¶ added in v0.0.5
type MDOType string
const ( UNKNOWN MDOType = "" REF MDOType = "_RefType_" ACCOUNTING_REGISTER MDOType = "AccountingRegister" ACCUMULATION_REGISTER MDOType = "AccumulationRegister" // "AccumulationRegisters", "РегистрНакопления", "РегистрыНакопления"), BUSINESS_PROCESS MDOType = "BusinessProcess" // "BusinessProcesses", "БизнесПроцесс", "БизнесПроцессы"), CALCULATION_REGISTER MDOType = "CalculationRegister" //, "CalculationRegisters", "РегистрРасчета", "РегистрыРасчета"), CATALOG MDOType = "Catalog" //, "Catalogs", "Справочник", "Справочники"), CHART_OF_ACCOUNTS MDOType = "ChartOfAccounts" //, "ChartsOfAccounts", "ПланСчетов", "ПланыСчетов"), CHART_OF_CALCULATION_TYPES MDOType = "ChartOfCalculationTypes" //, "ChartsOfCalculationTypes", "ПланВидовРасчета", "ПланыВидовРасчета"), CHART_OF_CHARACTERISTIC_TYPES MDOType = "ChartOfCharacteristicTypes" //, "ChartsOfCharacteristicTypes", "ПланВидовХарактеристик", "ПланыВидовХарактеристик"), COMMAND_GROUP MDOType = "CommandGroup" //, "CommandGroups", "ГруппаКоманд", "ГруппыКоманд"), COMMON_ATTRIBUTE MDOType = "CommonAttribute" //, "CommonAttributes", "ОбщийРеквизит", "ОбщиеРеквизиты"), COMMON_COMMAND MDOType = "CommonCommand" //, "CommonCommands", "ОбщаяКоманда", "ОбщиеКоманды"), COMMON_FORM MDOType = "CommonForm" //, "CommonForms", "ОбщаяФорма", "ОбщиеФормы"), COMMON_MODULE MDOType = "CommonModule" //, "CommonModules", "ОбщийМодуль", "ОбщиеМодули"), COMMON_PICTURE MDOType = "CommonPicture" //, "CommonPictures", "ОбщаяКартинка", "ОбщиеКартинки"), COMMON_TEMPLATE MDOType = "CommonTemplate" //, "CommonTemplates", "ОбщийМакет", "ОбщиеМакеты"), CONFIGURATION MDOType = "Configuration" //, "", "Конфигурация", ""), CONSTANT MDOType = "Constant" //, "Constants", "Константа", "Константы"), DATA_PROCESSOR MDOType = "DataProcessor" //, "DataProcessors", "Обработка", "Обработки"), DEFINED_TYPE MDOType = "DefinedType" //, "DefinedTypes", "ОпределяемыйТип", "ОпределяемыеТипы"), DOCUMENT_JOURNAL MDOType = "DocumentJournal" //, "DocumentJournals", "ЖурналДокументов", "ЖурналыДокументов"), DOCUMENT_NUMERATOR MDOType = "DocumentNumerator" //, "DocumentNumerators", "Нумератор", "Нумераторы"), DOCUMENT MDOType = "Document" //, "Documents", "Документ", "Документы"), ENUM MDOType = "Enum" //, "Enums", "Перечисление", "Перечисления"), EVENT_SUBSCRIPTION MDOType = "EventSubscription" //, "EventSubscriptions", "ПодпискаНаСобытие", "ПодпискиНаСобытия"), EXCHANGE_PLAN MDOType = "ExchangePlan" //, "ExchangePlans", "ПланОбмена", "ПланыОбмена"), FILTER_CRITERION MDOType = "FilterCriterion" //, "FilterCriteria", "КритерийОтбора", "КритерииОтбора"), FUNCTIONAL_OPTION MDOType = "FunctionalOption" //, "FunctionalOptions", "ФункциональнаяОпция", "ФункциональныеОпции"), FUNCTIONAL_OPTIONS_PARAMETER MDOType = "FunctionalOptionsParameter" //, "FunctionalOptionsParameters", "ПараметрФункциональныхОпций", "ПараметрыФункциональныхОпций"), HTTP_SERVICE MDOType = "HTTPService" //, "HTTPServices", "HTTPСервис", "HTTPСервисы"), INFORMATION_REGISTER MDOType = "InformationRegister" //, "InformationRegisters", "РегистрСведений", "РегистрыСведений"), INTERFACE MDOType = "Interface" //, "Interfaces", "Интерфейс", "Интерфейсы"), LANGUAGE MDOType = "Language" //, "Languages", "Язык", "Языки"), REPORT MDOType = "Report" //, "Reports", "Отчет", "Отчеты"), ROLE MDOType = "Role" //, "Roles", "Роль", "Роли"), SCHEDULED_JOB MDOType = "ScheduledJob" //, "ScheduledJobs", "РегламентноеЗадание", "РегламентныеЗадания"), SEQUENCE MDOType = "Sequence" //, "Sequences", "Последовательность", "Последовательности"), SESSION_PARAMETER MDOType = "SessionParameter" //, "SessionParameters", "ПараметрСеанса", "ПараметрыСеанса"), SETTINGS_STORAGE MDOType = "SettingsStorage" //, "SettingsStorages", "ХранилищеНастроек", "ХранилищаНастроек"), STYLE_ITEM MDOType = "StyleItem" //, "StyleItems", "ЭлементСтиля", "ЭлементыСтиля"), STYLE MDOType = "Style" //, "Styles", "Стиль", "Стили"), SUBSYSTEM MDOType = "Subsystem" //, "Subsystems", "Подсистема", "Подсистемы"), TASK MDOType = "Task" //, "Tasks", "Задача", "Задачи"), WEB_SERVICE MDOType = "WebService" //, "WebServices", "WebСервис", "WebСервисы"), WS_REFERENCE MDOType = "WSReference" //, "WSReferences", "WSСсылка", "WSСсылки"), XDTO_PACKAGE MDOType = "XDTOPackage" //, "XDTOPackages", "ПакетXDTO", "ПакетыXDTO"), FORM MDOType = "Form" //, "Forms", "Форма", "Формы"), COMMAND MDOType = "Command" //, "Commands", "Команда", "Команды"), TEMPLATE MDOType = "Template" //, "Templates", "Макет", "Макеты"), ATTRIBUTE MDOType = "Attribute" //, "Attributes", "Реквизит", "Реквизиты"), RECALCULATION MDOType = "Recalculation" //, "Recalculations", "Перерасчет", "Перерасчеты"), WS_OPERATION MDOType = "Operation" //, "Operations", "Операция", "Операции"), HTTP_SERVICE_URL_TEMPLATE MDOType = "URLTemplate" //, "URLTemplates", "ШаблонURL", "ШаблоныURL"), HTTP_SERVICE_METHOD MDOType = "Method" //, "Methods", "Метод", "Методы"), )
func (MDOType) MarshalText ¶ added in v0.0.5
func (*MDOType) UnmarshalText ¶ added in v0.0.5
type MDOTypeRef ¶ added in v0.0.5
type MDOTypeRef struct {
// contains filtered or unexported fields
}
func NewMDOTypeRef ¶ added in v0.1.3
func NewMDOTypeRef(modType MDOType, ref string, parent MDOTypeRef) MDOTypeRef
func NewMDOTypeRefFromString ¶ added in v0.0.7
func NewMDOTypeRefFromString(raw string) MDOTypeRef
func (MDOTypeRef) Dir ¶ added in v0.0.7
func (m MDOTypeRef) Dir() string
func (MDOTypeRef) Empty ¶ added in v0.0.7
func (m MDOTypeRef) Empty() bool
func (MDOTypeRef) Filename ¶ added in v0.0.7
func (m MDOTypeRef) Filename() string
func (MDOTypeRef) GetPath ¶ added in v0.1.0
func (m MDOTypeRef) GetPath() string
func (MDOTypeRef) IsNull ¶ added in v0.0.5
func (m MDOTypeRef) IsNull() bool
func (MDOTypeRef) MarshalText ¶ added in v0.0.5
func (m MDOTypeRef) MarshalText() ([]byte, error)
func (MDOTypeRef) Parent ¶ added in v0.0.5
func (m MDOTypeRef) Parent() MDORef
func (MDOTypeRef) Ref ¶ added in v0.0.5
func (m MDOTypeRef) Ref() string
func (MDOTypeRef) String ¶ added in v0.0.5
func (m MDOTypeRef) String() string
func (MDOTypeRef) Type ¶ added in v0.0.5
func (m MDOTypeRef) Type() MDOType
func (*MDOTypeRef) UnmarshalText ¶ added in v0.0.5
func (m *MDOTypeRef) UnmarshalText(text []byte) error
func (MDOTypeRef) Unpack ¶ added in v0.0.7
func (m MDOTypeRef) Unpack(cfg UnpackConfig, value interface{}) error
type MDOTypeRefList ¶ added in v0.0.7
type MDOTypeRefList []MDOTypeRef
func (MDOTypeRefList) Delete ¶ added in v0.0.9
func (e MDOTypeRefList) Delete(index int) ([]MDOTypeRef, error)
Удаляет элемент по индексу
func (MDOTypeRefList) Exist ¶ added in v0.0.9
func (e MDOTypeRefList) Exist(typeRef MDOTypeRef) bool
Проверяет существование объекта.
func (MDOTypeRefList) GetByName ¶ added in v0.1.0
func (e MDOTypeRefList) GetByName(name string) (MDOTypeRef, error)
Возвращает элемент по имени
func (MDOTypeRefList) GetIndex ¶ added in v0.0.9
func (e MDOTypeRefList) GetIndex(typeRef MDOTypeRef) int
Возвращает индекс элемента в массиве
func (MDOTypeRefList) Unpack ¶ added in v0.0.7
func (e MDOTypeRefList) Unpack(cfg UnpackConfig, value interface{}) error
type MobileApplicationFunctionalities ¶ added in v0.0.7
type MobileApplicationFunctionalities struct {
Functionality []MobileApplicationFunctionality `xml:"functionality,omitempty"`
}
type MobileApplicationFunctionality ¶ added in v0.0.7
type ObjectKeyValueType ¶ added in v0.0.4
type ObjectKeyValueType struct {
Key string `xml:"key,omitempty"`
Value string `xml:"value,omitempty"`
}
func (ObjectKeyValueType) IsNull ¶ added in v0.0.4
func (v ObjectKeyValueType) IsNull() bool
type ObjectTypeRef ¶ added in v0.0.2
type Predefined ¶ added in v0.0.10
type ProducedTypes ¶ added in v0.0.10
type ProducedTypes struct {
SelectionType ObjectTypeRef `xml:"selectionType"`
ListType ObjectTypeRef `xml:"listType"`
ManagerType ObjectTypeRef `xml:"managerType"`
RecordSetType ObjectTypeRef `xml:"recordSetType"`
RecordKeyType ObjectTypeRef `xml:"recordKeyType"`
RecordType ObjectTypeRef `xml:"recordType"`
RecordManagerType ObjectTypeRef `xml:"recordManagerType"`
}
type Report ¶ added in v0.0.10
type Report struct {
XMLName xml.Name `xml:"Report"`
Mdclass string `xml:"mdclass,attr"`
Uuid string `xml:"uuid,attr"`
ProducedTypes MDOProducedTypes `xml:"producedTypes"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
DefaultForm string `xml:"defaultForm"`
MainDataCompositionSchema string `xml:"mainDataCompositionSchema"`
DefaultSettingsForm string `xml:"defaultSettingsForm"`
DefaultVariantForm string `xml:"defaultVariantForm"`
Help Help `xml:"help"`
Templates struct {
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
TemplateType string `xml:"templateType"`
} `xml:"templates"`
}
type Resource ¶ added in v0.0.10
type Resource struct {
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym AttributeTypedValue `xml:"synonym"`
Type struct {
Types []string `xml:"types"`
} `xml:"type"`
ToolTip AttributeTypedValue `xml:"toolTip"`
MinValue struct {
Type string `xml:"type,attr"`
} `xml:"minValue"`
MaxValue struct {
Type string `xml:"type,attr"`
} `xml:"maxValue"`
FillChecking string `xml:"fillChecking"`
ChoiceParameters struct {
Name string `xml:"name"`
Value AttributeTypedValue `xml:"value"`
} `xml:"choiceParameters"`
FullTextSearch string `xml:"fullTextSearch"`
DataHistory string `xml:"dataHistory"`
FillFromFillingValue string `xml:"fillFromFillingValue"`
FillValue AttributeTypedValue `xml:"fillValue"`
}
type StandardAttribute ¶ added in v0.0.7
type StandardAttribute struct {
Name string `xml:"name"`
DataHistory string `xml:"dataHistory"`
FillValue AttributeTypedValue `xml:"fillValue"`
FullTextSearch string `xml:"fullTextSearch"`
MinValue AttributeTypedValue `xml:"minValue"`
MaxValue AttributeTypedValue `xml:"maxValue"`
FillFromFillingValue string `xml:"fillFromFillingValue"`
FillChecking string `xml:"fillChecking"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
}
StandardAttribute - стандартные реквизиты
type Subsystem ¶
type Subsystem struct {
MDOBaseType
SubsystemChildSubsystems
XMLName xml.Name `xml:"Subsystem"`
IncludeHelpInContents bool `xml:"includeHelpInContents"`
IncludeInCommandInterface bool `xml:"includeInCommandInterface"`
Subsystems []*Subsystem `xml:"-"`
Content MDOTypeRefList `xml:"content"`
ParentSubsystem MDOTypeRef `xml:"parentSubsystem"`
}
func (Subsystem) GetContents ¶ added in v0.1.0
func (c Subsystem) GetContents() MDOTypeRefList
func (*Subsystem) Unpack ¶
func (conf *Subsystem) Unpack(cfg UnpackConfig) error
type SubsystemChildSubsystems ¶ added in v0.0.7
type SubsystemChildSubsystems struct {
Subsystems []string `xml:"subsystems"`
}
type TabularSection ¶ added in v0.0.7
type TabularSection struct {
MDOBaseType
ProducedTypes TabularSectionProducedTypes `xml:"producedTypes"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
Attributes []Attribute `xml:"attributes"`
}
TabularSection - Табличные части
type TabularSectionProducedTypes ¶ added in v0.0.7
type TabularSectionProducedTypes struct {
ObjectType ObjectTypeRef `xml:"objectType"`
RowType ObjectTypeRef `xml:"rowType"`
}
TabularSectionProducedTypes - описание типов табличной части
type UnpackConfig ¶
func NewUnpackConfig ¶
func NewUnpackConfig(base string) UnpackConfig
func (UnpackConfig) HasUnpacked ¶
func (cfg UnpackConfig) HasUnpacked(ref MDOTypeRef) (interface{}, bool)
func (UnpackConfig) StoreUnpacked ¶
func (cfg UnpackConfig) StoreUnpacked(ref MDOTypeRef, value interface{})
func (UnpackConfig) WithPath ¶
func (cfg UnpackConfig) WithPath(path string) UnpackConfig
type Unpacker ¶
type Unpacker interface {
Unpack(cfg UnpackConfig) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.