public ComponentType createComponentType() { return new ComponentTypeImpl(); }
@Override public Object clone() throws CloneNotSupportedException { ComponentTypeImpl clone = (ComponentTypeImpl)super.clone(); clone.services = new ArrayList<Service>(); for (Service service : getServices()) { clone.services.add((Service)service.clone()); } clone.references = new ArrayList<Reference>(); for (Reference reference : getReferences()) { clone.references.add((Reference)reference.clone()); } clone.properties = new ArrayList<Property>(); for (Property property : getProperties()) { clone.properties.add((Property)property.clone()); } clone.requiredIntents = new ArrayList<Intent>(requiredIntents); clone.policySets = new ArrayList<PolicySet>(policySets); return clone; }
public Property getProperty(String name){ Property property = null; for (Property tmp : getProperties()){ if (tmp.getName().equals(name)){ property = tmp; break; } } return property; }
public Reference getReference(String name){ Reference reference = null; for (Reference tmp : getReferences()){ if (tmp.getName().equals(name)){ reference = tmp; break; } } return reference; }
public Service getService(String name){ Service service = null; for (Service tmp : getServices()){ if (tmp.getName().equals(name)){ service = tmp; break; } } return service; }
@Override public Object clone() throws CloneNotSupportedException { ImplementationImpl impl = (ImplementationImpl)super.clone(); impl.operations = new ArrayList<Operation>(); for (Operation operation : operations) { impl.operations.add((Operation)operation.clone()); } return impl; }
@Override public Object clone() throws CloneNotSupportedException { ComponentTypeImpl clone = (ComponentTypeImpl)super.clone(); clone.services = new ArrayList<Service>(); for (Service service : getServices()) { clone.services.add((Service)service.clone()); } clone.references = new ArrayList<Reference>(); for (Reference reference : getReferences()) { clone.references.add((Reference)reference.clone()); } clone.properties = new ArrayList<Property>(); for (Property property : getProperties()) { clone.properties.add((Property)property.clone()); } clone.requiredIntents = new ArrayList<Intent>(requiredIntents); clone.policySets = new ArrayList<PolicySet>(policySets); return clone; }
public Property getProperty(String name){ Property property = null; for (Property tmp : getProperties()){ if (tmp.getName().equals(name)){ property = tmp; break; } } return property; }
public Reference getReference(String name){ Reference reference = null; for (Reference tmp : getReferences()){ if (tmp.getName().equals(name)){ reference = tmp; break; } } return reference; }
public Service getService(String name){ Service service = null; for (Service tmp : getServices()){ if (tmp.getName().equals(name)){ service = tmp; break; } } return service; }
@Override public Object clone() throws CloneNotSupportedException { ImplementationImpl impl = (ImplementationImpl)super.clone(); impl.operations = new ArrayList<Operation>(); for (Operation operation : operations) { impl.operations.add((Operation)operation.clone()); } return impl; }
public ComponentType createComponentType() { return new ComponentTypeImpl(); }