Stay organized with collections
Save and categorize content based on your preferences.
Locator2Impl
open class Locator2Impl : LocatorImpl, Locator2
SAX2 extension helper for holding additional Entity information, implementing the Locator2
interface. This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.
This is not part of core-only SAX2 distributions.
Summary
Public constructors |
Construct a new, empty Locator2Impl object.
|
Copy an existing Locator or Locator2 object.
|
Public methods |
open String! |
Returns the current value of the encoding property.
|
open String! |
Returns the current value of the version property.
|
open Unit |
Assigns the current value of the encoding property.
|
open Unit |
Assigns the current value of the version property.
|
Public constructors
Locator2Impl
Locator2Impl()
Construct a new, empty Locator2Impl object. This will not normally be useful, since the main purpose of this class is to make a snapshot of an existing Locator.
Locator2Impl
Locator2Impl(locator: Locator!)
Copy an existing Locator or Locator2 object. If the object implements Locator2, values of the encoding and versionstrings are copied, otherwise they set to null.
Parameters |
locator |
Locator!: The existing Locator object. |
Public methods
getEncoding
open fun getEncoding(): String!
Returns the current value of the encoding property.
Return |
String! |
the current value of the encoding property. |
getXMLVersion
open fun getXMLVersion(): String!
Returns the current value of the version property.
Return |
String! |
the current value of the version property. |
setEncoding
open fun setEncoding(encoding: String!): Unit
Assigns the current value of the encoding property.
Parameters |
encoding |
String!: the new "encoding" value |
setXMLVersion
open fun setXMLVersion(version: String!): Unit
Assigns the current value of the version property.
Parameters |
version |
String!: the new "version" value |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Locator2Impl\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLocator2Impl\n============\n\n```\nopen class Locator2Impl : LocatorImpl, Locator2\n```\n\n|---|---|-----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [org.xml.sax.helpers.LocatorImpl](../helpers/LocatorImpl.html#) ||\n| | ↳ | [org.xml.sax.ext.Locator2Impl](#) |\n\nSAX2 extension helper for holding additional Entity information, implementing the [Locator2](/reference/kotlin/org/xml/sax/ext/Locator2) interface. *This module, both source code and documentation, is in the Public Domain, and comes with **NO WARRANTY**.*\n\nThis is not part of core-only SAX2 distributions.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Locator2Impl](#Locator2Impl())`()` Construct a new, empty Locator2Impl object. |\n| [Locator2Impl](#Locator2Impl(org.xml.sax.Locator))`(`locator:` `[Locator](../Locator.html#)!`)` Copy an existing Locator or Locator2 object. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getEncoding](#getEncoding())`()` Returns the current value of the encoding property. |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getXMLVersion](#getXMLVersion())`()` Returns the current value of the version property. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setEncoding](#setEncoding(kotlin.String))`(`encoding:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Assigns the current value of the encoding property. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setXMLVersion](#setXMLVersion(kotlin.String))`(`version:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Assigns the current value of the version property. |\n\n| Inherited functions ||\n|---|---|\n| From class [LocatorImpl](../helpers/LocatorImpl.html#) |-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getColumnNumber](../helpers/LocatorImpl.html#getColumnNumber())`()` Return the saved column number (1-based). \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getLineNumber](../helpers/LocatorImpl.html#getLineNumber())`()` Return the saved line number (1-based). \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getPublicId](../helpers/LocatorImpl.html#getPublicId())`()` Return the saved public identifier. \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getSystemId](../helpers/LocatorImpl.html#getSystemId())`()` Return the saved system identifier. \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setColumnNumber](../helpers/LocatorImpl.html#setColumnNumber(kotlin.Int))`(`columnNumber:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set the column number for this locator (1-based). \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setLineNumber](../helpers/LocatorImpl.html#setLineNumber(kotlin.Int))`(`lineNumber:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set the line number for this locator (1-based). \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setPublicId](../helpers/LocatorImpl.html#setPublicId(kotlin.String))`(`publicId:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Set the public identifier for this locator. \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setSystemId](../helpers/LocatorImpl.html#setSystemId(kotlin.String))`(`systemId:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Set the system identifier for this locator. \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### Locator2Impl\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nLocator2Impl()\n```\n\nConstruct a new, empty Locator2Impl object. This will not normally be useful, since the main purpose of this class is to make a snapshot of an existing Locator. \n\n### Locator2Impl\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nLocator2Impl(locator: Locator!)\n```\n\nCopy an existing Locator or Locator2 object. If the object implements Locator2, values of the *encoding* and *version* strings are copied, otherwise they set to *null*.\n\n| Parameters ||\n|-----------|------------------------------------------------------------|\n| `locator` | [Locator](../Locator.html#)!: The existing Locator object. |\n\nPublic methods\n--------------\n\n### getEncoding\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getEncoding(): String!\n```\n\nReturns the current value of the encoding property.\n\n| Return ||\n|-----------------------------------------------------------------------------------|---------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the current value of the encoding property. |\n\n**See Also**\n\n- [#setEncoding](#setEncoding(kotlin.String)) \n\n### getXMLVersion\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getXMLVersion(): String!\n```\n\nReturns the current value of the version property.\n\n| Return ||\n|-----------------------------------------------------------------------------------|--------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the current value of the version property. |\n\n**See Also**\n\n- [#setXMLVersion](#setXMLVersion(kotlin.String)) \n\n### setEncoding\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setEncoding(encoding: String!): Unit\n```\n\nAssigns the current value of the encoding property.\n\n| Parameters ||\n|------------|-------------------------------------------------------------------------------------------------------------|\n| `encoding` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the new \"encoding\" value |\n\n**See Also**\n\n- [#getEncoding](#getEncoding()) \n\n### setXMLVersion\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setXMLVersion(version: String!): Unit\n```\n\nAssigns the current value of the version property.\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------|\n| `version` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the new \"version\" value |\n\n**See Also**\n\n- [#getXMLVersion](#getXMLVersion())"]]