Package org.eclipse.lemminx.dom
Class SchemaLocationHint
- java.lang.Object
-
- org.eclipse.lemminx.dom.SchemaLocationHint
-
-
Constructor Summary
Constructors Constructor Description SchemaLocationHint(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEnd()Returns the offset from the beginning of the document where this location hint endsStringgetHint()Returns the location hint that this SchemaLocationHint representsDOMDocumentgetOwnerDocument()Returns the owner document.intgetStart()Returns the offset from the beginning of the document where this location hint starts
-
-
-
Constructor Detail
-
SchemaLocationHint
public SchemaLocationHint(int start, int end, String hint, SchemaLocation parent)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 Detail
-
getHint
public String 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
public DOMDocument getOwnerDocument()
Description copied from interface:DOMRangeReturns the owner document.- Specified by:
getOwnerDocumentin interfaceDOMRange- Returns:
- the owner document.
-
-