本文整理汇总了Java中fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException类的典型用法代码示例。如果您正苦于以下问题:Java VoidRepositoryException类的具体用法?Java VoidRepositoryException怎么用?Java VoidRepositoryException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VoidRepositoryException类属于fr.lip6.move.pnml.framework.utils.exception包,在下文中一共展示了VoidRepositoryException类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fromPNML
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public void fromPNML(OMElement locRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException,
VoidRepositoryException {
//0
//0
//0
//0
@SuppressWarnings("unused")
IntegersFactory fact = IntegersFactory.eINSTANCE;
//processing id
//processing idref
//processing attributes
//processing sons
}
示例2: testfallbackonfail
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
@Test(groups = { "fallback" }, expectedExceptions = { AssociatedPluginNotFound.class })
public void testfallbackonfail() throws IOException,
BadFileFormatException, UnhandledNetType,
ValidationFailedException, InnerBuildException,
OCLValidationFailed, OtherException, AssociatedPluginNotFound,
InvalidIDException, VoidRepositoryException {
PnmlImport mypi = new PnmlImport(fullpath + "/filetype.ftype.xml");
mypi.setFallUse(true);
mypi.importFile(fullpath + "/unaviablefallbacknettype.xml");
assert false : "exception not thrown";
}
示例3: testImportExport
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* @throws InvalidIDException
* @throws AssociatedPluginNotFound
* @throws OtherException
* @throws OCLValidationFailed
* @throws InnerBuildException
* @throws ValidationFailedException
* @throws UnhandledNetType
* @throws BadFileFormatException
* @throws IOException
* @throws VoidRepositoryException
* @throws InvalidIDException
* @throws ValidationFailedException
* @throws IOException
* @throws OCLValidationFailed
* @throws UnhandledNetType
* @throws InvalidIDException
* @throws FactoryConfigurationError
* @throws XMLStreamException
* @throws VoidRepositoryException
* @throws VoidRepositoryException
*
*/
@Test(groups = { "inoutinout" }, dataProvider = "givefiles")
public void testImportExport(String fileToTestPath) throws IOException,
BadFileFormatException, UnhandledNetType,
ValidationFailedException, InnerBuildException,
OCLValidationFailed, OtherException, AssociatedPluginNotFound,
InvalidIDException, XMLStreamException, FactoryConfigurationError,
VoidRepositoryException {
String filepath = fullpath + fileToTestPath;
HLAPIClass doc = pi.importFile(filepath);
assert pi != null : "a problem occured when importing the file "
+ filepath;
pex.exportObject(doc, fullpath + "/inouttest.xml");
Integer file1 = countChildren(getfile(filepath));
Integer file2 = countChildren(getfile(fullpath + "/inouttest.xml"));
XMLTreeCompare xmltc = new XMLTreeCompare();
System.out.println(">> nodes for orginal file:" + file1
+ ", node for imported then exported file:" + file2
+ " original file is:" + fileToTestPath);
int hasor = xmltc.hashTree(getfile(filepath));
int hashfin = xmltc.hashTree(getfile(fullpath + "/inouttest.xml"));
System.out.println(">> XMLTree HashCode for orginal file:" + hasor
+ ", node for imported then exported file:" + hashfin
+ " original file is:" + fileToTestPath);
assert file1.equals(file2) : "[Small compare] missing data in import/export for "
+ fileToTestPath;
assert hasor == hashfin : "[Hash compare] trees hashes are different";
new File(fullpath + "/inouttest.xml").delete();
}
示例4: fromPNML
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* creates an object from the xml nodes.(symetric work of toPNML)
*/
public void fromPNML(OMElement subRoot,IdRefLinker idr) throws InnerBuildException, InvalidIDException, VoidRepositoryException{
item.fromPNML(subRoot,idr);
}
示例5: fromPNML
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* set values to conform PNML document
*/
@Override
public void fromPNML(OMElement subRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException,
VoidRepositoryException;
示例6: setIdHLAPI
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* set Id
*/
public void setIdHLAPI(
java.lang.String elem) throws InvalidIDException ,VoidRepositoryException {
if(elem!=null){
try{
item.setId(ModelRepository.getInstance().getCurrentIdRepository().changeId(this, elem));
}catch (OtherException e){
ModelRepository.getInstance().getCurrentIdRepository().checkId(elem, this);
}
}
}
示例7: fromPNML
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
public abstract void fromPNML(OMElement locRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException,
VoidRepositoryException;
示例8: RefPlaceHLAPI
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* This constructor give access to required stuff only (not container if any)
*/
public RefPlaceHLAPI(
java.lang.String id
, PlaceNodeHLAPI ref
) throws InvalidIDException ,VoidRepositoryException {//BEGIN CONSTRUCTOR BODY
HlcorestructureFactory fact = HlcorestructureFactoryImpl.eINSTANCE;
synchronized(fact){item = fact.createRefPlace();}
if(id!=null){
item.setId(ModelRepository.getInstance().getCurrentIdRepository().checkId(id, this));
}
if(ref!=null)
item.setRef((PlaceNode)ref.getContainedItem());
}
示例9: fromPNML
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
@Override
public abstract void fromPNML(OMElement locRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException,
VoidRepositoryException;
示例10: RefPlaceHLAPI_3
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* This constructor give access to required stuff only (not container if any)
*/
@Test(groups = { "hlapi", "RefPlaceHLAPI"}, dependsOnMethods={"RefPlaceHLAPI_LLAPI"})
public void RefPlaceHLAPI_3() throws InvalidIDException ,VoidRepositoryException {//BEGIN CONSTRUCTOR BODY
RefPlaceHLAPI totest = new RefPlaceHLAPI(
itemid
,
itemref
);
assert totest.getId().equals(itemid);
assert totest.getRef().equals(itemref.getContainedItem());
}
示例11: PlaceHLAPI_4_containerPage
import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
/**
* This constructor give access to required stuff only (and container)
*/
@Test(groups = { "hlapi", "PlaceHLAPI"}, dependsOnMethods={"PlaceHLAPI_LLAPI"})
public void PlaceHLAPI_4_containerPage() throws InvalidIDException ,VoidRepositoryException {//BEGIN CONSTRUCTOR BODY
PlaceHLAPI totest = new PlaceHLAPI(
itemid
,
itemcontainerPage
);
assert totest.getId().equals(itemid);
assert totest.getContainerPage().equals(itemcontainerPage.getContainedItem());
}