case class Cite2Urn(urnString: String) extends Urn with LogSupport with Product with Serializable
A URN for a citable object in a collection.
- urnString
String representation of Cite2Urn validating against the Cite2Urn specification
- Annotations
- @JSExportAll()
- Alphabetic
- By Inheritance
- Cite2Urn
- Product
- Equals
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Serializable
- Urn
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Cite2Urn(urnString: String)
create a new Cite2Urn.
create a new Cite2Urn. The long constructor validates a submitted string against the complex syntactic requirements of the CITE2 URN specification, and defines a number of functions for manipulating CITE2 URN values.
- urnString
String representation of Cite2Urn validating against the Cite2Urn specification
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
addProperty(propertyId: String): Cite2Urn
Adds a property identifier to the object hierarchy.
Adds a property identifier to the object hierarchy.
- propertyId
Identifier for the property.
-
def
addSelector(selectorId: String): Cite2Urn
Adds an object selector to the URN.
Adds an object selector to the URN.
- selectorId
Identifier for the selected object.
-
def
addVersion(versionId: String): Cite2Urn
Adds a version identifier to the object hierarchy.
Adds a version identifier to the object hierarchy.
- versionId
Identifier for the property.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val collection: String
-
val
collectionComponent: String
Required work component of the URN.
- def collectionContainedIn(urn: Cite2Urn): Boolean
- val collectionParts: Vector[String]
- def collectionsMatch(u: Cite2Urn): Boolean
-
val
components: Array[String]
Array of top-level, colon-delimited components.
-
macro
def
debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def debugString: Vector[String]
-
def
dropExtensions: Cite2Urn
Trims any extended citation components off of passage or range selectors.
-
def
dropProperty: Cite2Urn
Trims the property identifier off of a URN, if it is present.
Trims the property identifier off of a URN, if it is present. This effectively converts a property citation to an object citation.
-
def
dropSelector: Cite2Urn
Trims the selector component off of a URN, if it is present.
Trims the selector component off of a URN, if it is present. This effectively converts a citation of a single value to a citation of a collection of values (objects or properties).
- def dropVersion: Cite2Urn
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
macro
def
error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
macro
def
info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isObject: Boolean
True if URN includes a selector for a single object.
-
val
isRange: Boolean
True if URN identifies a range within an ordered collection.
- val labels: Vector[String]
-
macro
def
logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
lazy val
logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
-
val
namespace: String
Required namespace component of the URN.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
noObject: Boolean
True if URN does not include an object selector component.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
objectComponent: String
String value of optional object selector component.
-
def
objectComponentOption: Option[String]
Optional object selector component.
- def objectExtension: String
- def objectExtensionOption: Option[String]
-
val
objectOption: Option[String]
Single object identifier as an Option.
-
val
objectParts: Vector[String]
For non-empty object component, hyphen-separated parts allowed in ordered collections.
- def objectsMatch(u: Cite2Urn): Boolean
-
def
property: String
String value of optional property part of collection component.
-
def
propertyOption: Option[String]
Optional property part of collection component.
-
def
rangeBegin: String
String value of first part of range identifier.
- def rangeBeginExtension: String
- def rangeBeginExtensionOption: Option[String]
-
val
rangeBeginOption: Option[String]
First part of range identifier as an Option.
- def rangeBeginParts: Vector[String]
- def rangeBeginUrn: Cite2Urn
-
def
rangeEnd: String
String value of second part of range identifier.
- def rangeEndExtension: String
- def rangeEndExtensionOption: Option[String]
-
val
rangeEndOption: Option[String]
Second part of range identifier as an Option.
- def rangeEndParts: Vector[String]
- def rangeEndUrn: Cite2Urn
- def singleObjectParts: Vector[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Cite2Urn → AnyRef → Any
-
macro
def
trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- val urnString: String
-
def
version: String
String value of optional version part of collection component.
-
def
versionOption: Option[String]
Optional version part of collection component.
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
macro
def
warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def ~~(u: Cite2Urn): Boolean
- def ~~(u: Urn): Boolean
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.