Exemplo n.º 1
0
 /// <summary>
 /// Initializes all object fields.
 /// </summary>
 public void Initialize()
 {
     _id     = 0;
     _name   = "";
     _schema = null;
     _attrs  = null;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes the attribute schema internal fields to their default
 /// value.
 /// </summary>
 public void Initialize()
 {
     _id           = 0;
     _name         = "";
     _isrequired   = false;
     _multiplicity = 1;
     _propsch      = new PropertySchema();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Instantiates a new property based on the specified schema and naem.  The
 /// property cannot be saved until all required attributes defined by the schema
 /// have been populated.
 /// </summary>
 /// <param name="Schema">The schema upon which to base this property.</param>
 /// <param name="Name">The name of the new property.</param>
 public Property(PropertySchema Schema, string Name)
 {
     Initialize();
     _schema   = Schema;
     this.Name = Name;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Instantiates a new property based on the specified schema.  The property
 /// cannot be saved until all required attributes defined by the schema have
 /// been populated.
 /// </summary>
 /// <param name="Schema">The schema upon which to base this property.</param>
 public Property(PropertySchema Schema)
 {
     Initialize();
     _schema = Schema;
 }