class EdgeDescriptor[N, E <: AnyEdge[N]] extends EdgeDescriptorBase[N, E]
Determines how to extract data of non-labeled edges from a JValue and how to decompose such an edge to a JValue.
Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.
- Alphabetic
- By Inheritance
- EdgeDescriptor
- EdgeDescriptorBase
- GenEdgeDescriptor
- TypeId
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new EdgeDescriptor(edgeFactory: (N, N) => E, customSerializer: Option[Serializer[_ <: EdgeParameters]] = None, extraClasses: List[Class[_]] = Nil, typeId: String = Defaults.defaultId)(implicit classTag: ClassTag[E])
- edgeFactory
factory method to create
DiEdge
orUnDiEdge
.- customSerializer
Some
list-json custom serializer orNone
.- extraClasses
list of classes referenced by this node provided they are to be (de)serialized; empty by default.
- typeId
denotes the edge type in a JSON text.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toany2stringadd[EdgeDescriptor[N, E]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (EdgeDescriptor[N, E], B)
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toArrowAssoc[EdgeDescriptor[N, E]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val classTag: ClassTag[_]
- Definition Classes
- GenEdgeDescriptor
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val customSerializer: Option[Serializer[_ <: Parameters]]
- Definition Classes
- EdgeDescriptorBase
- final def decompose(edge: E)(implicit descriptor: Descriptor[N]): JValue
- Definition Classes
- EdgeDescriptorBase
- val edgeFactory: (N, N) => E
- def ensuring(cond: (EdgeDescriptor[N, E]) => Boolean, msg: => Any): EdgeDescriptor[N, E]
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toEnsuring[EdgeDescriptor[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (EdgeDescriptor[N, E]) => Boolean): EdgeDescriptor[N, E]
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toEnsuring[EdgeDescriptor[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): EdgeDescriptor[N, E]
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toEnsuring[EdgeDescriptor[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): EdgeDescriptor[N, E]
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toEnsuring[EdgeDescriptor[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val extraClasses: List[Class[_]]
- Definition Classes
- EdgeDescriptorBase
- def extract(jsonEdge: JValue): EdgeParameters
- Definition Classes
- EdgeDescriptor → EdgeDescriptorBase
- implicit val formats: Formats
- Attributes
- protected
- Definition Classes
- EdgeDescriptorBase
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeIds(ends: OneOrMore[N], descriptor: Descriptor[N]): OneOrMoreNodeIds
- Attributes
- protected
- Definition Classes
- EdgeDescriptorBase
- def nodeIds(edge: E, descriptor: Descriptor[N]): SeveralNodeIds
- Attributes
- protected
- Definition Classes
- EdgeDescriptorBase
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toParameters(edge: E)(implicit descriptor: Descriptor[N]): EdgeParameters
- Attributes
- protected
- Definition Classes
- EdgeDescriptor → EdgeDescriptorBase
- def toString(): String
- Definition Classes
- AnyRef → Any
- val typeId: String
- Definition Classes
- GenEdgeDescriptor → TypeId
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toStringFormat[EdgeDescriptor[N, E]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (EdgeDescriptor[N, E], B)
- Implicit
- This member is added by an implicit conversion from EdgeDescriptor[N, E] toArrowAssoc[EdgeDescriptor[N, E]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.