Java Code Examples for javax.management.MBeanAttributeInfo.isIs()

The following are Jave code examples for showing how to use isIs() of the javax.management.MBeanAttributeInfo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: eZooKeeper   File: MBeanAttributeDoc.java   Source Code and License Vote up 6 votes
@Override
public String getName() {
    if (_Name == null) {

        _Name = super.getName();

        if (_Name == null) {
            return _Name;
        }

        MBeanAttributeInfo info = getInfo();
        String prefix = NAME_PREFIX_GET;
        if (info.isIs()) {
            prefix = NAME_PREFIX_IS;
        }

        _Name = prefix + _Name;
    }

    return _Name;
}