Python LMF library
 All Classes Namespaces Files Functions Variables
representation.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 """! @package core
4 """
5 
6 class Representation():
7  """! "Representation class is an abstract class representing a Unicode string as well as, if needed, the unique attribute-value pairs that describe the specific language, script and orthography." (LMF)
8  """
9  def __init__(self):
10  """! @brief As Representation is an abstract class, constructor raises an error.
11  """
12  raise NotImplementedError
13 
14  def __del__(self):
15  """! @brief As Representation is an abstract class, desctructor raises an error.
16  """
17  raise NotImplementedError
18 
19  def __new__(self):
20  """! @brief Private initialization called from Representation subclasses.
21  """
22  self.comment = None
23  self.writtenForm = None
24  self.language = None
25  self.scriptName = None
"Representation class is an abstract class representing a Unicode string as well as, if needed, the unique attribute-value pairs that describe the specific language, script and orthography." (LMF)
def __del__
As Representation is an abstract class, desctructor raises an error.
def __new__
Private initialization called from Representation subclasses.
def __init__
As Representation is an abstract class, constructor raises an error.