All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mvp4g.rebind.config.element.SimpleMvp4gElement Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
/*
 * Copyright (c) 2009 - 2017 - Pierre-Laurent Coirer, Frank Hossfeld
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.mvp4g.rebind.config.element;

/**
 * A simple Mvp4g configuration element.
*
* A simple element consists of two attributes: *
*
    *
  • A name uniquely identifying the element within the configuration;
  • *
  • A class specifying the fully qualified Java class for the element.
  • *
* * @author javier */ public class SimpleMvp4gElement extends Mvp4gElement { public SimpleMvp4gElement() { super("simple"); } public SimpleMvp4gElement(String tagName) { super(tagName); } @Override public String toString() { return "[" + getName() + " : " + getClassName() + "]"; } public String getName() { return getProperty("name"); } public void setName(String name) { setProperty("name", name); } public String getClassName() { return getProperty("class"); } public void setClassName(String className) { setProperty("class", className); } @Override public String getUniqueIdentifierName() { return "name"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy