diff options
author | Eike Stepper | 2012-07-19 08:22:04 +0000 |
---|---|---|
committer | Eike Stepper | 2012-07-19 08:22:04 +0000 |
commit | 1460904fd3c193ffaf809913b2983a400fce9d94 (patch) | |
tree | 72f3a17b75fedba3ae1060df1d32c9c7889be954 /plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation | |
parent | 5f360965ae87478e0681899bf310a210cafc2c44 (diff) | |
download | cdo-1460904fd3c193ffaf809913b2983a400fce9d94.tar.gz cdo-1460904fd3c193ffaf809913b2983a400fce9d94.tar.xz cdo-1460904fd3c193ffaf809913b2983a400fce9d94.zip |
Fix line endings in master (dos2unix)
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation')
9 files changed, 303 insertions, 303 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java index 9235531dec..790cfcb3bf 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java @@ -1,35 +1,35 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.Category;
-import org.eclipse.emf.cdo.examples.company.Product;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Category}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface CategoryValidator
-{
- boolean validate();
-
- boolean validateName(String value);
-
- boolean validateCategories(EList<Category> value);
-
- boolean validateProducts(EList<Product> value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Product; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Category}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface CategoryValidator +{ + boolean validate(); + + boolean validateName(String value); + + boolean validateCategories(EList<Category> value); + + boolean validateProducts(EList<Product> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java index 6abf091bea..391c311362 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java @@ -1,42 +1,42 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.Category;
-import org.eclipse.emf.cdo.examples.company.Customer;
-import org.eclipse.emf.cdo.examples.company.PurchaseOrder;
-import org.eclipse.emf.cdo.examples.company.SalesOrder;
-import org.eclipse.emf.cdo.examples.company.Supplier;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Company}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface CompanyValidator
-{
- boolean validate();
-
- boolean validateCategories(EList<Category> value);
-
- boolean validateSuppliers(EList<Supplier> value);
-
- boolean validatePurchaseOrders(EList<PurchaseOrder> value);
-
- boolean validateCustomers(EList<Customer> value);
-
- boolean validateSalesOrders(EList<SalesOrder> value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Company}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface CompanyValidator +{ + boolean validate(); + + boolean validateCategories(EList<Category> value); + + boolean validateSuppliers(EList<Supplier> value); + + boolean validatePurchaseOrders(EList<PurchaseOrder> value); + + boolean validateCustomers(EList<Customer> value); + + boolean validateSalesOrders(EList<SalesOrder> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java index 6d5ad22ec5..26f64f7fc6 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java @@ -1,32 +1,32 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.SalesOrder;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Customer}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface CustomerValidator
-{
- boolean validate();
-
- boolean validateName(String value);
-
- boolean validateSalesOrders(EList<SalesOrder> value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.SalesOrder; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Customer}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface CustomerValidator +{ + boolean validate(); + + boolean validateName(String value); + + boolean validateSalesOrders(EList<SalesOrder> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java index 1e75e11e25..38c75b3ec5 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java @@ -1,33 +1,33 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.Order;
-import org.eclipse.emf.cdo.examples.company.Product;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.OrderDetail}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface OrderDetailValidator
-{
- boolean validate();
-
- boolean validateOrder(Order value);
-
- boolean validateProduct(Product value);
-
- boolean validatePrice(float value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.Product; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.OrderDetail}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface OrderDetailValidator +{ + boolean validate(); + + boolean validateOrder(Order value); + + boolean validateProduct(Product value); + + boolean validatePrice(float value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java index 26b8c50380..a1f8166d55 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java @@ -1,30 +1,30 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.OrderDetail;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Order}. This doesn't really do anything,
- * and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator plug-in to
- * illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface OrderValidator
-{
- boolean validate();
-
- boolean validateOrderDetails(EList<OrderDetail> value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.OrderDetail; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Order}. This doesn't really do anything, + * and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator plug-in to + * illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface OrderValidator +{ + boolean validate(); + + boolean validateOrderDetails(EList<OrderDetail> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java index b999f79f93..676d710ca5 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java @@ -1,35 +1,35 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.OrderDetail;
-import org.eclipse.emf.cdo.examples.company.VAT;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Product}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface ProductValidator
-{
- boolean validate();
-
- boolean validateName(String value);
-
- boolean validateOrderDetails(EList<OrderDetail> value);
-
- boolean validateVat(VAT value);
-
- boolean validateDescription(String value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.VAT; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Product}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ProductValidator +{ + boolean validate(); + + boolean validateName(String value); + + boolean validateOrderDetails(EList<OrderDetail> value); + + boolean validateVat(VAT value); + + boolean validateDescription(String value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java index c343f1a155..ab9f29de22 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java @@ -1,32 +1,32 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.Supplier;
-
-import java.util.Date;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface PurchaseOrderValidator
-{
- boolean validate();
-
- boolean validateDate(Date value);
-
- boolean validateSupplier(Supplier value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Supplier; + +import java.util.Date; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface PurchaseOrderValidator +{ + boolean validate(); + + boolean validateDate(Date value); + + boolean validateSupplier(Supplier value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java index 3f9114e10d..d7ba32ac64 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java @@ -1,30 +1,30 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.Customer;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.SalesOrder}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface SalesOrderValidator
-{
- boolean validate();
-
- boolean validateId(int value);
-
- boolean validateCustomer(Customer value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Customer; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.SalesOrder}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface SalesOrderValidator +{ + boolean validate(); + + boolean validateId(int value); + + boolean validateCustomer(Customer value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java index fbb0f2ef7f..d01ea16674 100644 --- a/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java +++ b/plugins/org.eclipse.emf.cdo.examples.company/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java @@ -1,34 +1,34 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.examples.company.validation;
-
-import org.eclipse.emf.cdo.examples.company.PurchaseOrder;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Supplier}. This doesn't really do
- * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
- * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
- * -Dorg.eclipse.emf.examples.generator.validator=false.
- *
- * @since 2.0
- */
-public interface SupplierValidator
-{
- boolean validate();
-
- boolean validatePurchaseOrders(EList<PurchaseOrder> value);
-
- boolean validatePreferred(boolean value);
-
- boolean validateName(String value);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Supplier}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface SupplierValidator +{ + boolean validate(); + + boolean validatePurchaseOrders(EList<PurchaseOrder> value); + + boolean validatePreferred(boolean value); + + boolean validateName(String value); +} |