2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.concepts;
10 public interface ClassBasedPropertyBuilder<P,T extends ClassBasedPropertyBuilder<P,T>> extends Builder<P> {
13 * Sets a value of property uniquely identified by its
16 * @param type Type of property to set
17 * @param value Value of property
18 * @return Builder instance
20 <V> T set(Class<V> type, V value);
23 * Gets a value of property based on its type.
25 * @param type Type of property to get
26 * @return Builder instance
28 <V> V get(Class<V> type);