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.binding.model.api.type.builder;
10 import org.opendaylight.yangtools.binding.model.api.GeneratedProperty;
13 * Generated Property Builder is interface that contains methods to build and instantiate Generated Property definition.
15 * @see GeneratedProperty
17 public interface GeneratedPropertyBuilder extends TypeMemberBuilder<GeneratedPropertyBuilder> {
19 GeneratedPropertyBuilder setValue(String value);
22 * Sets isReadOnly flag for property. If property is marked as read only it is the same as set property in Java
25 * @param isReadOnly Read Only property flag.
27 GeneratedPropertyBuilder setReadOnly(boolean isReadOnly);
30 * Returns <code>new</code> <i>immutable</i> instance of Generated Property. <br>
31 * The <code>definingType</code> param cannot be <code>null</code>. The
32 * every member in Java MUST be declared and defined inside the scope of
33 * <code>class</code> definition. In case that defining Type will be passed
34 * as <code>null</code> reference the method SHOULD thrown
35 * {@link IllegalArgumentException}.
37 * @return <code>new</code> <i>immutable</i> instance of Generated Property.
39 GeneratedProperty toInstance();