Java Code Examples for org.jpmml.model.ToStringHelper

The following examples show how to use org.jpmml.model.ToStringHelper. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public String toString(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("id", getId())
		.add("arguments", getArguments());

	MapDifference<FieldName, ?> difference = getDifference();
	if(difference != null){
		helper.add("difference", getDifference());
	}

	Exception exception = getException();
	if(exception != null){
		helper.add("exception", exception);
	}

	return helper.toString();
}
 
Example 2
@Override
public String toString(){
	String message = getMessage();

	ToStringHelper helper;

	if(message != null){
		helper = new ToStringHelper(this)
			.add("message", message);
	} else

	{
		helper = toStringHelper();
	}

	return helper.toString();
}
 
Example 3
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("defineFunction", getDefineFunction())
		.add("feature", getFeature())
		.add("value", getValue());
}
 
Example 4
@Override
protected ToStringHelper toStringHelper(){
	ValueMap<Object, V> confidences = getConfidences();

	ToStringHelper helper = super.toStringHelper()
		.add("entityId", getEntityId())
		.add(Type.CONFIDENCE.entryKey(), confidences != null ? confidences.entrySet() : Collections.emptySet());

	return helper;
}
 
Example 5
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("entityId", getEntityId());

	return helper;
}
 
Example 6
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("entityId", getEntityId());

	return helper;
}
 
Example 7
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("entityId", getEntityId());

	return helper;
}
 
Example 8
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("antecedentFlags", getAntecedentFlags())
		.add("consequentFlags", getConsequentFlags());

	return helper;
}
 
Example 9
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("finalResult", isFinalResult())
		.add("depth", getDepth());

	return helper;
}
 
Example 10
@Override
protected ToStringHelper toStringHelper(){
	Type type = getType();
	ValueMap<K, V> values = getValues();

	ToStringHelper helper = super.toStringHelper()
		.add(type.entryKey(), values.entrySet());

	return helper;
}
 
Example 11
@Override
public String toString(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("entries", getEntries());

	return helper.toString();
}
 
Example 12
@Override
public String toString(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("expression", getExpression())
		.add("value", getValue());

	return helper.toString();
}
 
Example 13
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("ordering", getOrdering());

	return helper;
}
 
Example 14
@Override
protected ToStringHelper toStringHelper(){
	ValueMap<String, V> reasonCodePoints = getReasonCodePoints();

	ToStringHelper helper = super.toStringHelper()
		.add(Type.VOTE.entryKey(), reasonCodePoints.entrySet())
		.add("reasonCodeRanking", getReasonCodeRanking());

	return helper;
}
 
Example 15
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("opType", getOpType())
		.add("dataType", getDataType())
		.add("valid", isValid())
		.add("value", getValue());

	return helper;
}
 
Example 16
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("name", getName())
		.add("fieldName", getFieldName())
		.add("displayName", getDisplayName())
		.add("dataType", getDataType())
		.add("opType", getOpType());

	return helper;
}
 
Example 17
@Override
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = super.toStringHelper()
		.add("ordering", getOrdering());

	return helper;
}
 
Example 18
protected ToStringHelper toStringHelper(){
	ToStringHelper helper = new ToStringHelper(this);

	try {
		helper = helper.add("result", getResult());
	} catch(UnsupportedOperationException uoe){
		// Ignored
	} catch(PMMLException pe){
		helper = helper.add("result", pe);
	}

	return helper;
}
 
Example 19
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("format", getFormat())
		.add("columns", getColumns())
		.add("requests", getRequests());
}
 
Example 20
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("id", getId())
		.add("miningFunction", getMiningFunction())
		.add("summary", getSummary())
		.add("properties", getProperties())
		.add("schema", getSchema());
}
 
Example 21
Source Project: openscoring   Source File: Field.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public String toString(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("id", getId())
		.add("name", getName())
		.add("dataType", getDataType())
		.add("opType", getOpType())
		.add("values", getValues());

	return helper.toString();
}
 
Example 22
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("format", getFormat())
		.add("columns", getColumns())
		.add("responses", getResponses());
}
 
Example 23
@Override
public String toString(){
	ToStringHelper helper = new ToStringHelper(this)
		.add("charset", getCharset())
		.add("delimiterChar", getDelimiterChar())
		.add("quoteChar", getQuoteChar());

	return helper.toString();
}
 
Example 24
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("wordSeparatorRE", getWordSeparatorRE());
}
 
Example 25
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("weight", getWeight());
}
 
Example 26
@Override
public String toString(){
	ToStringHelper helper = toStringHelper();

	return helper.toString();
}
 
Example 27
@Override
public String toString(){
	ToStringHelper helper = toStringHelper();

	return helper.toString();
}
 
Example 28
@Override
public String toString(){
	ToStringHelper helper = toStringHelper();

	return helper.toString();
}
 
Example 29
@Override
protected ToStringHelper toStringHelper(){
	return super.toStringHelper()
		.add("id", getId())
		.add("requests", getRequests());
}
 
Example 30
@Override
public String toString(){
	ToStringHelper helper = toStringHelper();

	return helper.toString();
}