xsdt

package
v0.0.0-...-61f7638 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2018 License: MIT Imports: 1 Imported by: 54

README

xsdt

-- import "github.com/metaleap/go-xsd/types"

A tiny package imported by all "go-xsd"-generated packages.

Maps all XSD built-in simple-types to Go types, which affords us easy mapping of any XSD type references in the schema to Go imports: every xs:string and xs:boolean automatically becomes xsdt.String and xsdt.Boolean etc. Types are mapped to Go types depending on how encoding/xml.Unmarshal() can handle them: ie. it parses bools and numbers, but dates/durations have too many format mismatches and thus are just declared string types. Same for base64- and hex-encoded binary data: since Unmarshal() won't decode them, we leave them as strings. If you need their binary data, your code needs to import Go's base64/hex codec packages and use them as necessary.

Usage

func ListValues
func ListValues(v string) (spl []string)

XSD "list" types are always space-separated strings. All generated Go types based on any XSD's list types get a Values() method, which will always resort to this function.

func ListValuesBoolean
func ListValuesBoolean(vals []Boolean) (sl []bool)
func ListValuesDouble
func ListValuesDouble(vals []Double) (sl []float64)
func ListValuesLong
func ListValuesLong(vals []Long) (sl []int64)
func OnWalkError
func OnWalkError(err *error, slice *[]error, breakWalk bool, handler func(error)) (ret bool)

A helper function for the Walk() functionality of generated wrapper packages.

type AnySimpleType
type AnySimpleType string

In XSD, the type xsd:anySimpleType is the base type from which all other built-in types are derived.

func (*AnySimpleType) Set
func (me *AnySimpleType) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (AnySimpleType) String
func (me AnySimpleType) String() string

Since this is just a simple String type, this merely returns its current string value.

type AnyType
type AnyType string

In XSD, represents any simple or complex type. In Go, we hope no one schema ever uses it.

func (*AnyType) Set
func (me *AnyType) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (AnyType) String
func (me AnyType) String() string

Since this is just a simple String type, this merely returns its current string value.

type AnyURI
type AnyURI string

Represents a URI as defined by RFC 2396. An anyURI value can be absolute or relative, and may have an optional fragment identifier.

func (*AnyURI) Set
func (me *AnyURI) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (AnyURI) String
func (me AnyURI) String() string

Since this is just a simple String type, this merely returns its current string value.

type Base64Binary
type Base64Binary string // []byte

Represents Base64-encoded arbitrary binary data. A base64Binary is the set of finite-length sequences of binary octets.

func (*Base64Binary) Set
func (me *Base64Binary) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Base64Binary) String
func (me Base64Binary) String() string

Since this is just a simple String type, this merely returns its current string value.

type Boolean
type Boolean bool

Represents Boolean values, which are either true or false.

func (Boolean) B
func (me Boolean) B() bool

Because littering your code with type conversions is a hassle...

func (*Boolean) Set
func (me *Boolean) Set(v string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Boolean) String
func (me Boolean) String() string

Returns a string representation of its current non-string scalar value.

type Byte
type Byte int8

Represents an integer with a minimum value of -128 and maximum of 127.

func (Byte) N
func (me Byte) N() int8

Because littering your code with type conversions is a hassle...

func (*Byte) Set
func (me *Byte) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Byte) String
func (me Byte) String() string

Returns a string representation of its current non-string scalar value.

type Date
type Date string // time.Time

Represents a calendar date. The pattern for date is CCYY-MM-DD with optional time zone indicator as allowed for dateTime.

func (*Date) Set
func (me *Date) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Date) String
func (me Date) String() string

Since this is just a simple String type, this merely returns its current string value.

type DateTime
type DateTime string // time.Time

Represents a specific instance of time.

func (*DateTime) Set
func (me *DateTime) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (DateTime) String
func (me DateTime) String() string

Since this is just a simple String type, this merely returns its current string value.

type Decimal
type Decimal string // complex128

Represents arbitrary precision numbers.

func (*Decimal) Set
func (me *Decimal) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Decimal) String
func (me Decimal) String() string

Since this is just a simple String type, this merely returns its current string value.

type Double
type Double float64

Represents double-precision 64-bit floating-point numbers.

func (Double) N
func (me Double) N() float64

Because littering your code with type conversions is a hassle...

func (*Double) Set
func (me *Double) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Double) String
func (me Double) String() string

Returns a string representation of its current non-string scalar value.

type Duration
type Duration string // time.Duration

Represents a duration of time.

func (*Duration) Set
func (me *Duration) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Duration) String
func (me Duration) String() string

Since this is just a simple String type, this merely returns its current string value.

type Entities
type Entities string

Represents the ENTITIES attribute type. Contains a set of values of type ENTITY.

func (*Entities) Set
func (me *Entities) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Entities) String
func (me Entities) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Entities) Values
func (me Entities) Values() (list []Entity)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type Entity
type Entity NCName

This is a reference to an unparsed entity with a name that matches the specified name.

func (*Entity) Set
func (me *Entity) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Entity) String
func (me Entity) String() string

Since this is just a simple String type, this merely returns its current string value.

type Float
type Float float32

Represents single-precision 32-bit floating-point numbers.

func (Float) N
func (me Float) N() float32

Because littering your code with type conversions is a hassle...

func (*Float) Set
func (me *Float) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Float) String
func (me Float) String() string

Returns a string representation of its current non-string scalar value.

type GDay
type GDay string

Represents a Gregorian day that recurs, specifically a day of the month such as the fifth day of the month. A gDay is the space of a set of calendar dates. Specifically, it is a set of one-day long, monthly periodic instances.

func (*GDay) Set
func (me *GDay) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GDay) String
func (me GDay) String() string

Since this is just a simple String type, this merely returns its current string value.

type GMonth
type GMonth string

Represents a Gregorian month that recurs every year. A gMonth is the space of a set of calendar months. Specifically, it is a set of one-month long, yearly periodic instances.

func (*GMonth) Set
func (me *GMonth) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GMonth) String
func (me GMonth) String() string

Since this is just a simple String type, this merely returns its current string value.

type GMonthDay
type GMonthDay string

Represents a specific Gregorian date that recurs, specifically a day of the year such as the third of May. A gMonthDay is the set of calendar dates. Specifically, it is a set of one-day long, annually periodic instances.

func (*GMonthDay) Set
func (me *GMonthDay) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GMonthDay) String
func (me GMonthDay) String() string

Since this is just a simple String type, this merely returns its current string value.

type GYear
type GYear string

Represents a Gregorian year. A set of one-year long, nonperiodic instances.

func (*GYear) Set
func (me *GYear) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GYear) String
func (me GYear) String() string

Since this is just a simple String type, this merely returns its current string value.

type GYearMonth
type GYearMonth string

Represents a specific Gregorian month in a specific Gregorian year. A set of one-month long, nonperiodic instances.

func (*GYearMonth) Set
func (me *GYearMonth) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GYearMonth) String
func (me GYearMonth) String() string

Since this is just a simple String type, this merely returns its current string value.

type HexBinary
type HexBinary string // []byte

Represents arbitrary hex-encoded binary data. A hexBinary is the set of finite-length sequences of binary octets. Each binary octet is encoded as a character tuple, consisting of two hexadecimal digits ([0-9a-fA-F]) representing the octet code.

func (*HexBinary) Set
func (me *HexBinary) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (HexBinary) String
func (me HexBinary) String() string

Since this is just a simple String type, this merely returns its current string value.

type Id
type Id NCName

The ID must be a no-colon-name (NCName) and must be unique within an XML document.

func (*Id) Set
func (me *Id) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Id) String
func (me Id) String() string

Since this is just a simple String type, this merely returns its current string value.

type Idref
type Idref NCName

Represents a reference to an element that has an ID attribute that matches the specified ID. An IDREF must be an NCName and must be a value of an element or attribute of type ID within the XML document.

func (*Idref) Set
func (me *Idref) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Idref) String
func (me Idref) String() string

Since this is just a simple String type, this merely returns its current string value.

type Idrefs
type Idrefs string

Contains a set of values of type IDREF.

func (*Idrefs) Set
func (me *Idrefs) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Idrefs) String
func (me Idrefs) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Idrefs) Values
func (me Idrefs) Values() (list []Idref)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type Int
type Int int32

Represents an integer with a minimum value of -2147483648 and maximum of 2147483647.

func (Int) N
func (me Int) N() int32

Because littering your code with type conversions is a hassle...

func (*Int) Set
func (me *Int) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Int) String
func (me Int) String() string

Returns a string representation of its current non-string scalar value.

type Integer
type Integer int64

Represents a sequence of decimal digits with an optional leading sign (+ or -).

func (Integer) N
func (me Integer) N() int64

Because littering your code with type conversions is a hassle...

func (*Integer) Set
func (me *Integer) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Integer) String
func (me Integer) String() string

Returns a string representation of its current non-string scalar value.

type Language
type Language Token

Represents natural language identifiers (defined by RFC 1766).

func (*Language) Set
func (me *Language) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Language) String
func (me Language) String() string

Since this is just a simple String type, this merely returns its current string value.

type Long
type Long int64

Represents an integer with a minimum value of -9223372036854775808 and maximum of 9223372036854775807.

func (Long) N
func (me Long) N() int64

Because littering your code with type conversions is a hassle...

func (*Long) Set
func (me *Long) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Long) String
func (me Long) String() string

Returns a string representation of its current non-string scalar value.

type NCName
type NCName Name

Represents noncolonized names. This data type is the same as Name, except it cannot begin with a colon.

func (*NCName) Set
func (me *NCName) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (NCName) String
func (me NCName) String() string

Since this is just a simple String type, this merely returns its current string value.

type Name
type Name Token

Represents names in XML. A Name is a token that begins with a letter, underscore, or colon and continues with name characters (letters, digits, and other characters).

func (*Name) Set
func (me *Name) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Name) String
func (me Name) String() string

Since this is just a simple String type, this merely returns its current string value.

type NegativeInteger
type NegativeInteger int64

Represents an integer that is less than zero. Consists of a negative sign (-) and sequence of decimal digits.

func (NegativeInteger) N
func (me NegativeInteger) N() int64

Because littering your code with type conversions is a hassle...

func (*NegativeInteger) Set
func (me *NegativeInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (NegativeInteger) String
func (me NegativeInteger) String() string

Returns a string representation of its current non-string scalar value.

type Nmtoken
type Nmtoken Token

An NMTOKEN is set of name characters (letters, digits, and other characters) in any combination. Unlike Name and NCName, NMTOKEN has no restrictions on the starting character.

func (*Nmtoken) Set
func (me *Nmtoken) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Nmtoken) String
func (me Nmtoken) String() string

Since this is just a simple String type, this merely returns its current string value.

type Nmtokens
type Nmtokens string

Contains a set of values of type NMTOKEN.

func (*Nmtokens) Set
func (me *Nmtokens) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Nmtokens) String
func (me Nmtokens) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Nmtokens) Values
func (me Nmtokens) Values() (list []Nmtoken)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type NonNegativeInteger
type NonNegativeInteger uint64

Represents an integer that is greater than or equal to zero.

func (NonNegativeInteger) N
func (me NonNegativeInteger) N() uint64

Because littering your code with type conversions is a hassle...

func (*NonNegativeInteger) Set
func (me *NonNegativeInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (NonNegativeInteger) String
func (me NonNegativeInteger) String() string

Returns a string representation of its current non-string scalar value.

type NonPositiveInteger
type NonPositiveInteger int64

Represents an integer that is less than or equal to zero. A nonPositiveIntegerconsists of a negative sign (-) and sequence of decimal digits.

func (NonPositiveInteger) N
func (me NonPositiveInteger) N() int64

Because littering your code with type conversions is a hassle...

func (*NonPositiveInteger) Set
func (me *NonPositiveInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (NonPositiveInteger) String
func (me NonPositiveInteger) String() string

Returns a string representation of its current non-string scalar value.

type NormalizedString
type NormalizedString String

Represents white space normalized strings.

func (*NormalizedString) Set
func (me *NormalizedString) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (NormalizedString) String
func (me NormalizedString) String() string

Since this is just a simple String type, this merely returns its current string value.

type Notation
type Notation string

A set of QNames.

func (*Notation) Set
func (me *Notation) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Notation) String
func (me Notation) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Notation) Values
func (me Notation) Values() (list []Qname)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type Notations
type Notations map[string]*notation
func (Notations) Add
func (me Notations) Add(id, name, public, system string)
type PositiveInteger
type PositiveInteger uint64

Represents an integer that is greater than zero.

func (PositiveInteger) N
func (me PositiveInteger) N() uint64

Because littering your code with type conversions is a hassle...

func (*PositiveInteger) Set
func (me *PositiveInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (PositiveInteger) String
func (me PositiveInteger) String() string

Returns a string representation of its current non-string scalar value.

type Qname
type Qname string

Represents a qualified name. A qualified name is composed of a prefix and a local name separated by a colon. Both the prefix and local names must be an NCName. The prefix must be associated with a namespace URI reference, using a namespace declaration.

func (*Qname) Set
func (me *Qname) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Qname) String
func (me Qname) String() string

Since this is just a simple String type, this merely returns its current string value.

type Short
type Short int16

Represents an integer with a minimum value of -32768 and maximum of 32767.

func (Short) N
func (me Short) N() int16

Because littering your code with type conversions is a hassle...

func (*Short) Set
func (me *Short) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Short) String
func (me Short) String() string

Returns a string representation of its current non-string scalar value.

type String
type String string

Represents character strings.

func (*String) Set
func (me *String) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (String) String
func (me String) String() string

Since this is just a simple String type, this merely returns its current string value.

type Time
type Time string // time.Time

Represents a specific instance of time.

func (*Time) Set
func (me *Time) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Time) String
func (me Time) String() string

Since this is just a simple String type, this merely returns its current string value.

type ToXsdtAnySimpleType
type ToXsdtAnySimpleType interface {
	ToXsdtAnySimpleType() AnySimpleType
}

A convenience interface that declares a type conversion to AnySimpleType.

type ToXsdtAnyType
type ToXsdtAnyType interface {
	ToXsdtAnyType() AnyType
}

A convenience interface that declares a type conversion to AnyType.

type ToXsdtAnyURI
type ToXsdtAnyURI interface {
	ToXsdtAnyURI() AnyURI
}

A convenience interface that declares a type conversion to AnyURI.

type ToXsdtBase64Binary
type ToXsdtBase64Binary interface {
	ToXsdtBase64Binary() Base64Binary
}

A convenience interface that declares a type conversion to Base64Binary.

type ToXsdtBoolean
type ToXsdtBoolean interface {
	ToXsdtBoolean() Boolean
}

A convenience interface that declares a type conversion to Boolean.

type ToXsdtByte
type ToXsdtByte interface {
	ToXsdtByte() Byte
}

A convenience interface that declares a type conversion to Byte.

type ToXsdtDate
type ToXsdtDate interface {
	ToXsdtDate() Date
}

A convenience interface that declares a type conversion to Date.

type ToXsdtDateTime
type ToXsdtDateTime interface {
	ToXsdtDateTime() DateTime
}

A convenience interface that declares a type conversion to DateTime.

type ToXsdtDecimal
type ToXsdtDecimal interface {
	ToXsdtDecimal() Decimal
}

A convenience interface that declares a type conversion to Decimal.

type ToXsdtDouble
type ToXsdtDouble interface {
	ToXsdtDouble() Double
}

A convenience interface that declares a type conversion to Double.

type ToXsdtDuration
type ToXsdtDuration interface {
	ToXsdtDuration() Duration
}

A convenience interface that declares a type conversion to Duration.

type ToXsdtEntities
type ToXsdtEntities interface {
	ToXsdtEntities() Entities
}

A convenience interface that declares a type conversion to Entities.

type ToXsdtEntity
type ToXsdtEntity interface {
	ToXsdtEntity() Entity
}

A convenience interface that declares a type conversion to Entity.

type ToXsdtFloat
type ToXsdtFloat interface {
	ToXsdtFloat() Float
}

A convenience interface that declares a type conversion to Float.

type ToXsdtGDay
type ToXsdtGDay interface {
	ToXsdtGDay() GDay
}

A convenience interface that declares a type conversion to GDay.

type ToXsdtGMonth
type ToXsdtGMonth interface {
	ToXsdtGMonth() GMonth
}

A convenience interface that declares a type conversion to GMonth.

type ToXsdtGMonthDay
type ToXsdtGMonthDay interface {
	ToXsdtGMonthDay() GMonthDay
}

A convenience interface that declares a type conversion to GMonthDay.

type ToXsdtGYear
type ToXsdtGYear interface {
	ToXsdtGYear() GYear
}

A convenience interface that declares a type conversion to GYear.

type ToXsdtGYearMonth
type ToXsdtGYearMonth interface {
	ToXsdtGYearMonth() GYearMonth
}

A convenience interface that declares a type conversion to GYearMonth.

type ToXsdtHexBinary
type ToXsdtHexBinary interface {
	ToXsdtHexBinary() HexBinary
}

A convenience interface that declares a type conversion to HexBinary.

type ToXsdtId
type ToXsdtId interface {
	ToXsdtId() Id
}

A convenience interface that declares a type conversion to Id.

type ToXsdtIdref
type ToXsdtIdref interface {
	ToXsdtIdref() Idref
}

A convenience interface that declares a type conversion to Idref.

type ToXsdtIdrefs
type ToXsdtIdrefs interface {
	ToXsdtIdrefs() Idrefs
}

A convenience interface that declares a type conversion to Idrefs.

type ToXsdtInt
type ToXsdtInt interface {
	ToXsdtInt() Int
}

A convenience interface that declares a type conversion to Int.

type ToXsdtInteger
type ToXsdtInteger interface {
	ToXsdtInteger() Integer
}

A convenience interface that declares a type conversion to Integer.

type ToXsdtLanguage
type ToXsdtLanguage interface {
	ToXsdtLanguage() Language
}

A convenience interface that declares a type conversion to Language.

type ToXsdtLong
type ToXsdtLong interface {
	ToXsdtLong() Long
}

A convenience interface that declares a type conversion to Long.

type ToXsdtNCName
type ToXsdtNCName interface {
	ToXsdtNCName() NCName
}

A convenience interface that declares a type conversion to NCName.

type ToXsdtName
type ToXsdtName interface {
	ToXsdtName() Name
}

A convenience interface that declares a type conversion to Name.

type ToXsdtNegativeInteger
type ToXsdtNegativeInteger interface {
	ToXsdtNegativeInteger() NegativeInteger
}

A convenience interface that declares a type conversion to NegativeInteger.

type ToXsdtNmtoken
type ToXsdtNmtoken interface {
	ToXsdtNmtoken() Nmtoken
}

A convenience interface that declares a type conversion to Nmtoken.

type ToXsdtNmtokens
type ToXsdtNmtokens interface {
	ToXsdtNmtokens() Nmtokens
}

A convenience interface that declares a type conversion to Nmtokens.

type ToXsdtNonNegativeInteger
type ToXsdtNonNegativeInteger interface {
	ToXsdtNonNegativeInteger() NonNegativeInteger
}

A convenience interface that declares a type conversion to NonNegativeInteger.

type ToXsdtNonPositiveInteger
type ToXsdtNonPositiveInteger interface {
	ToXsdtNonPositiveInteger() NonPositiveInteger
}

A convenience interface that declares a type conversion to NonPositiveInteger.

type ToXsdtNormalizedString
type ToXsdtNormalizedString interface {
	ToXsdtNormalizedS() NormalizedString
}

A convenience interface that declares a type conversion to NormalizedString.

type ToXsdtNotation
type ToXsdtNotation interface {
	ToXsdtNotation() Notation
}

A convenience interface that declares a type conversion to Notation.

type ToXsdtPositiveInteger
type ToXsdtPositiveInteger interface {
	ToXsdtPositiveInteger() PositiveInteger
}

A convenience interface that declares a type conversion to PositiveInteger.

type ToXsdtQname
type ToXsdtQname interface {
	ToXsdtQname() Qname
}

A convenience interface that declares a type conversion to Qname.

type ToXsdtShort
type ToXsdtShort interface {
	ToXsdtShort() Short
}

A convenience interface that declares a type conversion to Short.

type ToXsdtString
type ToXsdtString interface {
	ToXsdtString() String
}

A convenience interface that declares a type conversion to String.

type ToXsdtTime
type ToXsdtTime interface {
	ToXsdtTime() Time
}

A convenience interface that declares a type conversion to Time.

type ToXsdtToken
type ToXsdtToken interface {
	ToXsdtToken() Token
}

A convenience interface that declares a type conversion to Token.

type ToXsdtUnsignedByte
type ToXsdtUnsignedByte interface {
	ToXsdtUnsignedByte() UnsignedByte
}

A convenience interface that declares a type conversion to UnsignedByte.

type ToXsdtUnsignedInt
type ToXsdtUnsignedInt interface {
	ToXsdtUnsignedInt() UnsignedInt
}

A convenience interface that declares a type conversion to UnsignedInt.

type ToXsdtUnsignedLong
type ToXsdtUnsignedLong interface {
	ToXsdtUnsignedLong() UnsignedLong
}

A convenience interface that declares a type conversion to UnsignedLong.

type ToXsdtUnsignedShort
type ToXsdtUnsignedShort interface {
	ToXsdtUnsignedShort() UnsignedShort
}

A convenience interface that declares a type conversion to UnsignedShort.

type Token
type Token NormalizedString

Represents tokenized strings.

func (*Token) Set
func (me *Token) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Token) String
func (me Token) String() string

Since this is just a simple String type, this merely returns its current string value.

type UnsignedByte
type UnsignedByte uint8

Represents an integer with a minimum of zero and maximum of 255.

func (UnsignedByte) N
func (me UnsignedByte) N() uint8

Because littering your code with type conversions is a hassle...

func (*UnsignedByte) Set
func (me *UnsignedByte) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedByte) String
func (me UnsignedByte) String() string

Returns a string representation of its current non-string scalar value.

type UnsignedInt
type UnsignedInt uint32

Represents an integer with a minimum of zero and maximum of 4294967295.

func (UnsignedInt) N
func (me UnsignedInt) N() uint32

Because littering your code with type conversions is a hassle...

func (*UnsignedInt) Set
func (me *UnsignedInt) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedInt) String
func (me UnsignedInt) String() string

Returns a string representation of its current non-string scalar value.

type UnsignedLong
type UnsignedLong uint64

Represents an integer with a minimum of zero and maximum of 18446744073709551615.

func (UnsignedLong) N
func (me UnsignedLong) N() uint64

Because littering your code with type conversions is a hassle...

func (*UnsignedLong) Set
func (me *UnsignedLong) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedLong) String
func (me UnsignedLong) String() string

Returns a string representation of its current non-string scalar value.

type UnsignedShort
type UnsignedShort uint16

Represents an integer with a minimum of zero and maximum of 65535.

func (UnsignedShort) N
func (me UnsignedShort) N() uint16

Because littering your code with type conversions is a hassle...

func (*UnsignedShort) Set
func (me *UnsignedShort) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedShort) String
func (me UnsignedShort) String() string

Returns a string representation of its current non-string scalar value.

-- godocdown http://github.com/robertkrimen/godocdown

Documentation

Overview

A tiny package imported by all "go-xsd"-generated packages.

Maps all XSD built-in simple-types to Go types, which affords us easy mapping of any XSD type references in the schema to Go imports: every xs:string and xs:boolean automatically becomes xsdt.String and xsdt.Boolean etc. Types are mapped to Go types depending on how encoding/xml.Unmarshal() can handle them: ie. it parses bools and numbers, but dates/durations have too many format mismatches and thus are just declared string types. Same for base64- and hex-encoded binary data: since Unmarshal() won't decode them, we leave them as strings. If you need their binary data, your code needs to import Go's base64/hex codec packages and use them as necessary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListValues

func ListValues(v string) (spl []string)

XSD "list" types are always space-separated strings. All generated Go types based on any XSD's list types get a Values() method, which will always resort to this function.

func ListValuesBoolean

func ListValuesBoolean(vals []Boolean) (sl []bool)

func ListValuesDouble

func ListValuesDouble(vals []Double) (sl []float64)

func ListValuesLong

func ListValuesLong(vals []Long) (sl []int64)

func OnWalkError

func OnWalkError(err *error, slice *[]error, breakWalk bool, handler func(error)) (ret bool)

A helper function for the Walk() functionality of generated wrapper packages.

Types

type AnySimpleType

type AnySimpleType string

In XSD, the type xsd:anySimpleType is the base type from which all other built-in types are derived.

func (*AnySimpleType) Set

func (me *AnySimpleType) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (AnySimpleType) String

func (me AnySimpleType) String() string

Since this is just a simple String type, this merely returns its current string value.

type AnyType

type AnyType string

In XSD, represents any simple or complex type. In Go, we hope no one schema ever uses it.

func (*AnyType) Set

func (me *AnyType) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (AnyType) String

func (me AnyType) String() string

Since this is just a simple String type, this merely returns its current string value.

type AnyURI

type AnyURI string

Represents a URI as defined by RFC 2396. An anyURI value can be absolute or relative, and may have an optional fragment identifier.

func (*AnyURI) Set

func (me *AnyURI) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (AnyURI) String

func (me AnyURI) String() string

Since this is just a simple String type, this merely returns its current string value.

type Base64Binary

type Base64Binary string // []byte

Represents Base64-encoded arbitrary binary data. A base64Binary is the set of finite-length sequences of binary octets.

func (*Base64Binary) Set

func (me *Base64Binary) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Base64Binary) String

func (me Base64Binary) String() string

Since this is just a simple String type, this merely returns its current string value.

type Boolean

type Boolean bool

Represents Boolean values, which are either true or false.

func (Boolean) B

func (me Boolean) B() bool

Because littering your code with type conversions is a hassle...

func (*Boolean) Set

func (me *Boolean) Set(v string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Boolean) String

func (me Boolean) String() string

Returns a string representation of its current non-string scalar value.

type Byte

type Byte int8

Represents an integer with a minimum value of -128 and maximum of 127.

func (Byte) N

func (me Byte) N() int8

Because littering your code with type conversions is a hassle...

func (*Byte) Set

func (me *Byte) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Byte) String

func (me Byte) String() string

Returns a string representation of its current non-string scalar value.

type Date

type Date string // time.Time

Represents a calendar date. The pattern for date is CCYY-MM-DD with optional time zone indicator as allowed for dateTime.

func (*Date) Set

func (me *Date) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Date) String

func (me Date) String() string

Since this is just a simple String type, this merely returns its current string value.

type DateTime

type DateTime string // time.Time

Represents a specific instance of time.

func (*DateTime) Set

func (me *DateTime) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (DateTime) String

func (me DateTime) String() string

Since this is just a simple String type, this merely returns its current string value.

type Decimal

type Decimal string // complex128

Represents arbitrary precision numbers.

func (*Decimal) Set

func (me *Decimal) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Decimal) String

func (me Decimal) String() string

Since this is just a simple String type, this merely returns its current string value.

type Double

type Double float64

Represents double-precision 64-bit floating-point numbers.

func (Double) N

func (me Double) N() float64

Because littering your code with type conversions is a hassle...

func (*Double) Set

func (me *Double) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Double) String

func (me Double) String() string

Returns a string representation of its current non-string scalar value.

type Duration

type Duration string // time.Duration

Represents a duration of time.

func (*Duration) Set

func (me *Duration) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Duration) String

func (me Duration) String() string

Since this is just a simple String type, this merely returns its current string value.

type Entities

type Entities string

Represents the ENTITIES attribute type. Contains a set of values of type ENTITY.

func (*Entities) Set

func (me *Entities) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Entities) String

func (me Entities) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Entities) Values

func (me Entities) Values() (list []Entity)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type Entity

type Entity NCName

This is a reference to an unparsed entity with a name that matches the specified name.

func (*Entity) Set

func (me *Entity) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Entity) String

func (me Entity) String() string

Since this is just a simple String type, this merely returns its current string value.

type Float

type Float float32

Represents single-precision 32-bit floating-point numbers.

func (Float) N

func (me Float) N() float32

Because littering your code with type conversions is a hassle...

func (*Float) Set

func (me *Float) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Float) String

func (me Float) String() string

Returns a string representation of its current non-string scalar value.

type GDay

type GDay string

Represents a Gregorian day that recurs, specifically a day of the month such as the fifth day of the month. A gDay is the space of a set of calendar dates. Specifically, it is a set of one-day long, monthly periodic instances.

func (*GDay) Set

func (me *GDay) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GDay) String

func (me GDay) String() string

Since this is just a simple String type, this merely returns its current string value.

type GMonth

type GMonth string

Represents a Gregorian month that recurs every year. A gMonth is the space of a set of calendar months. Specifically, it is a set of one-month long, yearly periodic instances.

func (*GMonth) Set

func (me *GMonth) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GMonth) String

func (me GMonth) String() string

Since this is just a simple String type, this merely returns its current string value.

type GMonthDay

type GMonthDay string

Represents a specific Gregorian date that recurs, specifically a day of the year such as the third of May. A gMonthDay is the set of calendar dates. Specifically, it is a set of one-day long, annually periodic instances.

func (*GMonthDay) Set

func (me *GMonthDay) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GMonthDay) String

func (me GMonthDay) String() string

Since this is just a simple String type, this merely returns its current string value.

type GYear

type GYear string

Represents a Gregorian year. A set of one-year long, nonperiodic instances.

func (*GYear) Set

func (me *GYear) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GYear) String

func (me GYear) String() string

Since this is just a simple String type, this merely returns its current string value.

type GYearMonth

type GYearMonth string

Represents a specific Gregorian month in a specific Gregorian year. A set of one-month long, nonperiodic instances.

func (*GYearMonth) Set

func (me *GYearMonth) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (GYearMonth) String

func (me GYearMonth) String() string

Since this is just a simple String type, this merely returns its current string value.

type HexBinary

type HexBinary string // []byte

Represents arbitrary hex-encoded binary data. A hexBinary is the set of finite-length sequences of binary octets. Each binary octet is encoded as a character tuple, consisting of two hexadecimal digits ([0-9a-fA-F]) representing the octet code.

func (*HexBinary) Set

func (me *HexBinary) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (HexBinary) String

func (me HexBinary) String() string

Since this is just a simple String type, this merely returns its current string value.

type Id

type Id NCName

The ID must be a no-colon-name (NCName) and must be unique within an XML document.

func (*Id) Set

func (me *Id) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Id) String

func (me Id) String() string

Since this is just a simple String type, this merely returns its current string value.

type Idref

type Idref NCName

Represents a reference to an element that has an ID attribute that matches the specified ID. An IDREF must be an NCName and must be a value of an element or attribute of type ID within the XML document.

func (*Idref) Set

func (me *Idref) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Idref) String

func (me Idref) String() string

Since this is just a simple String type, this merely returns its current string value.

type Idrefs

type Idrefs string

Contains a set of values of type IDREF.

func (*Idrefs) Set

func (me *Idrefs) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Idrefs) String

func (me Idrefs) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Idrefs) Values

func (me Idrefs) Values() (list []Idref)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type Int

type Int int32

Represents an integer with a minimum value of -2147483648 and maximum of 2147483647.

func (Int) N

func (me Int) N() int32

Because littering your code with type conversions is a hassle...

func (*Int) Set

func (me *Int) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Int) String

func (me Int) String() string

Returns a string representation of its current non-string scalar value.

type Integer

type Integer int64

Represents a sequence of decimal digits with an optional leading sign (+ or -).

func (Integer) N

func (me Integer) N() int64

Because littering your code with type conversions is a hassle...

func (*Integer) Set

func (me *Integer) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Integer) String

func (me Integer) String() string

Returns a string representation of its current non-string scalar value.

type Language

type Language Token

Represents natural language identifiers (defined by RFC 1766).

func (*Language) Set

func (me *Language) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Language) String

func (me Language) String() string

Since this is just a simple String type, this merely returns its current string value.

type Long

type Long int64

Represents an integer with a minimum value of -9223372036854775808 and maximum of 9223372036854775807.

func (Long) N

func (me Long) N() int64

Because littering your code with type conversions is a hassle...

func (*Long) Set

func (me *Long) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Long) String

func (me Long) String() string

Returns a string representation of its current non-string scalar value.

type NCName

type NCName Name

Represents noncolonized names. This data type is the same as Name, except it cannot begin with a colon.

func (*NCName) Set

func (me *NCName) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (NCName) String

func (me NCName) String() string

Since this is just a simple String type, this merely returns its current string value.

type Name

type Name Token

Represents names in XML. A Name is a token that begins with a letter, underscore, or colon and continues with name characters (letters, digits, and other characters).

func (*Name) Set

func (me *Name) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Name) String

func (me Name) String() string

Since this is just a simple String type, this merely returns its current string value.

type NegativeInteger

type NegativeInteger int64

Represents an integer that is less than zero. Consists of a negative sign (-) and sequence of decimal digits.

func (NegativeInteger) N

func (me NegativeInteger) N() int64

Because littering your code with type conversions is a hassle...

func (*NegativeInteger) Set

func (me *NegativeInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (NegativeInteger) String

func (me NegativeInteger) String() string

Returns a string representation of its current non-string scalar value.

type Nmtoken

type Nmtoken Token

An NMTOKEN is set of name characters (letters, digits, and other characters) in any combination. Unlike Name and NCName, NMTOKEN has no restrictions on the starting character.

func (*Nmtoken) Set

func (me *Nmtoken) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Nmtoken) String

func (me Nmtoken) String() string

Since this is just a simple String type, this merely returns its current string value.

type Nmtokens

type Nmtokens string

Contains a set of values of type NMTOKEN.

func (*Nmtokens) Set

func (me *Nmtokens) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Nmtokens) String

func (me Nmtokens) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Nmtokens) Values

func (me Nmtokens) Values() (list []Nmtoken)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type NonNegativeInteger

type NonNegativeInteger uint64

Represents an integer that is greater than or equal to zero.

func (NonNegativeInteger) N

func (me NonNegativeInteger) N() uint64

Because littering your code with type conversions is a hassle...

func (*NonNegativeInteger) Set

func (me *NonNegativeInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (NonNegativeInteger) String

func (me NonNegativeInteger) String() string

Returns a string representation of its current non-string scalar value.

type NonPositiveInteger

type NonPositiveInteger int64

Represents an integer that is less than or equal to zero. A nonPositiveIntegerconsists of a negative sign (-) and sequence of decimal digits.

func (NonPositiveInteger) N

func (me NonPositiveInteger) N() int64

Because littering your code with type conversions is a hassle...

func (*NonPositiveInteger) Set

func (me *NonPositiveInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (NonPositiveInteger) String

func (me NonPositiveInteger) String() string

Returns a string representation of its current non-string scalar value.

type NormalizedString

type NormalizedString String

Represents white space normalized strings.

func (*NormalizedString) Set

func (me *NormalizedString) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (NormalizedString) String

func (me NormalizedString) String() string

Since this is just a simple String type, this merely returns its current string value.

type Notation

type Notation string

A set of QNames.

func (*Notation) Set

func (me *Notation) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Notation) String

func (me Notation) String() string

Since this is just a simple String type, this merely returns its current string value.

func (Notation) Values

func (me Notation) Values() (list []Qname)

This type declares a String containing a whitespace-separated list of values. This Values() method creates and returns a slice of all elements in that list.

type Notations

type Notations map[string]*notation

func (Notations) Add

func (me Notations) Add(id, name, public, system string)

type PositiveInteger

type PositiveInteger uint64

Represents an integer that is greater than zero.

func (PositiveInteger) N

func (me PositiveInteger) N() uint64

Because littering your code with type conversions is a hassle...

func (*PositiveInteger) Set

func (me *PositiveInteger) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (PositiveInteger) String

func (me PositiveInteger) String() string

Returns a string representation of its current non-string scalar value.

type Qname

type Qname string

Represents a qualified name. A qualified name is composed of a prefix and a local name separated by a colon. Both the prefix and local names must be an NCName. The prefix must be associated with a namespace URI reference, using a namespace declaration.

func (*Qname) Set

func (me *Qname) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Qname) String

func (me Qname) String() string

Since this is just a simple String type, this merely returns its current string value.

type Short

type Short int16

Represents an integer with a minimum value of -32768 and maximum of 32767.

func (Short) N

func (me Short) N() int16

Because littering your code with type conversions is a hassle...

func (*Short) Set

func (me *Short) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (Short) String

func (me Short) String() string

Returns a string representation of its current non-string scalar value.

type String

type String string

Represents character strings.

func (*String) Set

func (me *String) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (String) String

func (me String) String() string

Since this is just a simple String type, this merely returns its current string value.

type Time

type Time string // time.Time

Represents a specific instance of time.

func (*Time) Set

func (me *Time) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Time) String

func (me Time) String() string

Since this is just a simple String type, this merely returns its current string value.

type ToXsdtAnySimpleType

type ToXsdtAnySimpleType interface {
	ToXsdtAnySimpleType() AnySimpleType
}

A convenience interface that declares a type conversion to AnySimpleType.

type ToXsdtAnyType

type ToXsdtAnyType interface {
	ToXsdtAnyType() AnyType
}

A convenience interface that declares a type conversion to AnyType.

type ToXsdtAnyURI

type ToXsdtAnyURI interface {
	ToXsdtAnyURI() AnyURI
}

A convenience interface that declares a type conversion to AnyURI.

type ToXsdtBase64Binary

type ToXsdtBase64Binary interface {
	ToXsdtBase64Binary() Base64Binary
}

A convenience interface that declares a type conversion to Base64Binary.

type ToXsdtBoolean

type ToXsdtBoolean interface {
	ToXsdtBoolean() Boolean
}

A convenience interface that declares a type conversion to Boolean.

type ToXsdtByte

type ToXsdtByte interface {
	ToXsdtByte() Byte
}

A convenience interface that declares a type conversion to Byte.

type ToXsdtDate

type ToXsdtDate interface {
	ToXsdtDate() Date
}

A convenience interface that declares a type conversion to Date.

type ToXsdtDateTime

type ToXsdtDateTime interface {
	ToXsdtDateTime() DateTime
}

A convenience interface that declares a type conversion to DateTime.

type ToXsdtDecimal

type ToXsdtDecimal interface {
	ToXsdtDecimal() Decimal
}

A convenience interface that declares a type conversion to Decimal.

type ToXsdtDouble

type ToXsdtDouble interface {
	ToXsdtDouble() Double
}

A convenience interface that declares a type conversion to Double.

type ToXsdtDuration

type ToXsdtDuration interface {
	ToXsdtDuration() Duration
}

A convenience interface that declares a type conversion to Duration.

type ToXsdtEntities

type ToXsdtEntities interface {
	ToXsdtEntities() Entities
}

A convenience interface that declares a type conversion to Entities.

type ToXsdtEntity

type ToXsdtEntity interface {
	ToXsdtEntity() Entity
}

A convenience interface that declares a type conversion to Entity.

type ToXsdtFloat

type ToXsdtFloat interface {
	ToXsdtFloat() Float
}

A convenience interface that declares a type conversion to Float.

type ToXsdtGDay

type ToXsdtGDay interface {
	ToXsdtGDay() GDay
}

A convenience interface that declares a type conversion to GDay.

type ToXsdtGMonth

type ToXsdtGMonth interface {
	ToXsdtGMonth() GMonth
}

A convenience interface that declares a type conversion to GMonth.

type ToXsdtGMonthDay

type ToXsdtGMonthDay interface {
	ToXsdtGMonthDay() GMonthDay
}

A convenience interface that declares a type conversion to GMonthDay.

type ToXsdtGYear

type ToXsdtGYear interface {
	ToXsdtGYear() GYear
}

A convenience interface that declares a type conversion to GYear.

type ToXsdtGYearMonth

type ToXsdtGYearMonth interface {
	ToXsdtGYearMonth() GYearMonth
}

A convenience interface that declares a type conversion to GYearMonth.

type ToXsdtHexBinary

type ToXsdtHexBinary interface {
	ToXsdtHexBinary() HexBinary
}

A convenience interface that declares a type conversion to HexBinary.

type ToXsdtId

type ToXsdtId interface {
	ToXsdtId() Id
}

A convenience interface that declares a type conversion to Id.

type ToXsdtIdref

type ToXsdtIdref interface {
	ToXsdtIdref() Idref
}

A convenience interface that declares a type conversion to Idref.

type ToXsdtIdrefs

type ToXsdtIdrefs interface {
	ToXsdtIdrefs() Idrefs
}

A convenience interface that declares a type conversion to Idrefs.

type ToXsdtInt

type ToXsdtInt interface {
	ToXsdtInt() Int
}

A convenience interface that declares a type conversion to Int.

type ToXsdtInteger

type ToXsdtInteger interface {
	ToXsdtInteger() Integer
}

A convenience interface that declares a type conversion to Integer.

type ToXsdtLanguage

type ToXsdtLanguage interface {
	ToXsdtLanguage() Language
}

A convenience interface that declares a type conversion to Language.

type ToXsdtLong

type ToXsdtLong interface {
	ToXsdtLong() Long
}

A convenience interface that declares a type conversion to Long.

type ToXsdtNCName

type ToXsdtNCName interface {
	ToXsdtNCName() NCName
}

A convenience interface that declares a type conversion to NCName.

type ToXsdtName

type ToXsdtName interface {
	ToXsdtName() Name
}

A convenience interface that declares a type conversion to Name.

type ToXsdtNegativeInteger

type ToXsdtNegativeInteger interface {
	ToXsdtNegativeInteger() NegativeInteger
}

A convenience interface that declares a type conversion to NegativeInteger.

type ToXsdtNmtoken

type ToXsdtNmtoken interface {
	ToXsdtNmtoken() Nmtoken
}

A convenience interface that declares a type conversion to Nmtoken.

type ToXsdtNmtokens

type ToXsdtNmtokens interface {
	ToXsdtNmtokens() Nmtokens
}

A convenience interface that declares a type conversion to Nmtokens.

type ToXsdtNonNegativeInteger

type ToXsdtNonNegativeInteger interface {
	ToXsdtNonNegativeInteger() NonNegativeInteger
}

A convenience interface that declares a type conversion to NonNegativeInteger.

type ToXsdtNonPositiveInteger

type ToXsdtNonPositiveInteger interface {
	ToXsdtNonPositiveInteger() NonPositiveInteger
}

A convenience interface that declares a type conversion to NonPositiveInteger.

type ToXsdtNormalizedString

type ToXsdtNormalizedString interface {
	ToXsdtNormalizedS() NormalizedString
}

A convenience interface that declares a type conversion to NormalizedString.

type ToXsdtNotation

type ToXsdtNotation interface {
	ToXsdtNotation() Notation
}

A convenience interface that declares a type conversion to Notation.

type ToXsdtPositiveInteger

type ToXsdtPositiveInteger interface {
	ToXsdtPositiveInteger() PositiveInteger
}

A convenience interface that declares a type conversion to PositiveInteger.

type ToXsdtQname

type ToXsdtQname interface {
	ToXsdtQname() Qname
}

A convenience interface that declares a type conversion to Qname.

type ToXsdtShort

type ToXsdtShort interface {
	ToXsdtShort() Short
}

A convenience interface that declares a type conversion to Short.

type ToXsdtString

type ToXsdtString interface {
	ToXsdtString() String
}

A convenience interface that declares a type conversion to String.

type ToXsdtTime

type ToXsdtTime interface {
	ToXsdtTime() Time
}

A convenience interface that declares a type conversion to Time.

type ToXsdtToken

type ToXsdtToken interface {
	ToXsdtToken() Token
}

A convenience interface that declares a type conversion to Token.

type ToXsdtUnsignedByte

type ToXsdtUnsignedByte interface {
	ToXsdtUnsignedByte() UnsignedByte
}

A convenience interface that declares a type conversion to UnsignedByte.

type ToXsdtUnsignedInt

type ToXsdtUnsignedInt interface {
	ToXsdtUnsignedInt() UnsignedInt
}

A convenience interface that declares a type conversion to UnsignedInt.

type ToXsdtUnsignedLong

type ToXsdtUnsignedLong interface {
	ToXsdtUnsignedLong() UnsignedLong
}

A convenience interface that declares a type conversion to UnsignedLong.

type ToXsdtUnsignedShort

type ToXsdtUnsignedShort interface {
	ToXsdtUnsignedShort() UnsignedShort
}

A convenience interface that declares a type conversion to UnsignedShort.

type Token

type Token NormalizedString

Represents tokenized strings.

func (*Token) Set

func (me *Token) Set(v string)

Since this is just a simple String type, this merely sets the current value from the specified string.

func (Token) String

func (me Token) String() string

Since this is just a simple String type, this merely returns its current string value.

type UnsignedByte

type UnsignedByte uint8

Represents an integer with a minimum of zero and maximum of 255.

func (UnsignedByte) N

func (me UnsignedByte) N() uint8

Because littering your code with type conversions is a hassle...

func (*UnsignedByte) Set

func (me *UnsignedByte) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedByte) String

func (me UnsignedByte) String() string

Returns a string representation of its current non-string scalar value.

type UnsignedInt

type UnsignedInt uint32

Represents an integer with a minimum of zero and maximum of 4294967295.

func (UnsignedInt) N

func (me UnsignedInt) N() uint32

Because littering your code with type conversions is a hassle...

func (*UnsignedInt) Set

func (me *UnsignedInt) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedInt) String

func (me UnsignedInt) String() string

Returns a string representation of its current non-string scalar value.

type UnsignedLong

type UnsignedLong uint64

Represents an integer with a minimum of zero and maximum of 18446744073709551615.

func (UnsignedLong) N

func (me UnsignedLong) N() uint64

Because littering your code with type conversions is a hassle...

func (*UnsignedLong) Set

func (me *UnsignedLong) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedLong) String

func (me UnsignedLong) String() string

Returns a string representation of its current non-string scalar value.

type UnsignedShort

type UnsignedShort uint16

Represents an integer with a minimum of zero and maximum of 65535.

func (UnsignedShort) N

func (me UnsignedShort) N() uint16

Because littering your code with type conversions is a hassle...

func (*UnsignedShort) Set

func (me *UnsignedShort) Set(s string)

Since this is a non-string scalar type, sets its current value obtained from parsing the specified string.

func (UnsignedShort) String

func (me UnsignedShort) String() string

Returns a string representation of its current non-string scalar value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL