public class XMLModelDeclaration extends Object
<?xml-model href="http://www.docbook.org/xml/5.0/xsd/docbook.xsd"?>
https://www.w3.org/TR/xml-model/
Constructor and Description |
---|
XMLModelDeclaration() |
Modifier and Type | Method and Description |
---|---|
String |
getHref()
Returns the location of the referenced schema
|
int |
getHrefOffset()
Returns the start offset where href is declared.
|
String |
getSchematypens()
Returns the location of the schematypens
|
int |
getSchematypensOffset()
Returns the start offset where schematypens is declared.
|
String |
getType()
Returns the location of the type
|
int |
getTypeOffset()
Returns the start offset where type is declared.
|
static boolean |
isApplicableForDTD(XMLModelDeclaration modelDeclaration) |
static boolean |
isApplicableForRelaxNG(XMLModelDeclaration modelDeclaration) |
static boolean |
isApplicableForXSD(XMLModelDeclaration modelDeclaration) |
static XMLModelDeclaration |
parse(char[] data,
int offset,
int length)
Returns the result of parse the data of xml-model processing insruction.
|
static XMLModelDeclaration |
parse(org.apache.xerces.xni.XMLString data) |
void |
setHref(String href)
Set the location of the referenced schema
|
void |
setHrefOffset(int hrefOffset)
Set the start offset where href is declared.
|
void |
setSchematypens(String schematypens)
Set the location of the schematypens
|
void |
setSchematypensOffset(int schematypensOffset)
Set the start offset where schematypens is declared.
|
void |
setType(String type)
Set the location of the type
|
void |
setTypeOffset(int typeOffset)
Set the start offset where type is declared.
|
public String getHref()
public void setHref(String href)
href
- the location of the referenced schemapublic int getHrefOffset()
public void setHrefOffset(int hrefOffset)
hrefOffset
- the start offset where href is declaredpublic String getType()
public void setType(String type)
type
- the location of typepublic int getTypeOffset()
public void setTypeOffset(int typeOffset)
typeOffset
- the start offset where type is declaredpublic String getSchematypens()
public void setSchematypens(String schematypens)
schematypens
- the location of schematypenspublic int getSchematypensOffset()
public void setSchematypensOffset(int schematypensOffset)
schematypensOffset
- the start offset where schematypens is declaredpublic static XMLModelDeclaration parse(org.apache.xerces.xni.XMLString data)
public static XMLModelDeclaration parse(char[] data, int offset, int length)
data
- the xml-model processing instruction content data.offset
- the offsetlength
- the lengthpublic static boolean isApplicableForDTD(XMLModelDeclaration modelDeclaration)
public static boolean isApplicableForXSD(XMLModelDeclaration modelDeclaration)
public static boolean isApplicableForRelaxNG(XMLModelDeclaration modelDeclaration)
Copyright © 2022. All rights reserved.