public abstract class AdsBaseBean extends Object
Modifier | Constructor and Description |
---|---|
protected |
AdsBaseBean()
Create a new BaseBean instance
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
org.apache.directory.api.ldap.model.name.Dn |
getDn() |
boolean |
isDisabled()
a convenient method to finding if this bean was disabled in the config
|
boolean |
isEnabled() |
void |
setDescription(String description)
Sets the component description
|
void |
setDn(org.apache.directory.api.ldap.model.name.Dn dn) |
void |
setEnabled(boolean enabled)
Enable or disable the component
|
String |
toString() |
String |
toString(String tabs) |
protected String |
toString(String tabs,
String name,
boolean value)
Formated print of a boolean
|
protected String |
toString(String tabs,
String name,
org.apache.directory.api.ldap.model.name.Dn value)
Formated print of a Dn that can be null
|
protected String |
toString(String tabs,
String name,
long value)
Formated print of a long
|
protected String |
toString(String tabs,
String name,
String value)
Formated print of a String that can be null
|
protected AdsBaseBean()
public boolean isEnabled()
true
if the component is enabledpublic void setEnabled(boolean enabled)
enabled
- if true
, the component is enabled.public String getDescription()
public void setDescription(String description)
description
- The descriptionprotected String toString(String tabs, String name, boolean value)
tabs
- The starting spacesname
- The bean namevalue
- the boolean valueprotected String toString(String tabs, String name, String value)
tabs
- The starting spacesname
- The bean namevalue
- the string valueprotected String toString(String tabs, String name, org.apache.directory.api.ldap.model.name.Dn value)
tabs
- The starting spacesname
- The bean namevalue
- the Dn valuepublic final boolean isDisabled()
protected String toString(String tabs, String name, long value)
tabs
- The starting spacesname
- The bean namevalue
- the long valuepublic void setDn(org.apache.directory.api.ldap.model.name.Dn dn)
public org.apache.directory.api.ldap.model.name.Dn getDn()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.