// Path: src/main/java/com/modelsolv/kaboom/model/resource/ObjectResourceDefinition.java
// 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);
// 
// 	public void bindTemplateParameter(String parameter, CDMProperty property);
// 	
// 	public ObjectResourceDefinition withTemplateParameter(String parameter, CDMProperty property);
// 
// 	/**
// 	 * Factory method to create or retrieve an individual Resource bound to the
// 	 * canonicalObject. The canonicalObject must confirm to the
// 	 * ResourceDataModel. This method is responsible for populating the resource
// 	 * URI and any other required properties of the Resource.
// 	 * 
// 	 * @param canonicalObject
// 	 * @return
// 	 */
// 	public ObjectResource getResource(Object canonicalObject, CanonicalObjectReader reader);
// 
// }
// 
// Path: src/main/java/com/modelsolv/kaboom/model/resource/ObjectResource.java
// public interface ObjectResource {
// 	
// 	public Object getCanonicalObject();
// 	
// 	public void setCanonicalObject(Object obj);
// 
// 	public URI getURI();
// 	
// 	public void setURI(URI uri);
// 	
// 	public ObjectResourceDefinition getResourceDefinition();
// 	
// 	public void setResourceDefinition(ObjectResourceDefinition definition);
// 	
// }


import java.net.URI;
import com.modelsolv.kaboom.model.resource.ObjectResourceDefinition;
import com.modelsolv.kaboom.model.resource.ObjectResource;
/*******************************************************************************
 * 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.nativeImpl;



public class ObjectResourceImpl implements ObjectResource {

	private Object canonicalObject;
// Path: src/main/java/com/modelsolv/kaboom/model/resource/ObjectResourceDefinition.java
// 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);
// 
// 	public void bindTemplateParameter(String parameter, CDMProperty property);
// 	
// 	public ObjectResourceDefinition withTemplateParameter(String parameter, CDMProperty property);
// 
// 	/**
// 	 * Factory method to create or retrieve an individual Resource bound to the
// 	 * canonicalObject. The canonicalObject must confirm to the
// 	 * ResourceDataModel. This method is responsible for populating the resource
// 	 * URI and any other required properties of the Resource.
// 	 * 
// 	 * @param canonicalObject
// 	 * @return
// 	 */
// 	public ObjectResource getResource(Object canonicalObject, CanonicalObjectReader reader);
// 
// }
// 
// Path: src/main/java/com/modelsolv/kaboom/model/resource/ObjectResource.java
// public interface ObjectResource {
// 	
// 	public Object getCanonicalObject();
// 	
// 	public void setCanonicalObject(Object obj);
// 
// 	public URI getURI();
// 	
// 	public void setURI(URI uri);
// 	
// 	public ObjectResourceDefinition getResourceDefinition();
// 	
// 	public void setResourceDefinition(ObjectResourceDefinition definition);
// 	
// }


// Path: src/main/java/com/modelsolv/kaboom/model/resource/nativeImpl/ObjectResourceImpl.java
import java.net.URI;
import com.modelsolv.kaboom.model.resource.ObjectResourceDefinition;
import com.modelsolv.kaboom.model.resource.ObjectResource;

/*******************************************************************************
 * 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.nativeImpl;



public class ObjectResourceImpl implements ObjectResource {

	private Object canonicalObject;
	private ObjectResourceDefinition definition;