// Path: src/main/java/com/modelsolv/kaboom/model/canonical/CDMProperty.java
// public interface CDMProperty extends ReadableCDMProperty {
// 
// 	public void setName(String name);
// 	
// 	public void setCardinality(Cardinality cardinality);
// 
// }
// 
// Path: src/main/java/com/modelsolv/kaboom/object/CanonicalObjectReader.java
// public interface CanonicalObjectReader {
// 	
// 	public Object getPropertyValue(Object obj, CDMProperty prop);
// 	
// 	public Object getPropertyValue(Object obj, RDMProperty prop);
// 	
// 	public Object getPropertyValue(Object obj, String propName);
// }


import com.modelsolv.kaboom.model.canonical.CDMProperty;
import com.modelsolv.kaboom.object.CanonicalObjectReader;
/*******************************************************************************
 * Copyright (c) 2014 ModelSolv, Inc. 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:
 *     ModelSolv, Inc. - initial API and implementation.
 *******************************************************************************/
package com.modelsolv.kaboom.model.resource;


/**
 * A ResourceDefinition that is bound to a ResourceDataModel. An
 * ObjectResourceDefinition defines a class of Resource instances that are bound
 * to an Object confirming to the ResourceDataModel, presumably by conforming to
 * the underlying canonical data type definition.
 * 
 * @author Ted
 * 
 */
public interface ObjectResourceDefinition extends ResourceDefinition {

	// write-once properties, should be passed in ctor
	public String getURITemplate();

	/**
	 * @return the ResourceDataModel bound to this class of resources.
	 */
	public ResourceDataModel getResourceDataModel();

	// read-writable properties

	public String getName();

	public void setName(String name);

// Path: src/main/java/com/modelsolv/kaboom/model/canonical/CDMProperty.java
// public interface CDMProperty extends ReadableCDMProperty {
// 
// 	public void setName(String name);
// 	
// 	public void setCardinality(Cardinality cardinality);
// 
// }
// 
// Path: src/main/java/com/modelsolv/kaboom/object/CanonicalObjectReader.java
// public interface CanonicalObjectReader {
// 	
// 	public Object getPropertyValue(Object obj, CDMProperty prop);
// 	
// 	public Object getPropertyValue(Object obj, RDMProperty prop);
// 	
// 	public Object getPropertyValue(Object obj, String propName);
// }


// Path: src/main/java/com/modelsolv/kaboom/model/resource/ObjectResourceDefinition.java
import com.modelsolv.kaboom.model.canonical.CDMProperty;
import com.modelsolv.kaboom.object.CanonicalObjectReader;

/*******************************************************************************
 * Copyright (c) 2014 ModelSolv, Inc. 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:
 *     ModelSolv, Inc. - initial API and implementation.
 *******************************************************************************/
package com.modelsolv.kaboom.model.resource;


/**
 * A ResourceDefinition that is bound to a ResourceDataModel. An
 * ObjectResourceDefinition defines a class of Resource instances that are bound
 * to an Object confirming to the ResourceDataModel, presumably by conforming to
 * the underlying canonical data type definition.
 * 
 * @author Ted
 * 
 */
public interface ObjectResourceDefinition extends ResourceDefinition {

	// write-once properties, should be passed in ctor
	public String getURITemplate();

	/**
	 * @return the ResourceDataModel bound to this class of resources.
	 */
	public ResourceDataModel getResourceDataModel();

	// read-writable properties

	public String getName();

	public void setName(String name);

	public ObjectResourceDefinition withName(String name);