当前位置: 首页>>代码示例>>Java>>正文


Java VoidRepositoryException类代码示例

本文整理汇总了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

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:21,代码来源:PositiveImpl.java

示例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";
}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:12,代码来源:PnmlImportTest.java

示例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();
}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:61,代码来源:inoutinTest.java

示例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);
}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:7,代码来源:RefPlaceHLAPI.java

示例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;
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:7,代码来源:FEConstant.java

示例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);
		}
	}

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:19,代码来源:UnparsedHLAPI.java

示例7: fromPNML

import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; //导入依赖的package包/类
public abstract void fromPNML(OMElement locRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException,
VoidRepositoryException;
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:3,代码来源:PnObject.java

示例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());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:25,代码来源:RefPlaceHLAPI.java

示例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;
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:4,代码来源:StringOperator.java

示例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());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:24,代码来源:RefPlaceHLAPITest.java

示例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());
}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:20,代码来源:PlaceHLAPITest.java


注:本文中的fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。