Package ccm :: Class FourPartName
[hide private]
[frames] | no frames]

Class FourPartName

source code

object --+
         |
        FourPartName

This class handle four part name parsing and validation.

Instance Methods [hide private]
 
__init__(self, ifpn)
Create a FourPartName object based on a ifpn string.
source code
 
__getname(self)
Returns the name of the object.
source code
 
__getversion(self)
Returns the version of the object.
source code
 
__gettype(self)
Returns the type of the object.
source code
 
__getinstance(self)
Returns the instance of the object.
source code
 
__getobjectname(self)
Returns the objectname of the object.
source code
 
__str__(self)
Returns the string representation of the object.
source code
 
__repr__(self)
Returns the string representation of the python object.
source code
 
is_same_family(self, ccmobject)
Returns True if the ccmobject is part of the same family (=same name, type and version) as self.
source code
 
__getfamily(self) source code
 
__eq__(self, ccmobject)
Returns True if object four parts name are identical.
source code
 
__ne__(self, ccmobject)
Returns True if object four parts name are different.
source code
 
name(self)
Returns the name of the object.
source code
 
version(self)
Returns the version of the object.
source code
 
type(self)
Returns the type of the object.
source code
 
instance(self)
Returns the instance of the object.
source code
 
objectname(self)
Returns the objectname of the object.
source code
 
family(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Static Methods [hide private]
 
is_valid(fpn)
Check if a given string represents a valid four part name.
source code
 
convert(fpn)
Update a CCM output string to a valid four part name.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ifpn)
(Constructor)

source code 

Create a FourPartName object based on a ifpn string.

The string have to match the following patterns: - name-version:type:instance - name:version:releasedef:instance - Task database#id - Folder database#id

Anything else is considered as old release string format.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
Returns the string representation of the object.
Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 
Returns the string representation of the python object.
Overrides: object.__repr__

convert(fpn)
Static Method

source code 
Update a CCM output string to a valid four part name. This is due to the f$*@ing inconsistent output of CM/Synergy that will probably never get fixed as it would require they hire humains and not apes to core their CLI.