Class

scalaxb.compiler.xsd

GenMonocleLens

Related Doc: package xsd

Permalink

class GenMonocleLens extends GenLens with ContextProcessor

This class generates lens for Monocle. it is inspired from Gerolf Seitz work: Lensed

object PurchaseOrderType { def shipTo: monocle.Lens[PurchaseOrderType, ipo.Addressable] = monocle.Lens[PurchaseOrderType, ipo.Addressable](_.shipTo)((shipTo: ipo.Addressable) => (purchaseordertype: PurchaseOrderType) => purchaseordertype.copy(shipTo = shipTo)) def billTo: monocle.Lens[PurchaseOrderType, ipo.Addressable] = monocle.Lens[PurchaseOrderType, ipo.Addressable](_.billTo)((billTo: ipo.Addressable) => (purchaseordertype: PurchaseOrderType) => purchaseordertype.copy(billTo = billTo)) def comment: monocle.Lens[PurchaseOrderType, Option[String]] = monocle.Lens[PurchaseOrderType, Option[String]](_.comment)((comment: Option[String]) => (purchaseordertype: PurchaseOrderType) => purchaseordertype.copy(comment = comment)) def items: monocle.Lens[PurchaseOrderType, ipo.Items] = monocle.Lens[PurchaseOrderType, ipo.Items](_.items)((items: ipo.Items) => (purchaseordertype: PurchaseOrderType) => purchaseordertype.copy(items = items)) def attributes: monocle.Lens[PurchaseOrderType, Map[String, scalaxb.DataRecord[Any]]] = monocle.Lens[PurchaseOrderType, Map[String, scalaxb.DataRecord[Any]]](_.attributes)((attributes: Map[String, scalaxb.DataRecord[Any]]) => (purchaseordertype: PurchaseOrderType) => purchaseordertype.copy(attributes = attributes))

class PurchaseOrderTypeW[A](l: monocle.Lens[A, PurchaseOrderType]) { def shipTo: monocle.Lens[A, ipo.Addressable] = l composeLens PurchaseOrderType.shipTo def billTo: monocle.Lens[A, ipo.Addressable] = l composeLens PurchaseOrderType.billTo def comment: monocle.Lens[A, Option[String]] = l composeLens PurchaseOrderType.comment def items: monocle.Lens[A, ipo.Items] = l composeLens PurchaseOrderType.items def attributes: monocle.Lens[A, Map[String, scalaxb.DataRecord[Any]]] = l composeLens PurchaseOrderType.attributes }

implicit def lens2PurchaseOrderTypeW[A](l: monocle.Lens[A, PurchaseOrderType]): PurchaseOrderTypeW[A] = new PurchaseOrderTypeW(l) }

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenMonocleLens
  2. ContextProcessor
  3. PackageName
  4. ScalaNames
  5. GenLens
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenMonocleLens(config: Config)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val XML_PREFIX: String

    Permalink
    Definition Classes
    ContextProcessor
  5. val XML_URI: String

    Permalink
    Definition Classes
    ContextProcessor
  6. val XSI_PREFIX: String

    Permalink
    Definition Classes
    ContextProcessor
  7. val XSI_URL: String

    Permalink
    Definition Classes
    ContextProcessor
  8. val XS_PREFIX: String

    Permalink
    Definition Classes
    ContextProcessor
  9. val XS_URL: String

    Permalink
    Definition Classes
    ContextProcessor
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def buildDefComposeLens(className: String, param: Param): String

    Permalink
    Definition Classes
    GenMonocleLensGenLens
  12. def buildDefLens(className: String, param: Param): String

    Permalink
    Definition Classes
    GenMonocleLensGenLens
  13. def buildImport: String

    Permalink
    Definition Classes
    GenMonocleLensGenLens
  14. def buildObjectLens(localName: String, defLenses: String, defComposeLenses: String): String

    Permalink
    Definition Classes
    GenMonocleLensGenLens
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. var config: Config

    Permalink
    Definition Classes
    GenMonocleLensContextProcessor
  17. def containsEnumeration(decl: SimpleTypeDecl): Boolean

    Permalink
    Definition Classes
    ContextProcessor
  18. def containsSingleChoice(seq: SequenceDecl): Boolean

    Permalink
    Definition Classes
    ContextProcessor
  19. lazy val contentsSizeLimit: Int

    Permalink
    Definition Classes
    ContextProcessor
  20. lazy val enumNameMaxLength: Int

    Permalink
    Definition Classes
    ContextProcessor
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. def escapeKeyWord(name: String): String

    Permalink
  24. def filterEnumeration(decl: SimpleTypeDecl): List[EnumerationDecl[_]]

    Permalink
    Definition Classes
    ContextProcessor
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def generateAutoPackages(schemas: Seq[SchemaDecl]): Seq[(Option[String], Option[String])]

    Permalink
    Definition Classes
    ContextProcessor
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  28. def getTypeGlobally(namespace: Option[String], typeName: String, context: XsdContext): TypeDecl

    Permalink
    Definition Classes
    ContextProcessor
  29. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  30. def identifier(value: String): String

    Permalink
    Definition Classes
    ContextProcessor
  31. def indent(indent: Int): String

    Permalink
    Definition Classes
    ContextProcessor
  32. def isCommonlyUsedWord(s: String): Boolean

    Permalink
    Definition Classes
    ScalaNames
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def isKeyword(str: String): Boolean

    Permalink
    Definition Classes
    ScalaNames
  35. def isSpecialAttributeWord(str: String): Boolean

    Permalink
    Definition Classes
    ScalaNames
  36. def isWrapped(namespace: Option[String], family: List[String]): Boolean

    Permalink
    Definition Classes
    ContextProcessor
  37. def isWrapped(decl: ComplexTypeDecl): Boolean

    Permalink
    Definition Classes
    ContextProcessor
  38. def makeCompositorNames(context: XsdContext): Unit

    Permalink
    Definition Classes
    ContextProcessor
  39. def makeEnumValues(decl: SimpleTypeDecl, scope: NamespaceBinding, context: XsdContext): Unit

    Permalink
    Definition Classes
    ContextProcessor
  40. def makeGroupComplexType(group: GroupDecl): ComplexTypeDecl

    Permalink
    Definition Classes
    ContextProcessor
  41. def makeParamName(name0: String, attribute: Boolean): String

    Permalink
    Definition Classes
    ContextProcessor
  42. def makePrefix(namespace: Option[String], context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  43. def makeProtectedTypeName(namespace: Option[String], group: AttributeGroupDecl, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  44. def makeProtectedTypeName(namespace: Option[String], attr: AttributeDecl, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  45. def makeProtectedTypeName(namespace: Option[String], decl: SimpleTypeDecl, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  46. def makeProtectedTypeName(namespace: Option[String], decl: ComplexTypeDecl, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  47. def makeProtectedTypeName(namespace: Option[String], prefix: Option[String], elem: ElemDecl, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  48. def makeProtectedTypeName(schema: SchemaDecl, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  49. def makeProtectedTypeName(namespace: Option[String], initialName: String, postfix: String, context: XsdContext): String

    Permalink
    Definition Classes
    ContextProcessor
  50. def makeTraitName(decl: ComplexTypeDecl): String

    Permalink
    Definition Classes
    ContextProcessor
  51. def makeTypeName(name: String): String

    Permalink
    Definition Classes
    ContextProcessor
  52. lazy val namedAttributes: Boolean

    Permalink
    Definition Classes
    ContextProcessor
  53. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  54. val newline: String

    Permalink
    Definition Classes
    ContextProcessor
  55. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  56. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  57. def packageName(namespace: Option[String], context: XsdContext): Option[String]

    Permalink
    Definition Classes
    PackageName
  58. def packageName(group: AttributeGroupDecl, context: XsdContext): Option[String]

    Permalink
    Definition Classes
    PackageName
  59. def packageName(decl: SimpleTypeDecl, context: XsdContext): Option[String]

    Permalink
    Definition Classes
    PackageName
  60. def packageName(decl: ComplexTypeDecl, context: XsdContext): Option[String]

    Permalink
    Definition Classes
    PackageName
  61. def packageName(schema: SchemaDecl, context: XsdContext): Option[String]

    Permalink
    Definition Classes
    PackageName
  62. def processContext(context: XsdContext, schemas: Seq[SchemaDecl]): Unit

    Permalink
    Definition Classes
    ContextProcessor
  63. def quote(value: String): String

    Permalink
    Definition Classes
    ContextProcessor
  64. def quote(value: Option[String]): String

    Permalink
    Definition Classes
    ContextProcessor
  65. def resolveType(schema: SchemaDecl, context: XsdContext): Unit

    Permalink
    Definition Classes
    ContextProcessor
  66. lazy val scalaNames: ScalaNames

    Permalink
  67. lazy val sequenceChunkSize: Int

    Permalink
    Definition Classes
    ContextProcessor
  68. def singleChoice(seq: SequenceDecl): ChoiceDecl

    Permalink
    Definition Classes
    ContextProcessor
  69. def splitLong[A <: HasParticle](rest: List[Particle])(f: (List[Particle]) ⇒ A): List[A]

    Permalink
    Definition Classes
    ContextProcessor
  70. def startsWithNumber(name: String): Boolean

    Permalink
    Definition Classes
    ContextProcessor
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  73. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ContextProcessor

Inherited from PackageName

Inherited from ScalaNames

Inherited from GenLens

Inherited from AnyRef

Inherited from Any

Ungrouped