Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array represents an array of values/references.
func NewArray ¶
func NewArray(name, path string, template specs.Template, store references.Store, tracker references.Tracker) *Array
NewArray constructs a new XML array encoder/decoder.
func (*Array) MarshalXML ¶
MarshalXML encodes the given specs object into the provided XML encoder.
func (*Array) UnmarshalXML ¶
UnmarshalXML decodes XML input into the receiver of type specs.Repeated.
type Constructor ¶
type Constructor struct{}
Constructor is capable of constructing new codec managers for the given resource and specs.
func NewConstructor ¶
func NewConstructor() *Constructor
NewConstructor constructs a new XML constructor.
func (*Constructor) Name ¶
func (constructor *Constructor) Name() string
Name returns the name of the XML codec constructor.
func (*Constructor) New ¶
func (constructor *Constructor) New(resource string, specs *specs.ParameterMap) (codec.Manager, error)
New constructs a new XML codec manager
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
Enum is a vrapper over specs.Enum providing XML encoding/decoding.
func NewEnum ¶
func NewEnum(name, path string, template specs.Template, store references.Store, tracker references.Tracker) *Enum
NewEnum creates a new enum by wrapping provided specs.Enum.
func (*Enum) MarshalXML ¶
MarshalXML marshals given enum to XML.
func (*Enum) UnmarshalXML ¶
UnmarshalXML unmarshals enum value from XML stream.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages a specs object and allows to encode/decode messages.
func (*Manager) Marshal ¶
Marshal marshals the given reference store into a XML message. This method is called during runtime to encode a new message with the values stored inside the given reference store.
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents an XML object.
func NewObject ¶
func NewObject(name, path string, template specs.Template, store references.Store, tracker references.Tracker) *Object
NewObject creates a new object by wrapping provided specs.Message.
func (*Object) MarshalXML ¶
MarshalXML encodes the given specs object into the given XML encoder.
func (*Object) UnmarshalXML ¶
UnmarshalXML decodes XML input into the receiver of type specs.Message.
type Scalar ¶
type Scalar struct {
// contains filtered or unexported fields
}
Scalar is a wrapper for specs.Scalar providing XML encoding/decoding.
func NewScalar ¶
func NewScalar(name, path string, template specs.Template, store references.Store, tracker references.Tracker) *Scalar
NewScalar creates a wrapper for specs.Scalar to be XML encoded/decoded.
func (Scalar) MarshalXML ¶
MarshalXML marshals scalar value to XML.
func (*Scalar) UnmarshalXML ¶
UnmarshalXML unmarshals scalar value from XML stream.