X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fbuilder%2Fapi%2FSchemaNodeBuilder.java;h=a2d3a51d9f89b9a5cb2e9255f3dc99e5bebd11f2;hb=42abb28b99a02f9580f4676ce5c315628e5bcd24;hp=b6817ca8574fdbc09e333889a5b1c61512b9db8f;hpb=36368e8e6f9a791c355a7e61010a04e6a4f347d4;p=yangtools.git diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/SchemaNodeBuilder.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/SchemaNodeBuilder.java index b6817ca857..a2d3a51d9f 100644 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/SchemaNodeBuilder.java +++ b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/SchemaNodeBuilder.java @@ -1,81 +1,49 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.yangtools.yang.parser.builder.api; - -import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.model.api.SchemaNode; -import org.opendaylight.yangtools.yang.model.api.SchemaPath; -import org.opendaylight.yangtools.yang.model.api.Status; - -/** - * Interface for all builders of SchemaNode nodes. - */ -public interface SchemaNodeBuilder extends Builder { - - /** - * Get qname of this node. - * - * @return QName of this node - */ - QName getQName(); - - /** - * Get schema path of this node. - * - * @return SchemaPath of this node - */ - SchemaPath getPath(); - - /** - * Get description of this node. - * - * @return description statement - */ - String getDescription(); - - /** - * Set description to this node. - * - * @param description - */ - void setDescription(String description); - - /** - * Get reference of this node. - * - * @return reference statement - */ - String getReference(); - - /** - * Set reference to this node. - * - * @param reference - */ - void setReference(String reference); - - /** - * Get status of this node. - * - * @return status statement - */ - Status getStatus(); - - /** - * Set status to this node. - * - * @param status - */ - void setStatus(Status status); - - /** - * Build SchemaNode object from this builder. - */ - SchemaNode build(); - -} +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.yangtools.yang.parser.builder.api; + +import org.opendaylight.yangtools.yang.common.QName; +import org.opendaylight.yangtools.yang.model.api.SchemaNode; +import org.opendaylight.yangtools.yang.model.api.SchemaPath; + +/** + * Builder for {@link SchemaNode}. + * + * @deprecated Pre-Beryllium implementation, scheduled for removal. + */ +@Deprecated +public interface SchemaNodeBuilder extends DocumentedNodeBuilder, Builder { + + /** + * Returns qname of resulting {@link SchemaNode}. + * + * @return QName of this node + */ + QName getQName(); + + /** + * Returns schema path of resulting {@link SchemaNode}. + * + * @return SchemaPath of this node + */ + SchemaPath getPath(); + + /** + * Updates schema path to resulting {@link SchemaNode}. + * + * @param path schema path + */ + void setPath(SchemaPath path); + + /** + * Build SchemaNode object from this builder. + */ + @Override + SchemaNode build(); + +}