wwndesc  1.0-76
WWNDesc.WWNDescTarget Class Reference

simple pass-thru class to define internal value for a Target in an idempotent way More...

Inheritance diagram for WWNDesc.WWNDescTarget:
Collaboration diagram for WWNDesc.WWNDescTarget:

Public Member Functions

 WWNDescTarget (String wwn)
 create an instance with brief set to false. More...
 
 WWNDescTarget (boolean brief, String wwn)
 create an instance with the given WWN. More...
 
- Public Member Functions inherited from WWNDesc
 WWNDesc (String wwn)
 create an instance with brief set to false. More...
 
 WWNDesc (boolean brief, String wwn)
 create an instance with the given WWN. More...
 
 WWNDesc (boolean brief, String wwn, DevRole role)
 create an instance with the given WWN. More...
 
String descPort ()
 describe the WWPN's unique port label/index More...
 
String toString ()
 describe the WWN: produce a short (shorter if this.brief = true) description suitable for use as an alias for this WWN More...
 

Static Public Member Functions

static boolean isA (int role)
 convenience function to use bit-masks to check for membership in this role More...
 

Additional Inherited Members

- Protected Attributes inherited from WWNDesc
boolean brief
 whether a more brief output should be offered in toString() (ie the difference between "VMax-HK192601234-12gB" and "VMax-1234-12gB") . More...
 
DevRole role = DevRole.TARGET
 role of the device: Target, Switch, Initiator
 
BigInteger wwn
 the WWN that the instance tried to describe
 

Detailed Description

simple pass-thru class to define internal value for a Target in an idempotent way

Definition at line 139 of file WWNDesc.java.

Constructor & Destructor Documentation

WWNDescTarget ( String  wwn)
inline

create an instance with brief set to false.

This is a convenience function to support the older constructor model

Exceptions
java.lang.NullPointerExceptionif the given wwn is null
Parameters
wwnthe WWN to evaluate and describe

< create a new Target device without brief naming capability

Definition at line 142 of file WWNDesc.java.

References DevRole.TARGET.

WWNDescTarget ( boolean  brief,
String  wwn 
)
inline

create an instance with the given WWN.

Values given to the constructor are simply copied to internal variables for later use

Exceptions
java.lang.NullPointerExceptionif the given wwn is null
Parameters
briefwhether an abbreviated description is requested
wwnthe WWN to evaluate and describe

< create a new Target device with given brief capability

Definition at line 147 of file WWNDesc.java.

References DevRole.TARGET.

Member Function Documentation

static boolean isA ( int  role)
inlinestatic

The documentation for this class was generated from the following file: