<commit_before>/**
 * 
 */
package org.concord.framework.otrunk.view;

import javax.swing.JComponent;

import org.concord.framework.otrunk.OTObject;

/**
 * @author scott
 *
 */
public interface OTJComponentService 
{
	public JComponent getComponent(OTObject otObject, 
		       OTJComponentView view);

	public JComponent getComponent(OTObject otObject,
			OTViewContainer container);
	
	public OTJComponentView getObjectView(OTObject otObject,
			OTViewContainer container);	
	
	public OTJComponentView getObjectView(OTObject otObject,
			OTViewContainer container, String mode);
	
	public OTJComponentView getObjectView(OTObject otObject,
	        OTViewContainer container, String mode, OTViewEntry viewEntry);
	
	/**
	 * This returns the OTJComponentViewContext that is passed to children
	 * views created by this service. 
	 * <commit_msg>OTJComponentService and Impl can now create an object view with a view context passed in (to allow, say, a child view to use the view context of its parent).<commit_after>/**
 * 
 */
package org.concord.framework.otrunk.view;

import javax.swing.JComponent;

import org.concord.framework.otrunk.OTObject;

/**
 * @author scott
 *
 */
public interface OTJComponentService 
{
	public JComponent getComponent(OTObject otObject, 
		       OTJComponentView view);

	public JComponent getComponent(OTObject otObject,
			OTViewContainer container);
	
	public OTJComponentView getObjectView(OTObject otObject,
			OTViewContainer container);	
	
	public OTJComponentView getObjectView(OTObject otObject,
			OTViewContainer container, String mode);
	
	public OTJComponentView getObjectView(OTObject otObject,
	        OTViewContainer container, String mode, OTViewEntry viewEntry);
	
	public OTJComponentView getObjectView(OTObject otObject, 
		OTViewContainer container, String mode, OTViewEntry viewEntry, OTViewContext viewContext);
	
	/**
	 * This returns the OTJComponentViewContext that is passed to children
	 * views created by this service. 
	 * 
{'fraction_non_alphanumeric': 0.06733668341708543, 'fraction_numerical': 0.0, 'mean_word_length': 4.721264367816092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4938983', 'n_tokens_mistral': 605, 'n_tokens_neox': 535, 'n_words': 164}