Remove yang-test
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / mapping / attributes / resolving / AbstractAttributeResolvingStrategy.java
1 /*
2  * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.config.facade.xml.mapping.attributes.resolving;
10
11 import javax.management.openmbean.OpenType;
12
13 public abstract class AbstractAttributeResolvingStrategy<T, O extends OpenType<?>>
14         implements AttributeResolvingStrategy<T, O> {
15     private O openType;
16
17     public AbstractAttributeResolvingStrategy(final O openType) {
18         this.openType = openType;
19     }
20
21     @Override
22     public O getOpenType() {
23         return openType;
24     }
25
26     /**
27      * Composite types might change during resolution. Use this setter to update
28      * open type
29      */
30     public void setOpenType(final O openType) {
31         this.openType = openType;
32     }
33 }