Package org.eclipse.lemminx.dom
Class SchemaLocationHint
java.lang.Object
org.eclipse.lemminx.dom.SchemaLocationHint
- All Implemented Interfaces:
DOMRange
Represents one of the location hints provided in an xsi:schemaLocation
attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaLocationHint(int start, int end, String hint, SchemaLocation parent) Create a new SchemaLocationHint object that represents one of the location hints given in the parentSchemaLocation. -
Method Summary
Modifier and TypeMethodDescriptionintgetEnd()Returns the offset from the beginning of the document where this location hint endsgetHint()Returns the location hint that this SchemaLocationHint representsReturns the owner document.intgetStart()Returns the offset from the beginning of the document where this location hint starts
-
Constructor Details
-
SchemaLocationHint
Create a new SchemaLocationHint object that represents one of the location hints given in the parentSchemaLocation.- Parameters:
start- The offset from the beginning of the document where this location hint startsend- The offset from the beginning of the document where this location hint endshint- The hint to the location of a schema (A URI that points to a schema)parent- TheSchemaLocationin which this hint was given
-
-
Method Details
-
getHint
Returns the location hint that this SchemaLocationHint represents- Returns:
- The location hint, a URI to a schema, as a String
-
getStart
public int getStart()Returns the offset from the beginning of the document where this location hint starts -
getEnd
public int getEnd()Returns the offset from the beginning of the document where this location hint ends -
getOwnerDocument
Description copied from interface:DOMRangeReturns the owner document.- Specified by:
getOwnerDocumentin interfaceDOMRange- Returns:
- the owner document.
-