void setReadOnly(boolean isReadOnly) { if(myContext != null) { myContext.readOnly = isReadOnly; } if(myObject instanceof Federation) { Iterator<Context> federatedContextsIterator = ((Federation) myObject).iterator(); while(federatedContextsIterator.hasNext()) { Context current = federatedContextsIterator.next(); if(IvmContext.class.isInstance(current)) { IvmContext.class.cast(current).setReadOnly(isReadOnly); } } } if (subTree != null) { subTree.setReadOnly(isReadOnly);; } if (lessTree != null) { lessTree.setReadOnly(isReadOnly); } if (grtrTree != null) { grtrTree.setReadOnly(isReadOnly); } }
if (o instanceof Context) { if (f == null) { f = new Federation(); f.add((Context) o); } else { return o;
if (o instanceof Context) { if (f == null) { f = new Federation(); f.add((Context) o); } else { return o;
myObject = new Federation(); ((Federation) myObject).add((Context) obj); } else { if (subTree != null) {
myObject = new Federation(); ((Federation) myObject).add((Context) obj); } else { if (subTree != null) {
public NameNode(final NameNode parent, final ParsedName name, final Object obj, final NameNode parentTree) { atomicName = name.getComponent(); atomicHash = name.getComponentHashCode(); this.parent = parent; this.parentTree = parentTree; if (name.next()) { subTree = new NameNode(this, name, obj, this); } else if (obj instanceof Context) { myObject = new Federation(); ((Federation) myObject).add((Context) obj); } else { myObject = obj; } }
public NameNode(final NameNode parent, final ParsedName name, final Object obj, final NameNode parentTree) { atomicName = name.getComponent(); atomicHash = name.getComponentHashCode(); this.parent = parent; this.parentTree = parentTree; if (name.next()) { subTree = new NameNode(this, name, obj, this); } else if (obj instanceof Context) { myObject = new Federation(); ((Federation) myObject).add((Context) obj); } else { myObject = obj; } }