Glossary Item Box

MEdit Send comments on this topic.

Validate ASN Name Type (container)

Check ASN.1 (container)

Rule Name:

Validate ASN Name Type (container)

Position:

Under: Check ASN.1

Name:

ASN_Name

Default:

Checked

Usage:

A container class for rules dealing with the proper ASN name of the record.  Consult an ASN text book, but a proper valid names (also called a TypeDef because it defines a new type which can then be used by others) starts with a capital alphabetic letter, then may contain mixed case, and numbers, and dashes.  No spaces or other symbols are allowed.  Most current ITS uses a camel case style as in:  MyType

This rule holds several other rules beneath it as follows: 
[ Click on the arrows below to expand the rule and see its detailed information ]

Show AllShow All
Hide AllHide All

ShowDetect White space in around name

 

Rule Name:

Detect White space in around name

Position:

Under: Validate ASN Name Type

Name:

ASN_White

Default:

Checked

Usage:

Checks for, and removes, any white space before or after the records ASN name. If changes were made, a note is added to the log and displayed.

Show Make first char upper case (a proper type name)

 

Rule Name:

Make first char upper case (a proper type name)

Position:

Under: Validate ASN Name Type

Name:

ASN_Upper

Default:

Checked

Usage:

Checks first character of the name; if found to be lower case, the upper case version is used. If changes were made, a note is added to the log and displayed. 

 

A fundamental rule of ASN is that EVERY type definition (this record is such an entry) MUST start with a capital letter.  Instance names of the type def (such as found inside a data frame) are lower case. 

ShowRemove any spaces in name

 

Rule Name:

Remove any spaces in name

Position:

Under: Validate ASN Name Type

Name:

ASN_Spaces

Default:

Checked

Usage:

Checks for any spaces in the name; if found, they are removed. If changes were made, a note is added to the log and displayed. 

 

A fundamental rule of ASN naming is that the name string must not have white space in it.  Observe that ASN itself breaks this rule with primitive type such as “BIT STRING”  - but you are not allowed to.

ShowRemove any invalid chars in name

 

Rule Name:

Remove any invalid chars in name

Position:

Under: Validate ASN Name Type

Name:

ASN_Valid

Default:

Checked

Usage:

Checks the character set used in the name; if any invalid (non-allowed) characters are found, they are translated to something legal. If changes were made, a note is added to the log and displayed. 

 

A fundamental rule of ASN naming is that the name string must not have characters like !@#$%^&*{}|\~`<>? in it

 

ShowWarning on long names

 

Rule Name:

Warning on long names

Position:

Under: Validate ASN Name Type

Name:

ASN_Long

Default:

UN-Checked

Usage:

Check the length of the name; if found to be >25 characters, a nag note is added to the log and displayed. 



 

ShowIf Name is empty, use valid value rule when well formed

 

Rule Name:

If Name is empty, use valid value rule when well formed

Position:

Under: Validate ASN Name Type

Name:

ASN_Blank

Default:

Checked

Usage:

If there is no name (the field is empty) then the valid value rule is examined for a possible name.  In some older databases the valid value rule contains complete entries such as MyThing =::   INTEGER.  If a valid looking name is found, it is stripped out (removed) and placed in the ASN name field. If changes were made, a note is added to the log and displayed along with the name and type found.

 

Hint:   This is also a very easy way to paste in ASN from other sources and let the tool sort out where the various parts go.   The typical procedure is to create a new record, paste the entire ASN into the valid value rule and  paste in the usage notes (if any).  At this point you can then let the rules sort it all out for you. (various rules will then name the record, sort and fix the ASN, and fill in all the meta-garbage required).

 

   <-LAST     TOP      NEXT->  

 

 


© SubCarrier Systems Corp. All Rights Reserved.