case class CtsUrn(urnString: String) extends Urn with LogSupport with Product with Serializable
A URN for a canonically citable text or passage of text.
- urnString
String representation of CtsUrn validating againt the CtsUrn specification
- Annotations
- @JSExportAll()
- Alphabetic
- By Inheritance
- CtsUrn
- Product
- Equals
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Serializable
- Urn
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def <(urn: CtsUrn): Boolean
-
def
<=(urn: CtsUrn): Boolean
True if this CtsUrn is contained by or equal to a given CtsUrn.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(urn: CtsUrn): Boolean
- def ><(u: Urn): Boolean
- def ><(urn: CtsUrn): Boolean
- def >=(urn: CtsUrn): Boolean
-
def
addExemplar(ex: String): CtsUrn
Create a new CtsUrn by adding or replacing the exemplar part of the passage component with a given value.
-
def
addPassage(psg: String): CtsUrn
Create a new CtsUrn by adding or replacing the passage component with a given value.
Create a new CtsUrn by adding or replacing the passage component with a given value.
- psg
String value of new passage reference.
-
def
addVersion(v: String): CtsUrn
Create a new CtsUrn by adding or replacing the version part of the work hierarchy with a given value.
Create a new CtsUrn by adding or replacing the version part of the work hierarchy with a given value.
- v
Version identifier for new URN.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
citationDepth: Vector[Int]
Return a Vector of integers representing the citation-depth of the passage component.
Return a Vector of integers representing the citation-depth of the passage component. May be empty if there is no passage component. Will contain one integer if the URN is not a range; two if it is.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
collapsePassageBy(i: Int): CtsUrn
Create a new CtsUrn by collapsing the passage hierarchy by
i
levels.Create a new CtsUrn by collapsing the passage hierarchy by
i
levels.- i
Number of levels to drop from passage hierarchy.
-
def
collapsePassageTo(i: Int): CtsUrn
Create a new CtsUrn by collapsing the passage hierarchy to a specified level.
Create a new CtsUrn by collapsing the passage hierarchy to a specified level.
- i
Number of levels to include in the passage hierarchy.
-
def
componentSyntaxOk: Boolean
True if URN's syntax for required components is valid.
- val componentsRE: Regex
- val componentsTriple: (String, String, String)
-
def
concrete: Boolean
True if URN is a version or exemplar.
-
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
dropExemplar: CtsUrn
Create a new CtsUrn by dropping the exemplar part of the work component, if any.
-
def
dropPassage: CtsUrn
Create a new CtsUrn by dropping the passage component from this URN.
-
def
dropSubref: CtsUrn
Create a new CtsUrn by dropping any extended reference parts from this CtsUrn.
-
def
dropVersion: CtsUrn
Create a new CtsUrn by dropping the version part from the work component.
-
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
-
def
exemplar: String
String value of optional exemplar part of work hierarchy.
String value of optional exemplar part of work hierarchy. DEPRECATED in favor of exemplarOption
-
def
exemplarOption: Option[String]
Optional exemplar part of work hierarchy.
-
def
fullyValid: Boolean
True if value submitted to construct this CtsUrn complies fully with the CtsUrn specification.
-
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
-
def
isExemplar: Boolean
True if URN is an exemplar.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNotional: Boolean
True if URN is a notional work.
-
def
isPoint: Boolean
True if the URN refers to a point (leaf node or containing node).
-
def
isRange: Boolean
True if the passage component refers to a range.
-
def
isTextGroup: Boolean
True if URN is a notional work.
-
def
isVersion: Boolean
True if URN is a version.
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
passageComponent: String
Optional passage component of the URN.
-
def
passageContains(urn: CtsUrn): Boolean
True if passage reference in
urn
is contained in or equal to the passage reference of this CtsUrn.True if passage reference in
urn
is contained in or equal to the passage reference of this CtsUrn.- urn
CtsUrn to compare to this one.
-
def
passageMatch(urn: CtsUrn): Boolean
True if the passage reference of either this or a given CtsUrn is contained by the other.
True if the passage reference of either this or a given CtsUrn is contained by the other.
- urn
CtsUrn to compare to this one
-
def
passageNode: String
String value of the optional single passage node.
-
val
passageNodeOption: Option[String]
Optional single passage node.
-
def
passageNodeParts: Array[String]
Array splitting optional single passage node into reference and extended reference.
-
def
passageNodeRef: String
String value of reference part of optional passage node.
-
def
passageNodeRefOption: Option[String]
Reference part of optional passage node.
-
def
passageNodeSubref: String
String value of optional subference component from optional passage node.
-
def
passageNodeSubrefIndex: Int
Integer value of 0ptional index of the optional passage node.
-
def
passageNodeSubrefIndexOption: Option[Int]
Optional index value of the optional passage node.
-
def
passageNodeSubrefOption: Option[String]
Extract optional subference component from optional passage node using packag object's subrefOption function.
-
def
passageNodeSubrefText: String
String value of optional indexed text of the optional passage node.
-
def
passageNodeSubrefTextOption: Option[String]
Optional indexed text of the optional passage node.
-
def
passageParts: Vector[String]
Array of hyphen-separated parts of the passageComponent.
Array of hyphen-separated parts of the passageComponent.
The Array will contain 0 elements if passageComponent is empty, 1 element if the passageComponent is a node reference, and 2 elements if the passageComponent is a range reference.
-
def
passageSyntaxOk: Boolean
True if URN's syntax for optional passage component is valid.
-
def
rangeBegin: String
String value of first part of an optional range expression in optional passage component.
-
def
rangeBeginOption: Option[String]
First part of an optional range expression in optional passage component.
-
def
rangeBeginParts: Array[String]
Array splitting first part of optional range expression into reference and extended reference.
-
def
rangeBeginRef: String
String value of reference part of first part of range in optional passage node.
-
def
rangeBeginRefOption: Option[String]
Reference part of first part of range in optional passage node.
-
def
rangeBeginSubref: String
String value of optional subference component from first part of range in optional passage node.
-
def
rangeBeginSubrefIndex: Int
Integer value of optional index of the first part of range of optional passage node.
-
def
rangeBeginSubrefIndexOption: Option[Int]
Optional index value of the first part of range of optional passage node.
-
def
rangeBeginSubrefOption: Option[String]
Extract optional subference component from first part of ragne in optional passage node using packag object's subrefOption function.
-
def
rangeBeginSubrefText: String
String value of optional indexed text of the the first part of range of optional passage node.
-
def
rangeBeginSubrefTextOption: Option[String]
Optional indexed text of the first part of range in optional passage node.
-
def
rangeEnd: String
String value of second part of an optional range expression in optional passage component.
-
def
rangeEndOption: Option[String]
Second part of an optional range expression in optional passage component.
-
def
rangeEndParts: Array[String]
Array splitting second part of optional range expression into reference and extended reference.
-
def
rangeEndRef: String
String value of reference part of second part of range in optional passage node.
-
def
rangeEndRefOption: Option[String]
Reference part of second part of range in optional passage node.
-
def
rangeEndSubref: String
String value of optional subference component from second part of range in optional passage node
-
def
rangeEndSubrefIndex: Int
Integer value of optional index of the second part of range of optional passage component.
-
def
rangeEndSubrefIndexOption: Option[Int]
Optional index value of the second part of range of optional passage node.
-
def
rangeEndSubrefOption: Option[String]
Extract optional subference component from second part of ragne in optional passage node using packag object's subrefOption function
-
def
rangeEndSubrefText: String
String value of optional indexed text of the second part of range in optional passage node.
-
def
rangeEndSubrefTextOption: Option[String]
Optional indexed text of the second part of range in optional passage node.
-
def
rangeToUrnVector: Vector[CtsUrn]
Return a Vector of CtsUrns representing the ends of a range-URN.
Return a Vector of CtsUrns representing the ends of a range-URN. If the URN is not a range, will return a one-element vector.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
textGroup: String
Required textgroup part of work hierarchy.
-
def
toExemplar: CtsUrn
Create a new CtsUrn identifying this URN's exemplar.
-
def
toString(): String
Override default toString function.
Override default toString function.
- Definition Classes
- CtsUrn → AnyRef → Any
-
def
toTextGroup: CtsUrn
Create a new CtsUrn identifying this URN's text group.
-
def
toVersion: CtsUrn
Create a new CtsUrn identifying this URN's version.
-
def
toWork: CtsUrn
Create a new CtsUrn identifying this URN's work.
-
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 work hierarchy.
String value of optional version part of work hierarchy. DEPRECATED in favor of versionOption
-
def
versionOption: Option[String]
Optional version part of work hierarchy.
-
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
work: String
String value of optional work part of work hierarchy.
String value of optional work part of work hierarchy. DEPRECATED in favor of workOption
-
val
workComponent: String
Required work component of the URN.
-
def
workContains(urn: CtsUrn): Boolean
True if work reference in
urn
is contained by the work reference of this CtsUrn.True if work reference in
urn
is contained by the work reference of this CtsUrn.- urn
CtsUrn to compare to this one.
-
def
workLevel: WorkLevel.Value
Enumerated WorkLevel for this workComponent.
-
def
workMatch(urn: CtsUrn): Boolean
true if the passage reference of either
urn
of this CtsUrn is contained by the other.true if the passage reference of either
urn
of this CtsUrn is contained by the other.- urn
CtsUrn to compare to this one
-
def
workOption: Option[String]
Optional work part of work hierarchy.
-
val
workParts: Vector[String]
Array of dot-separate parts of the workComponent.
- def ~~(u: Urn): Boolean
- def ~~(urn: CtsUrn): 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.