Class OsgiAppenderRefModel
java.lang.Object
ch.qos.logback.core.model.Model
org.apache.sling.commons.log.logback.internal.joran.OsgiAppenderRefModel
- All Implemented Interfaces:
Serializable
public class OsgiAppenderRefModel
extends ch.qos.logback.core.model.Model
Model for the appender-ref-osgi element
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns wither the supplied object is equals to this onegetRef()Get the appender ref nameinthashCode()Returns a hash code value for the objectprotected OsgiAppenderRefModelFactory method to create an instance of this modelprotected voidmirror(ch.qos.logback.core.model.Model that) Mirror the state of the the supplied modelvoidSet the appender ref nameMethods inherited from class ch.qos.logback.core.model.Model
addSubModel, addText, deepMarkAsSkipped, duplicate, getBodyText, getLineNumber, getSubModels, getTag, idString, isHandled, isSkipped, isUnhandled, markAsHandled, markAsSkipped, setLineNumber, setTag, toString
-
Constructor Details
-
OsgiAppenderRefModel
public OsgiAppenderRefModel()
-
-
Method Details
-
makeNewInstance
Factory method to create an instance of this model- Overrides:
makeNewInstancein classch.qos.logback.core.model.Model
-
mirror
protected void mirror(ch.qos.logback.core.model.Model that) Mirror the state of the the supplied model- Overrides:
mirrorin classch.qos.logback.core.model.Model- Parameters:
that- the model to mirror
-
getRef
Get the appender ref name- Returns:
- the name of the appender to reference
-
setRef
Set the appender ref name- Parameters:
ref- the name of the appender to reference
-
hashCode
public int hashCode()Returns a hash code value for the object- Overrides:
hashCodein classch.qos.logback.core.model.Model
-
equals
Returns wither the supplied object is equals to this one- Overrides:
equalsin classch.qos.logback.core.model.Model- Parameters:
obj- the other object to compare- Returns:
- true if the object is equal, false otherwise
-