Defining attribute access class

Build 1501 on 14/Nov/2017  This topic last edited on: 5/Aug/2014, at 15:05

The access class of an object attribute is defined using the GN4-specific extension attribute ‘access’ which applies to the ‘attribute’ and ‘element’ elements in the schema defining the object attribute.  The possible values for this ‘access’ attribute are the four pre-defined strings ‘normal’, ‘protected’, ‘special’ and ‘content’ – corresponding to the four access classes.

<xs:element name="test">

 <xs:complexType>

   <xs:complexContent>

     <xs:extension base="object">

       <xs:sequence>

         <xs:element

          name="description"

          type="xs:string"

          gs:access="protected"/>

       </xs:sequence>

       <xs:attribute

        name="location"

        type="xs:string"

        gs:access="special"/>

     </xs:extension>

   </xs:complexContent>

 </xs:complexType>

</xs:element>

 

The example above defines an object type ‘test’ with an attribute ‘description’ belonging to the protected access class and an attribute ‘location’ belonging to the special access class.

Note that each object attribute belongs to an access class regardless if it is explicitly specified or not. Each object attribute has a default access class depending on its.

See also

Access classes

For a complete description of all attribute types and their default access class:

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4SchemaAttributeType.html