Package org.apache.camel.spi
Record Class ModelDumpLine
java.lang.Object
java.lang.Record
org.apache.camel.spi.ModelDumpLine
- Record Components:
location- line source location:line (if present)type- the kind of EIP nodeid- the id of the EIP nodelevel- indent level of the EIP nodecode- EIP code such as label or short name that is human-readable or pseudocode
public record ModelDumpLine(String location, String type, String id, int level, String code)
extends Record
Represents a line in a model dumper of the route structure (not with full details like a XML or YAML dump).
-
Constructor Summary
ConstructorsConstructorDescriptionModelDumpLine(String location, String type, String id, int level, String code) Creates an instance of aModelDumpLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intlevel()Returns the value of thelevelrecord component.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ModelDumpLine
Creates an instance of aModelDumpLinerecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-