Class XMLModelDeclaration
java.lang.Object
org.eclipse.lemminx.extensions.xerces.xmlmodel.XMLModelDeclaration
XML model declaration.
<?xml-model href="http://www.docbook.org/xml/5.0/xsd/docbook.xsd"?>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHref()Returns the location of the referenced schemaintReturns the start offset where href is declared.Returns the location of the schematypensintReturns the start offset where schematypens is declared.getType()Returns the location of the typeintReturns the start offset where type is declared.static booleanisApplicableForDTD(XMLModelDeclaration modelDeclaration) static booleanisApplicableForRelaxNG(XMLModelDeclaration modelDeclaration) static booleanisApplicableForXSD(XMLModelDeclaration modelDeclaration) static XMLModelDeclarationparse(char[] data, int offset, int length) Returns the result of parse the data of xml-model processing insruction.static XMLModelDeclarationparse(org.apache.xerces.xni.XMLString data) voidSet the location of the referenced schemavoidsetHrefOffset(int hrefOffset) Set the start offset where href is declared.voidsetSchematypens(String schematypens) Set the location of the schematypensvoidsetSchematypensOffset(int schematypensOffset) Set the start offset where schematypens is declared.voidSet the location of the typevoidsetTypeOffset(int typeOffset) Set the start offset where type is declared.
-
Constructor Details
-
XMLModelDeclaration
public XMLModelDeclaration()
-
-
Method Details
-
getHref
Returns the location of the referenced schema- Returns:
- the location of the referenced schema
-
setHref
Set the location of the referenced schema- Parameters:
href- the location of the referenced schema
-
getHrefOffset
public int getHrefOffset()Returns the start offset where href is declared.- Returns:
- the start offset where href is declared.
-
setHrefOffset
public void setHrefOffset(int hrefOffset) Set the start offset where href is declared.- Parameters:
hrefOffset- the start offset where href is declared
-
getType
Returns the location of the type- Returns:
- the location of the type
-
setType
Set the location of the type- Parameters:
type- the location of type
-
getTypeOffset
public int getTypeOffset()Returns the start offset where type is declared.- Returns:
- the start offset where type is declared.
-
setTypeOffset
public void setTypeOffset(int typeOffset) Set the start offset where type is declared.- Parameters:
typeOffset- the start offset where type is declared
-
getSchematypens
Returns the location of the schematypens- Returns:
- the location of the schematypens
-
setSchematypens
Set the location of the schematypens- Parameters:
schematypens- the location of schematypens
-
getSchematypensOffset
public int getSchematypensOffset()Returns the start offset where schematypens is declared.- Returns:
- the start offset where schematypens is declared.
-
setSchematypensOffset
public void setSchematypensOffset(int schematypensOffset) Set the start offset where schematypens is declared.- Parameters:
schematypensOffset- the start offset where schematypens is declared
-
parse
-
parse
Returns the result of parse the data of xml-model processing insruction.- Parameters:
data- the xml-model processing instruction content data.offset- the offsetlength- the length- Returns:
- the result of parse the data of xml-model processing insruction.
-
isApplicableForDTD
-
isApplicableForXSD
-
isApplicableForRelaxNG
-