Commit ef7f1c2c by zhanghou

提交IControl实现类

parent fc51d624
package com.brilliance.mda.runtime.mda.impl;
import com.brilliance.mda.runtime.mda.IControl;
import com.brilliance.mda.runtime.mda.IModule;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class ControlImpl implements IControl {
private String _path;
private String _name;
private String _description;
@JsonIgnore
private IModule _parent;
public ControlImpl(String name, String description, IModule parent) {
this._name = name;
this._parent = parent;
this._description = description;
String prefix = parent.getPath();
if (prefix != null && prefix.length() != 0 && !prefix.equals("\\")) {
this._path = prefix + "\\" + this._name;
} else {
this._path = "\\" + this._name;
}
}
@JsonIgnore
public String getName() {
return this._name;
}
@JsonIgnore
public IModule getParent() {
return this._parent;
}
@JsonIgnore
public String getPath() {
return this._path.toUpperCase();
}
public void clear() {
}
public String getDescription() {
return this._description;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment