Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
CMFDefault.MetadataTool.MetadataElementPolicy Class Reference
Inheritance diagram for CMFDefault.MetadataTool.MetadataElementPolicy:
Inheritance graph
[legend]
Collaboration diagram for CMFDefault.MetadataTool.MetadataElementPolicy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def edit
def isMultiValued
def isRequired
def supplyDefault
def defaultValue
def enforceVocabulary
def allowedVocabulary

Public Attributes

 is_multi_valued
 is_required
 supply_default
 default_value
 enforce_vocabulary
 allowed_vocabulary

Static Public Attributes

tuple security = ClassSecurityInfo()
int is_required = 0
int supply_default = 0
string default_value = ''
int enforce_vocabulary = 0
tuple allowed_vocabulary = ()

Detailed Description

Represent a type-specific policy about a particular metadata element.

Definition at line 39 of file MetadataTool.py.


Constructor & Destructor Documentation

def CMFDefault.MetadataTool.MetadataElementPolicy.__init__ (   self,
  is_multi_valued = False 
)

Definition at line 54 of file MetadataTool.py.

00054 
00055     def __init__(self, is_multi_valued=False):
00056         self.is_multi_valued = bool(is_multi_valued)


Member Function Documentation

What are the allowed values?

Definition at line 108 of file MetadataTool.py.

00108 
00109     def allowedVocabulary( self ):
00110         """ What are the allowed values?
00111         """
00112         return self.allowed_vocabulary
00113 
00114 InitializeClass( MetadataElementPolicy )
00115 
00116 

If so, what is the default?

Definition at line 96 of file MetadataTool.py.

00096 
00097     def defaultValue( self ):
00098         """ If so, what is the default?
00099         """
00100         return self.default_value

def CMFDefault.MetadataTool.MetadataElementPolicy.edit (   self,
  is_required,
  supply_default,
  default_value,
  enforce_vocabulary,
  allowed_vocabulary 
)

Definition at line 67 of file MetadataTool.py.

00067 
00068             ):
00069         self.is_required        = bool(is_required)
00070         self.supply_default     = bool(supply_default)
00071         self.default_value      = default_value
00072         self.enforce_vocabulary = bool(enforce_vocabulary)
00073         self.allowed_vocabulary = tuple(allowed_vocabulary)

Here is the caller graph for this function:

Should the tool enforce the policy's vocabulary?

Definition at line 102 of file MetadataTool.py.

00102 
00103     def enforceVocabulary( self ):
00104         """ Should the tool enforce the policy's vocabulary?
00105         """
00106         return self.enforce_vocabulary

Here is the caller graph for this function:

Can this element hold multiple values?

Definition at line 78 of file MetadataTool.py.

00078 
00079     def isMultiValued( self ):
00080         """ Can this element hold multiple values?
00081         """
00082         return self.is_multi_valued

Must this element be supplied?

Definition at line 84 of file MetadataTool.py.

00084 
00085     def isRequired( self ):
00086         """ Must this element be supplied?
00087         """
00088         return self.is_required

Should the tool supply a default?

Definition at line 90 of file MetadataTool.py.

00090 
00091     def supplyDefault( self ):
00092         """ Should the tool supply a default?
00093         """
00094         return self.supply_default


Member Data Documentation

Definition at line 52 of file MetadataTool.py.

Definition at line 72 of file MetadataTool.py.

Definition at line 50 of file MetadataTool.py.

Definition at line 70 of file MetadataTool.py.

Definition at line 51 of file MetadataTool.py.

Definition at line 71 of file MetadataTool.py.

Definition at line 55 of file MetadataTool.py.

Definition at line 48 of file MetadataTool.py.

Definition at line 68 of file MetadataTool.py.

tuple CMFDefault.MetadataTool.MetadataElementPolicy.security = ClassSecurityInfo() [static]

Definition at line 44 of file MetadataTool.py.

Definition at line 49 of file MetadataTool.py.

Definition at line 69 of file MetadataTool.py.


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