public interface XMLInterface
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearParserErrorMessages() |
void |
closeAllPackages() |
void |
closePackage(String pkgId) |
boolean |
doesPackageFileExists(String xmlFile) |
String |
getAbsoluteFilePath(Package pkg) |
Collection |
getAllPackageFilenames() |
Collection |
getAllPackageIds() |
Collection |
getAllPackages() |
Package |
getExternalPackageByRelativeFilePath(String relativePathToExtPkg,
Package rootPkg) |
String |
getIDFromFile(String xmlFile) |
Package |
getPackageByFilename(String filename) |
Package |
getPackageById(String pkgId) |
String |
getPackageFileContent(String pkgId) |
String |
getParentDirectory(Package pkg) |
Map |
getParsingErrorMessages()
This method should be called immediatelly after opening a document,
otherwise, messages could be invalid.
|
boolean |
isPackageOpened(String pkgId) |
Package |
openPackage(String pkgReference,
boolean openFromStream) |
Package |
parseDocument(String toParse,
boolean isFile) |
void |
putPkgIdToFileContentMapping(String pkgId,
String fileContent) |
void |
register(Package pkg)
This method has to be called from the newly created package after its
Id is entered.
|
void |
registerPackageFilename(String filename,
Package pkg)
This method is called when first saving new package, or when saving it with
a different name.
|
void |
setValidation(boolean isActive) |
void setValidation(boolean isActive)
void clearParserErrorMessages()
void register(Package pkg)
pkg - void registerPackageFilename(String filename, Package pkg)
filename - pkg - boolean isPackageOpened(String pkgId)
Package getExternalPackageByRelativeFilePath(String relativePathToExtPkg, Package rootPkg)
Collection getAllPackages()
Collection getAllPackageIds()
Collection getAllPackageFilenames()
boolean doesPackageFileExists(String xmlFile)
Map getParsingErrorMessages()
void closePackage(String pkgId)
void closeAllPackages()
Copyright © 2023 onecode. All rights reserved.