org.hyperledger.fabric.contract.routing.impl.PropertyDefinitionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim Show documentation
Show all versions of fabric-chaincode-shim Show documentation
Hyperledger Fabric Java Chaincode Shim
/*
* Copyright 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.contract.routing.impl;
import java.lang.reflect.Field;
import org.hyperledger.fabric.contract.metadata.TypeSchema;
import org.hyperledger.fabric.contract.routing.PropertyDefinition;
public final class PropertyDefinitionImpl implements PropertyDefinition {
private final Class> typeClass;
private final TypeSchema schema;
private final Field field;
private final String name;
/**
*
* @param name
* @param typeClass
* @param schema
* @param f
*/
public PropertyDefinitionImpl(final String name, final Class> typeClass, final TypeSchema schema, final Field f) {
this.typeClass = typeClass;
this.schema = schema;
this.field = f;
this.name = name;
}
@Override
public Class> getTypeClass() {
return this.typeClass;
}
@Override
public TypeSchema getSchema() {
return this.schema;
}
@Override
public Field getField() {
return this.field;
}
@Override
public String getName() {
return this.name;
}
}