/// <summary> /// Constructor for the <c>Primitive</c> object. This is used /// to convert an XML node to a primitive object and vice versa. To /// perform deserialization the primitive object requires the context /// object used for the instance of serialization to performed. /// </summary> /// <param name="context"> /// the context object used for the serialization /// </param> /// <param name="type"> /// this is the type of primitive this represents /// </param> /// <param name="empty"> /// this is the value used to represent a null value /// </param> public Primitive(Context context, Type type, String empty) { this.factory = new PrimitiveFactory(context, type); this.type = type.getType(); this.context = context; this.empty = empty; }
/// <summary> /// Constructor for the <c>PrimitiveKey</c> object. This is /// used to create the key object which converts the map key to an /// instance of the key type. This can also resolve references. /// </summary> /// <param name="context"> /// this is the context object used for serialization /// </param> /// <param name="entry"> /// this is the entry object that describes entries /// </param> /// <param name="type"> /// this is the type that this converter deals with /// </param> public PrimitiveKey(Context context, Entry entry, Type type) { this.factory = new PrimitiveFactory(context, type); this.root = new Primitive(context, type); this.style = context.Style; this.context = context; this.entry = entry; this.type = type; }
/// <summary> /// Constructor for the <c>PrimitiveKey</c> object. This is /// used to create the key object which converts the map key to an /// instance of the key type. This can also resolve references. /// </summary> /// <param name="context"> /// this is the context object used for serialization /// </param> /// <param name="entry"> /// this is the entry object that describes entries /// </param> /// <param name="type"> /// this is the type that this converter deals with /// </param> public PrimitiveKey(Context context, Entry entry, Type type) { this.factory = new PrimitiveFactory(context, type); this.root = new Primitive(context, type); this.style = context.Style; this.context = context; this.entry = entry; this.type = type; }
/// <summary> /// Constructor for the <c>Primitive</c> object. This is used /// to convert an XML node to a primitive object and vice versa. To /// perform deserialization the primitive object requires the context /// object used for the instance of serialization to performed. /// </summary> /// <param name="context"> /// the context object used for the serialization /// </param> /// <param name="type"> /// this is the type of primitive this represents /// </param> /// <param name="empty"> /// this is the value used to represent a null value /// </param> public Primitive(Context context, Type type, String empty) { this.factory = new PrimitiveFactory(context, type); this.type = type.getType(); this.context = context; this.empty = empty; }