Skip to content

Commit

Permalink
Add toString to XSGlobalSimpleType.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdvrieze committed Feb 29, 2024
1 parent f8faa30 commit 4b46f9c
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,30 @@ class XSGlobalSimpleType(
override val annotation: XSAnnotation? = null,
@XmlOtherAttributes
override val otherAttrs: Map<@Serializable(QNameSerializer::class) QName, String>,
) : XSISimpleType, XSGlobalType
) : XSISimpleType, XSGlobalType {
override fun toString(): String {
return buildString {
append("XSGlobalSimpleType(name=")
append(name)
append(", simpleDerivation=")
append(simpleDerivation)
if (!final.isNullOrEmpty()) {
append(", final=")
append(final)
}
if (id != null) {
append(", id=")
append(id)
}
if (annotation != null) {
append(", annotation=")
append(annotation)
}
if (otherAttrs.isNotEmpty()) {
append(", otherAttrs=")
append(otherAttrs)
}
append(")")
}
}
}

0 comments on commit 4b46f9c

Please sign in to comment.