Develop > Application Configuration > CML reference > CML type attributes

CML type attributes

CML attributes define and control the semantics of a CML tag. This section defines the types you can use in a CML template. Note that some types can be modified to represent a sequence of repeating values by appending “-set” or “-list” to the type. Some types can be modified to ignore the order of a sequence of repeating values by prepending “ordered-“ or “unordered-“ to the type.

The int type

Int is a numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;int][;[{range}][;{option}[;{option}]...]]]]@

Description

An Integer value …, -2, -1, 0, 1, 2, … (Z).

The decimal type

Decimal is a numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;decimal][;[{range}][;{option}[;{option}]...]]]]@

Description

Decimal number.

The guid type

Guid is a numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;guid][;[{range}][;{option}[;{option}]...]]]]@

Description

Globally Unique Identifier (GUID), 128-bit id.

The string type

String is a non-numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;string][;[{range}][;{option}[;{option}]...]]]]@

Description

String is the default type for all values if no other type is explicitly specified.

The quotedstring type

Quotedstring is a non-numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;quotedstring][;[{range}][;{option}[;{option}]...]]]]@

Description

Quoted string.

The boolean type

Boolean is a non-numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;boolean][;[{range}][;{option}[;{option}]...]]]]@

Description

Boolean.

The duration type

Duration is a non-numeric type.

Syntax

@[{level}]{tag-type}[[{source}][;duration][;[{range}][;{option}[;{option}]...]]]]@

Description

Duration.

The ipv6 type

IPv6 is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;ipv6][;[{range}][;{option}[;{option}]...]]]]@

Description

CML supports the following two conventional forms for representing IPv6 addresses as text strings:

x:x:x:x:x:x:x:x, in which “x” represent one to four hexadecimal digits of the eight 16-bit pieces of the IPv6 address. For example:

ABCD:EF01:2345:6789:ABCD:EF01:2345:6789

“::” in an IPv6 address indicates one or more groups of 16 bits of zeros. The “::” can appear only once in an address. The “::” can also be used to compress leading or trailing zeros in an address. For example:

2001:DB8:0:0:8:800:200C:417A becomes 2001:DB8::8:800:200C:417A

0:0:0:0:0:0:0:1 becomes ::1

The ipv4 type

IPv4 is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;ipv4][;[{range}][;{option}[;{option}]...]]]]@

Description

IP v4 Address.

The ip type

Ip is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;ip][;[{range}][;{option}[;{option}]...]]]]@

Description

IP Address (ipv4 and ipv6).

The hostname type

Hostname is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;hostname][;[{range}][;{option}[;{option}]...]]]]@

Description

The name of a host server.

The host type

Host is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;host][;[{range}][;{option}[;{option}]...]]]]@

Description

Host IP Address or Hostname.

The network type

Network is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;network][;[{range}][;{option}[;{option}]...]]]]@

Description

IP v4 Network.

The port type

Port is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;port][;[{range}][;{option}[;{option}]...]]]]@

Description

TCP or UDP Port.

The user type

User is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;user][;[{range}][;{option}[;{option}]...]]]]@

Description

Username.

The group type

Group is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;group][;[{range}][;{option}[;{option}]...]]]]@

Description

Group name.

file – system specific type

Syntax

@[{level}]{tag-type}[[{source}][;file][;[{range}][;{option}[;{option}]...]]]]@

Description

File name.

The dir type

Dir is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;dir][;[{range}][;{option}[;{option}]...]]]]@

Description

Directory path name.

The email type

Email is a system-specific type.

Syntax

@[{level}]{tag-type}[[{source}][;email][;[{range}][;{option}[;{option}]...]]]]@

Description

Email address.