Package onep :: Package aaa :: Module BinaryAttribute :: Class BinaryAttribute
[frames] | no frames]

Class BinaryAttribute


The Attribute class for storing AAA binary attributes.

Instance Methods
 
__init__(self, type_, name, binary_data)
Create an Attribute that has binary format.
 
__str__(self)
str(x)

Inherited from Attribute.Attribute: toIDL

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods

Inherited from Attribute.Attribute: fromIDL, fromIDLList, toIDLList

Class Variables

Inherited from Attribute.Attribute: log

Instance Variables
  binary_data
The value of a AAA attribute of binary type.

Inherited from Attribute.Attribute: name, type_

Properties

Inherited from object: __class__

Method Details

__init__(self, type_, name, binary_data)
(Constructor)

 

Create an Attribute that has binary format. This constructor creates an Attribute with the given Attribute type and value.

The AAA attribute must be an array of bytes.

Parameters:
  • type_ - Type of the attribute.
  • name - Name of the attribute.
  • binary_data - Array of bytes.
Raises:
  • OnepIllegalArgumentException - If the type of the attribute does not support the binary format or if the name is null for Application-specific attributes.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

Instance Variable Details

binary_data

The value of a AAA attribute of binary type. This method returns a List of Bytes for the given attribute.