Commit 5a681369 authored by Jay Jay Billings's avatar Jay Jay Billings
Browse files

Added stubs for the next set of data classes and tests.


Signed-off-by: default avatarJay Jay Billings <billingsjj@ornl.gov>
parent e883186a
......@@ -22,7 +22,7 @@ import org.apache.jena.rdf.model.Resource;
* builder API to dynamically build and construct a new Component based on the
* way the functions are called.
*
* All components should be constructed by using the with* star operations to
* All components should be constructed by using the with* operations to
* configure data members before the build function (build()) is called.
*
* The builder will configure default values for the field variables of the
......@@ -106,7 +106,7 @@ public class ComponentBuilder {
descProp = ontModel.getObjectProperty(ICEConstants.DESCRIPTION);
contextProp = ontModel.getObjectProperty(ICEConstants.CONTEXT);
idProp = ontModel.getObjectProperty(ICEConstants.ID);
// Set the default values.
clear();
}
......@@ -190,7 +190,7 @@ public class ComponentBuilder {
// Clear the state
clear();
return resource;
}
......
/******************************************************************************
* Copyright (c) 2019- UT-Battelle, LLC.
* 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:
* Initial API and implementation and/or initial documentation -
* Jay Jay Billings
*****************************************************************************/
package org.eclipse.ice.data;
/**
* This is a builder for constructing Composites, which are collections of
* Components. It uses a standard builder API to dynamically build and construct
* a new Composite based on the information passed through its methods.
*
* All Composites should be constructed by using the with* operations to
* configure data members before the build function is called.
*
* The builder will clear its state between separate calls to the build
* function. That is, successively calling build() will not return two resources
* with the same values. The builder will do it automatically, although clients
* may elect to do it themselves by calling clear().
*
* @author Jay Jay Billings
*
*/
public class CompositeBuilder {
}
/******************************************************************************
* Copyright (c) 2019- UT-Battelle, LLC.
* 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:
* Initial API and implementation and/or initial documentation -
* Jay Jay Billings
*****************************************************************************/
package org.eclipse.ice.data;
/**
* This class is a utility that can be used to ascertain the validity of an
* individual ICE model based on the ICE ontology.
*
* @author Jay Jay Billings
*
*/
public class ModelValidator {
}
/******************************************************************************
* Copyright (c) 2019- UT-Battelle, LLC.
* 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:
* Initial API and implementation and/or initial documentation -
* Jay Jay Billings
*****************************************************************************/
package org.eclipse.ice.tests.data;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* This class tests {@link CompositeBuilder}.
* @author Jay Jay Billings
*
*/
public class CompositeBuilderTest {
/**
* @throws java.lang.Exception
*/
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@Test
public void test() {
fail("Not yet implemented");
}
}
/******************************************************************************
* Copyright (c) 2019- UT-Battelle, LLC.
* 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:
* Initial API and implementation and/or initial documentation -
* Jay Jay Billings
*****************************************************************************/
package org.eclipse.ice.tests.data;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* This class is responsible for insuring that the ModelValidator can correctly
* validate an individual ICE data model.
*
* @author Jay Jay Billings
*
*/
public class ModelValidatorTest {
/**
* @throws java.lang.Exception
*/
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@Test
public void test() {
fail("Not yet implemented");
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment