⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 z3950v3.asn

📁 ASN.1工具源代码,包括编译源码生成工具和各种基本类型构造类型的编解码实现代码
💻 ASN
📖 第 1 页 / 共 5 页
字号:
scan     [1008] CHOICE{      -- scan diagnostics:              nonZeroStepSize  [0] IMPLICIT NULL,  -- only zero step size supported              specifiedStepSize  [1] IMPLICIT NULL,  -- specified step size not supported              termList1      [3] IMPLICIT NULL,  -- term list not supported (no alternative supplied)              termList2      [4] IMPLICIT SEQUENCE OF AttributeList,                                          -- term list not supported (alternatives supplied)              posInResponse    [5] IMPLICIT INTEGER{  --value of positionInResponse not supported                              mustBeOne        (1),                              mustBePositive    (2),                              mustBeNonNegative  (3),                              other            (4)},              resources      [6] IMPLICIT NULL,   -- resources exhausted looking for satisfying terms              endOfList      [7] IMPLICIT NULL  -- beginning or end of term list                },sort       [1009] CHOICE{              sequence    [0]  IMPLICIT NULL,        -- cannot sort according to sequence              noRsName    [1]  IMPLICIT NULL,        -- no result set name supplied              tooMany    [2]  IMPLICIT INTEGER,      --  Too many input result sets,                                                --  maximum supplied.              incompatible  [3]  IMPLICIT NULL,        -- records with different formats                                                 -- not compatible for sorting              generic      [4]  IMPLICIT NULL,        -- generic sort not supported                                                 -- (db specific only)              dbSpecific    [5]  IMPLICIT NULL,        -- db specific sort not supported              sortElement    [6]  SortElement,              key        [7]  IMPLICIT INTEGER{                              tooMany  (1),    -- too many sort keys                              duplicate  (2)},    -- duplicate sort keys              action      [8]  IMPLICIT NULL,  -- unsupported missing data action              illegal      [9]  IMPLICIT INTEGER{                              relation  (1),  -- illegal sort relation                              case    (2),  -- illegal case value                              action  (3),   -- illegal missing data action                              sort    (4)},  -- illegal sort            inputTooLarge    [10]  IMPLICIT SEQUENCE OF InternationalString,                                      --   one or more of the input result sets too large to sort          aggregateTooLarge  [11]  IMPLICIT NULL  --  aggregate result set too large                          },segmentation  [1010]  CHOICE{                segmentCount  [0]    IMPLICIT NULL,                                  -- Cannot guarantee record will fit within max segments. Target                                  -- suggests that origin try again to retrieve record, without                                  -- including max-segment-count.                segmentSize  [1]    IMPLICIT INTEGER                                -- record cannot be segmented into fragments such that the largest                                -- will fit within max segment size specified. Target supplies (in                                -- bytes) the smallest acceptable value of Max-segment-size to                                -- retrieve the record.                          },extServices  [1011] CHOICE{                req        [1] IMPLICIT INTEGER{   -- bad request                            nameInUse    (1),  -- package name already in use                            noSuchName  (2),  -- no such package, on modify/delete                            quota        (3),  -- quota exceeded                            type        (4)},  -- extended service type not supported                permission  [2] IMPLICIT INTEGER{ -- permission denied on ES, because:                             id         (1),    --   id not authorized, or                            modifyDelete  (2)},    -- cannot modify or delete                immediate  [3] IMPLICIT INTEGER{ -- immediate execution:                            failed      (1),    -- failed,                             service      (2),    -- not supported for this service, or                            parameters    (3)    -- for these parameters.                                }},accessCtrl    [1012] CHOICE{                noUser    [1] IMPLICIT NULL,    -- no user to display challenge to                refused    [2] IMPLICIT NULL,    -- access control information refused by user                simple    [3] IMPLICIT NULL,    -- only simple form supported (target used                                          -- externally defined)                oid      [4] IMPLICIT SEQUENCE OF OBJECT IDENTIFIER,                                          -- oid not supported (origin supplies alternative                                          -- suggested oids)                alternative  [5] IMPLICIT SEQUENCE OF OBJECT IDENTIFIER,                                          -- origin insists that target use an alternative                                          -- challenge for this data (e.g. stronger                                                                                  -- authentication or stronger Access control). The                                          -- origin supplies suggested alternative oids.                pwdInv    [6] IMPLICIT NULL,    -- password invalid                pwdExp    [7] IMPLICIT NULL      -- password expired                    },recordSyntax  [1013] IMPLICIT SEQUENCE{ -- record cannot be transferred in requested syntax              unsupportedSyntax    [1] IMPLICIT OBJECT IDENTIFIER,               suggestedAlternatives  [2] IMPLICIT SEQUENCE OF OBJECT IDENTIFIER OPTIONAL}}ENDRecordSyntax-explain {z39-50-recordSyntax explain (100)} DEFINITIONS ::=BEGIN IMPORTS AttributeSetId, Term, OtherInformation, DatabaseName, ElementSetName, IntUnit, Unit, StringOrNumeric, Specification, InternationalString, AttributeList, AttributeElement FROM Z39-50-APDU-1995;Explain-Record ::= CHOICE{  -- Each of these may be used as search term  when Use attribute is 'explain-category'.  targetInfo         [0]    IMPLICIT TargetInfo,  databaseInfo      [1]    IMPLICIT DatabaseInfo,  schemaInfo        [2]    IMPLICIT SchemaInfo,  tagSetInfo         [3]    IMPLICIT TagSetInfo,  recordSyntaxInfo    [4]    IMPLICIT RecordSyntaxInfo,  attributeSetInfo    [5]    IMPLICIT AttributeSetInfo,  termListInfo      [6]    IMPLICIT TermListInfo,  extendedServicesInfo  [7]    IMPLICIT ExtendedServicesInfo,  attributeDetails      [8]    IMPLICIT AttributeDetails,  termListDetails    [9]    IMPLICIT TermListDetails,  elementSetDetails    [10]  IMPLICIT ElementSetDetails,  retrievalRecordDetails  [11]   IMPLICIT RetrievalRecordDetails,  sortDetails             [12]   IMPLICIT SortDetails,  processing           [13]  IMPLICIT ProcessingInformation,  variants          [14]  IMPLICIT VariantSetInfo,  units          [15]    IMPLICIT UnitInfo,  categoryList            [100]  IMPLICIT CategoryList}-- Element set name 'B' (brief)  retrieves:--  -  'commonInfo' (except for otherInfo within commonInfo)--  -  key elements--  -  other elements designated as 'non-key brief elements'-- Esn 'description' retrieves brief elements as well as 'description', and specific additional descriptive-- elements if designated.  -- Element set name 'F' (full) retrieves all of the above, as well as those designated as "non-brief elements". Some-- elements designated as OPTIONAL may be mandatory in full records, and are so identified. (Note that all elements-- that are not part of the brief element set must be designated as OPTIONAL in the ASN.1, otherwise it would be-- illegal to omit them.)-- Other esns are defined (below) as needed.-- - - - - - - - - - - - -   Info Records  -- Info records are mainly for software consumption  -- They describe individual entities within the target system:  --   The target itself  --   Individual databases  --   Schemas  --   Tag sets  --   Record syntaxes  --   Attribute sets  --   Term lists  --   Extended services --     The information about each Schema, Tag Set, Record Syntax and Attribute Set should  -- match the universal definitions of these items. The only exception is that a target may omit any  -- items it doesn't support, for example the description of the bib-1 attribute set may omit attributes  -- that the target does not support under any circumstances.  --      Databases that may be searched together can be listed in the dbCominations element of the TargetInfo record.  TargetInfo ::= SEQUENCE {  commonInfo      [0]    IMPLICIT CommonInfo OPTIONAL,    -- Key elements follow:  name          [1]    IMPLICIT InternationalString,    -- Non-key brief elements follow:  recent-news      [2]    IMPLICIT HumanString OPTIONAL,  icon          [3]    IMPLICIT IconObject OPTIONAL,  namedResultSets    [4]    IMPLICIT BOOLEAN,  multipleDBsearch    [5]    IMPLICIT BOOLEAN,  maxResultSets      [6]    IMPLICIT INTEGER OPTIONAL,  maxResultSize      [7]    IMPLICIT INTEGER OPTIONAL,  maxTerms        [8]    IMPLICIT INTEGER OPTIONAL,  timeoutInterval      [9]    IMPLICIT IntUnit OPTIONAL,  welcomeMessage    [10]  IMPLICIT HumanString OPTIONAL,    -- non-brief elements follow:  -- 'description' esn retrieves the following two (as well as brief):  contactInfo      [11]  IMPLICIT ContactInfo OPTIONAL,  description      [12]  IMPLICIT HumanString OPTIONAL,  nicknames        [13]  IMPLICIT SEQUENCE OF InternationalString OPTIONAL,  usage-restrictions    [14]  IMPLICIT HumanString OPTIONAL,  paymentAddr      [15]  IMPLICIT HumanString OPTIONAL,  hours          [16]  IMPLICIT HumanString OPTIONAL,  dbCombinations    [17]  IMPLICIT SEQUENCE OF DatabaseList OPTIONAL,  addresses        [18]  IMPLICIT SEQUENCE OF NetworkAddress OPTIONAL,  languages        [101]  IMPLICIT SEQUENCE OF InternationalString OPTIONAL,                  -- Languages supported for message strings.  Each is a three-character                  -- language code from Z39.53-1994.-- characterSets      [102]  this tag reserved for "character sets supported for name and message strings".  -- commonAccessInfo elements list objects the target supports. All objects listed in  -- AccessInfo for any individual database should also be listed here.  commonAccessInfo  [19]  IMPLICIT AccessInfo OPTIONAL}DatabaseInfo ::= SEQUENCE {      -- A target may provide "virtual databases" that are combinations of individual database. These      -- databases are indicated by the presence of subDbs in the combination database's DatabaseDescription.  commonInfo        [0]    IMPLICIT CommonInfo OPTIONAL,    -- Key elements follow:  name            [1]    IMPLICIT DatabaseName,    -- Non-key brief elements follow:  explainDatabase      [2]             IMPLICIT NULL OPTIONAL,                       -- If present, this database is the Explain database, or an Explain database                    -- for a different server, possibly on a different host. The means by which                    -- that server may be accessed is not addressed by this standard. One                    -- suggested possibility is an implementor agreement whereby the                    -- database name is a url which may be used to connect to the server.  nicknames          [3]    IMPLICIT SEQUENCE OF DatabaseName OPTIONAL,  icon            [4]    IMPLICIT IconObject OPTIONAL,  user-fee          [5]    IMPLICIT BOOLEAN,  available          [6]    IMPLICIT BOOLEAN,  titleString          [7]    IMPLICIT HumanString OPTIONAL,    -- Non-brief elements follow:  keywords          [8]    IMPLICIT SEQUENCE OF HumanString OPTIONAL,  description        [9]    IMPLICIT HumanString OPTIONAL,  associatedDbs        [10]  IMPLICIT DatabaseList OPTIONAL,                    -- databases that may be searched in combination with this one   subDbs          [11]  IMPLICIT DatabaseList OPTIONAL,                        -- When present, this database is a composite representing the combined                     -- databases 'subDbs'. The individual subDbs are also available.  disclaimers        [12]  IMPLICIT HumanString OPTIONAL,  news            [13]  IMPLICIT HumanString OPTIONAL,  recordCount           [14]    CHOICE {                                   actualNumber  [0] IMPLICIT INTEGER,                                    approxNumber  [1] IMPLICIT INTEGER} OPTIONAL,  defaultOrder        [15]  IMPLICIT HumanString OPTIONAL,  avRecordSize        [16]  IMPLICIT INTEGER OPTIONAL,  maxRecordSize      [17]  IMPLICIT INTEGER OPTIONAL,  hours            [18]  IMPLICIT HumanString OPTIONAL,  bestTime          [19]  IMPLICIT HumanString OPTIONAL,  lastUpdate          [20]  IMPLICIT GeneralizedTime OPTIONAL,  updateInterval        [21]  IMPLICIT IntUnit OPTIONAL,  coverage          [22]  IMPLICIT HumanString OPTIONAL,  proprietary        [23]  IMPLICIT BOOLEAN OPTIONAL, -- mandatory in full record  copyrightText        [24]  IMPLICIT HumanString OPTIONAL,  copyrightNotice      [25]  IMPLICIT HumanString OPTIONAL,  producerContactInfo    [26]  IMPLICIT ContactInfo OPTIONAL,  supplierContactInfo      [27]  IMPLICIT ContactInfo OPTIONAL,  submissionContactInfo    [28]  IMPLICIT ContactInfo OPTIONAL,    -- accessInfo lists items connected with the database. All listed items should be in the target's AccessInfo.  accessInfo                [29]  IMPLICIT AccessInfo OPTIONAL}SchemaInfo ::= SEQUENCE {  commonInfo    [0]  IMPLICIT CommonInfo OPTIONAL,    -- Key elements follow:  schema      [1]  IMPLICIT OBJECT IDENTIFIER,    -- Non-key brief elements follow:  name        [2]  IMPLICIT InternationalString,    -- Non-brief elements follow:  description    [3]  IMPLICIT HumanString OPTIONAL,  tagTypeMapping  [4]  IMPLICIT SEQUENCE OF SEQUENCE {              tagType    [0] IMPLICIT INTEGER,              tagSet       [1] IMPLICIT OBJECT IDENTIFIER OPTIONAL,                -- If tagSet is omitted, then this tagType is for a tagSet locally defined                -- within the schema that cannot be referenced by another schema.              defaultTagType  [2] IMPLICIT NULL OPTIONAL                        } OPTIONAL,  recordStructure  [5]  IMPLICIT SEQUENCE OF ElementInfo OPTIONAL}  --  ElementInfo referenced in SchemaInfo and RecordSyntaxInfo    ElementInfo ::= SEQUENCE {      elementName  [1] IMPLICIT InternationalString,      elementTagPath  [2] IMPLICIT Path,      dataType      [3] ElementDataType OPTIONAL, -- If omitted, not specified.        required         [4] IMPLICIT BOOLEAN,      repeatable     [5] IMPLICIT BOOLEAN,       description    [6] IMPLICIT HumanString OPTIONAL}  -- Path is referenced by ElementInfo as well as PerElementDetails             Path ::= SEQUENCE OF SEQUENCE{              tagType  [1] IMPLICIT INTEGER,              tagValue     [2] StringOrNumeric}      ElementDataType ::= CHOICE{            primitive  [0] IMPLICIT PrimitiveDataType,           structured  [1] IMPLICIT SEQUENCE OF ElementInfo}      PrimitiveDataType ::= INTEGER{            pdtoctetString        (0),            pdtnumeric           (1),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -