Package net.sf.laja.parser.cdd.behaviour

Examples of net.sf.laja.parser.cdd.behaviour.BehaviourFactory


    }

    public Behaviour parseBehaviour(final String filePath) {
        BehaviourParser parser = new BehaviourParser(new BehaviourParser.IBehaviourFactoryFactory() {
            public BehaviourParser.IBehaviourFactory getFactory(int phase) {
                return new BehaviourFactory();
            }
        });

        ParsingResult result = parser.parse(new FileSource(filePath));

        if (!result.success()) {
            return null;
        }

        BehaviourFactory behaviourFactory = (BehaviourFactory)parser.getFactory();
        Behaviour behaviour = behaviourFactory.getBehaviour();

        return behaviour;
    }
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.cdd.behaviour.BehaviourFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.