Пример #1
0
 /// <summary>
 /// Construct AttributeHolder instance.
 /// </summary>
 /// <param name="parent">
 /// Parent collection.</param>
 /// <param name="name">
 /// Attribute name.</param>
 /// <param name="value">
 /// Attribute value.</param>
 public AttributeHolder(AbstractSessionModel parent, String name, Object value)
 {
     if (value == ObjectUtils.NO_VALUE)
     {
         throw new ArgumentException("value");
     }
     m_parent = parent;
     m_name   = name;
     m_value  = value;
     m_dirty  = true;
 }
Пример #2
0
 /// <summary>
 /// Construct AttributeHolder instance from a buffer.
 /// </summary>
 /// <param name="parent">
 /// Parent collection.</param>
 /// <param name="name">
 /// Attribute name.</param>
 /// <param name="binValue">
 /// Serialized attribute value.</param>
 /// <param name="of">
 /// Attribute offset within collection buffer.</param>
 public AttributeHolder(AbstractSessionModel parent, String name, Binary binValue, int of)
 {
     if (binValue == null)
     {
         throw new ArgumentNullException("binValue");
     }
     m_parent   = parent;
     m_name     = name;
     m_binValue = binValue;
     m_of       = of;
     m_value    = ObjectUtils.NO_VALUE;
 }
Пример #3
0
 /// <summary>
 /// Construct AttributeHolder instance.
 /// </summary>
 /// <param name="parent">
 /// Parent collection.</param>
 /// <param name="name">
 /// Attribute name.</param>
 public AttributeHolder(AbstractSessionModel parent, String name)
     : this(parent, name, null)
 {
 }
 /// <summary>
 /// Construct AttributeHolder instance.
 /// </summary>
 /// <param name="parent">
 /// Parent collection.</param>
 /// <param name="name">
 /// Attribute name.</param>
 /// <param name="value">
 /// Attribute value.</param>
 public ExternalAttributeHolder(AbstractSessionModel parent, String name, Object value)
     : base(parent, name, value)
 {
 }
 /// <summary>
 /// Construct AttributeHolder instance from a buffer.
 /// </summary>
 /// <param name="parent">
 /// Parent collection.</param>
 /// <param name="name">
 /// Attribute name.</param>
 /// <param name="binValue">
 /// Serialized attribute value.</param>
 /// <param name="of">
 /// Attribute offset within collection buffer.</param>
 public ExternalAttributeHolder(AbstractSessionModel parent, String name, Binary binValue, int of)
     : base(parent, name, binValue, of)
 {
 }