/** * @generated NOT */ public EList<SortBy> getSortBy() { if (abstractSortingClause == null) { abstractSortingClause = new UniqueEList<SortBy>(); } return (EList<SortBy>) abstractSortingClause; }
/** * Creates an instance that is a copy of the collection, with duplicates removed. * @param collection the initial contents of the list. */ public UniqueEList(Collection<? extends E> collection) { super(collection.size()); addAll(collection); }
public List<ChildCreationData> getChildCreationData(GenModel context) { UniqueEList<ChildCreationData> result = new UniqueEList<ChildCreationData>(getAllChildCreationData(context)); GenClassImpl baseClass = (GenClassImpl)getProviderExtendsGenClass(); if (baseClass != null) { result.removeAll(baseClass.getAllChildCreationData(context)); } return result; }
public List<ChildCreationData> getAllChildCreationData(GenModel context) UniqueEList<ChildCreationData> result = new UniqueEList<ChildCreationData>(); List<GenFeature> allCreateChildGenFeatures = collectGenFeatures result.add(new ChildCreationData(createFeature, delegatedFeature, createClass)); result.add(new ChildCreationData(createFeature, delegatedFeature, delegatedFeature.getTypeGenClassifier())); result.add(new ChildCreationData(createFeature, null, createClass)); result.add(new ChildCreationData(createFeature, null, createFeature.getTypeGenClassifier()));
public XSDParticle.DFA.Transition createTransition(XSDParticle xsdParticle, XSDParticle.DFA.State state) { if (createdTransition == null) { createdTransition = new TransitionImpl(xsdParticle, state); } else { createdTransition.setParticle(xsdParticle); createdTransition.setState(state); } if (transitions.add(createdTransition)) { XSDParticle.DFA.Transition result = createdTransition; createdTransition = null; return result; } else { return null; } }
public XSDParticle.DFA.Transition createTransition(XSDParticle xsdParticle, XSDParticle.DFA.State state) { if (createdTransition == null) { createdTransition = new TransitionImpl(xsdParticle, state); } else { createdTransition.setParticle(xsdParticle); createdTransition.setState(state); } if (transitions.add(createdTransition)) { XSDParticle.DFA.Transition result = createdTransition; createdTransition = null; return result; } else { return null; } }
public List<XSDSchemaImpl> getSchemasToRedefine() { if (schemasToRedefine == null) { schemasToRedefine = new UniqueEList<XSDSchemaImpl>(); schemasToRedefine.add(this); } return schemasToRedefine; }
public List<XSDSchemaImpl> getSchemasToRedefine() { if (schemasToRedefine == null) { schemasToRedefine = new UniqueEList<XSDSchemaImpl>(); schemasToRedefine.add(this); } return schemasToRedefine; }
public List<String> getEditorModuleSources() { List<String> result = new UniqueEList<String>(); int prefixLength = getRootPackageName().length(); for (String editorQualifiedPackageName : getEditorQualifiedPackageNames()) { result.add(editorQualifiedPackageName.length() == prefixLength ? "" : editorQualifiedPackageName.substring(prefixLength + 1)); } return result; }
/** * This method takes a string and try's to cut it down into its peaces. The * character given as delimiter will be used to determine the single peaces. * * @param theString * . * @return theList * @since 2.1.0 */ public EList<String> convertStringToList(String theString, String delimiter) { if (delimiter == null || delimiter.equals("")) { delimiter = ","; } StringTokenizer tokenizer = new StringTokenizer(theString, delimiter); EList<String> theList = new UniqueEList<String>(tokenizer.countTokens()); String currentToken = null; while (tokenizer.hasMoreTokens()) { currentToken = tokenizer.nextToken(); if (StringUtils.isNotEmpty(currentToken)) { theList.add(currentToken.trim()); } } return theList; }
public List<String> getTestsSourceFolders() { List<String> sourceFolders = new UniqueEList<String>(1); String sourceFolder = getSourceFolder(getTestsDirectory()); if (sourceFolder != null) { sourceFolders.add(sourceFolder); } return sourceFolders; }
public List<String> getPrefixes(EPackage ePackage) { List<String> result = new UniqueEList<String>(); result.add(getPrefix(ePackage)); String namespace = extendedMetaData == null ? ePackage.getNsURI() : extendedMetaData.getNamespace(ePackage); List<String> prefixes = urisToPrefixes.get(namespace); if (prefixes != null) { result.addAll(prefixes); } return result; }
public List<String> getPrefixes(EPackage ePackage) { List<String> result = new UniqueEList<String>(); result.add(getPrefix(ePackage)); String namespace = extendedMetaData == null ? ePackage.getNsURI() : extendedMetaData.getNamespace(ePackage); List<String> prefixes = urisToPrefixes.get(namespace); if (prefixes != null) { result.addAll(prefixes); } return result; }
public List<String> getModelModuleInherits() { List<String> result = new UniqueEList<String>(); result.add("com.google.gwt.user.User"); result.add("org.eclipse.emf.ecore.Ecore"); for (GenPackage genPackage : getUsedGenPackages()) { result.add(genPackage.getGenModel().getQualifiedModelModuleName()); } return result; }
public List<GenPackage> computeMissingUsedGenPackages() { List<EPackage> missingEPackages = new UniqueEList<EPackage>(getMissingPackages()); return computeMissingUsedGenPackages(missingEPackages); }
/** * Returns any owners from the wrapped command. If it is a compound command, or a wrapped compound command, it may * have multiple owners. This returns and caches a list of them. */ public List<Object> getOwners() { if (owners == null) { owners = new UniqueEList<Object>(); addOwners(getCommand()); } return owners; }
result = new UniqueEList<EStructuralFeature>(result); result = new UniqueEList<EStructuralFeature>(result);
result = new UniqueEList<EStructuralFeature>(result); result = new UniqueEList<EStructuralFeature>(result);