object ElementaryAttribute
Convenient builder for elementary attribute definitions without advanced validation (type validation is done).
Examples
// Minimum ElementaryAttribute[Int](id = "size") // Maximum ElementaryAttribute[Int]( id = "size", name = "Size", description = "Size of the container", default = 5, options = List( "Small" -> 2, "Medium" -> 5, "Large" -> 10 )
- Alphabetic
- By Inheritance
- ElementaryAttribute
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[T](id: String, name: String = null, description: String = "", default: Option[T] = None, options: Traversable[(String, T)] = Nil)(implicit arg0: ClassTag[T]): ElementaryAttributeDefinition[T] { ... /* 7 definitions in type refinement */ }
Builds an elementary attribute definition.
Builds an elementary attribute definition.
- T
Attribute type
- id
Unique identity for the attribute
- name
Optional name of the attribute
- description
Optional description of the attribute
- default
Optional default value for the attribute
- options
Optional list of possible option labels and values that the attribute can take
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )