|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Set of method for handling Schema
XMLContainer
Method Summary | |
void |
dispose()
This is only for inner usage, it mustn't be called by the user |
java.lang.String |
getCurrentDTD()
|
java.lang.String |
getCurrentDTDRoot()
|
java.lang.String |
getCurrentSchema()
|
java.lang.String |
getCurrentSchemaRoot()
|
java.lang.String |
getDefaultDTDLocation()
|
java.lang.String |
getDefaultDTDRoot()
|
java.lang.String |
getDefaultSchemaLocation()
|
java.lang.String |
getDefaultSchemaRoot()
|
java.lang.String |
getDTDLocation(boolean resolve)
|
SchemaLocator |
getRelaxNGValidationLocation()
|
java.lang.String |
getSchemaLocation(boolean resolve)
|
void |
setDefaultDTD(java.lang.String dtdRoot,
java.lang.String dtd)
Reset the default document DTD location |
void |
setDefaultDTD(java.lang.String dtdRoot,
java.net.URL dtd)
Reset the default document DTD location |
void |
setDefaultSchema(java.lang.String root,
java.lang.String location)
Reset the default schema root tag and document location (url or file path) |
void |
setDTD(java.lang.String dtdRoot,
SchemaLocator locator)
Reset a local DTD. |
void |
setDTD(java.lang.String dtdRoot,
java.lang.String dtdLocation,
int dtdDeclarationLine)
Reset the current dtd root and dtd location by this one. |
void |
setRelaxNGValidationLocation(SchemaLocator locator)
Reset the current RelaxNG document path for validating the current document |
void |
setRelaxNGValidationLocation(java.lang.String location)
Reset the current RelaxNG document path for validating the current document. |
void |
setSchema(java.lang.String schemaRoot,
java.lang.String[] namespace,
java.lang.String[] schemaLocation,
int schemaDeclarationLine)
Reset the current schema location |
Method Detail |
public java.lang.String getCurrentDTD()
public java.lang.String getCurrentDTDRoot()
public void setDefaultDTD(java.lang.String dtdRoot, java.lang.String dtd)
dtdRoot
- The DTD Root elementdtd
- The DTD path or URLpublic void setDefaultDTD(java.lang.String dtdRoot, java.net.URL dtd)
dtdRoot
- The DTD Root elementdtd
- The DTD inputStream contentpublic void setDTD(java.lang.String dtdRoot, java.lang.String dtdLocation, int dtdDeclarationLine)
setDefaultDTD
method
public void setDTD(java.lang.String dtdRoot, SchemaLocator locator) throws java.lang.Exception
dtdRoot
- the dtd root elementlocator
- The dtd content
java.lang.Exception
- if a problem occurs when using this locatorpublic java.lang.String getCurrentSchema()
public java.lang.String getCurrentSchemaRoot()
public void setSchema(java.lang.String schemaRoot, java.lang.String[] namespace, java.lang.String[] schemaLocation, int schemaDeclarationLine)
namespace
- list of namespace bound to the schema locationschemaLocation
- Schema URL or current document relative locationschemaDeclarationLine
- The location of the declaration inside the Document, you can ignore this value and put -1public java.lang.String getDefaultDTDRoot()
public java.lang.String getDefaultDTDLocation()
public java.lang.String getDTDLocation(boolean resolve)
resolve
- if true
the location is built using the current document location
public java.lang.String getDefaultSchemaLocation()
public java.lang.String getDefaultSchemaRoot()
public void setDefaultSchema(java.lang.String root, java.lang.String location)
public void setRelaxNGValidationLocation(java.lang.String location)
null
value
public void setRelaxNGValidationLocation(SchemaLocator locator)
public SchemaLocator getRelaxNGValidationLocation()
public java.lang.String getSchemaLocation(boolean resolve)
resolve
- if true
the location is built using the current document location
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |