case class MicrodataItem(properties: Seq[MicrodataProperty], itemtype: Option[URI] = None, id: Option[URI] = None) extends MicrodataValue with MicrodataQuery with Product with Serializable
Represents a microdata "item". An item consists of a set of properties (name-value pairs) and an optional itemtype and unique id.
Note Properties are represented by a sequence of MicrodataProperty and not a map as a property name can have multiple values in a microdata document.
- properties
Map of name-value pairs.
- itemtype
Optional type of the item defined by a
URI
.- id
Optional unique identifier of the item defined by a
URI
.
- Alphabetic
- By Inheritance
- MicrodataItem
- Serializable
- Serializable
- Product
- Equals
- MicrodataQuery
- MicrodataValue
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MicrodataItem(properties: Seq[MicrodataProperty], itemtype: Option[URI] = None, id: Option[URI] = None)
- properties
Map of name-value pairs.
- itemtype
Optional type of the item defined by a
URI
.- id
Optional unique identifier of the item defined by a
URI
.
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
\(key: String): MicrodataQuery
Query item properties using XPath-like syntax.
Query item properties using XPath-like syntax.
For example:
scala> val item = MicrodataItem(properties = Seq(("name", MicrodataString("Brian")))) scala> item \ "name" res1: MicrodataQuery = QueryResults(List(MicrodataString(Brian)))
- Definition Classes
- MicrodataQuery
-
def
\\(key: String): MicrodataQuery
Recursively query item properties using XPath-like syntax.
Recursively query item properties using XPath-like syntax.
For example:
scala> val item = MicrodataItem(properties = Seq(("friend", MicrodataItem(properties = Seq(("name", MicrodataString("Brian"))))))) scala> item \\ "name" res1: MicrodataQuery = QueryResults(List(MicrodataString(Brian)))
- Definition Classes
- MicrodataQuery
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
children: Seq[MicrodataValue]
Returns all the child elements of this microdata item.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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()
- val id: Option[URI]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val itemtype: Option[URI]
-
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()
- val properties: Seq[MicrodataProperty]
-
lazy val
results: Seq[MicrodataItem]
Results found for this query.
Results found for this query.
- Definition Classes
- MicrodataItem → MicrodataQuery
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )