Package org.openengsb.core.api.context

Examples of org.openengsb.core.api.context.Context


        }
        return contexts.get(0).toContext();
    }

    private Context getContext(String path, boolean create) {
        Context c = getContext();
        if (c == null) {
            return null;
        }
        Context parent = null;
        for (String pathElem : new ContextPath(path).getElements()) {
            parent = c;
            c = c.getChild(pathElem);
            if (c == null) {
                if (!create) {
                    return null;
                }
                c = parent.createChild(pathElem);
            }
        }
        return c;
    }
View Full Code Here


        super(metaData, content);
    }

    public Context toContext() {
        ContextId contextId = ContextId.fromMetaData(getMetaData());
        Context c = new Context();
        c.setId(contextId.getId());
        return c;
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.context.Context

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.