Package cli.java2umltext.model
Record Class ClassWrapper
java.lang.Object
java.lang.Record
cli.java2umltext.model.ClassWrapper
- All Implemented Interfaces:
UML
-
Constructor Summary
ConstructorsConstructorDescriptionClassWrapper(Document document, String pkg, String type, String name) ClassWrapper(Document document, String pkg, String type, String name, ArrayList<FieldWrapper> fields, ArrayList<MethodWrapper> methods, HashMap<String, String> imports) Creates an instance of aClassWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.imports()Returns the value of theimportsrecord component.methods()Returns the value of themethodsrecord component.name()Returns the value of thenamerecord component.pkg()Returns the value of thepkgrecord component.static Stringfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ClassWrapper
-
ClassWrapper
public ClassWrapper(Document document, String pkg, String type, String name, ArrayList<FieldWrapper> fields, ArrayList<MethodWrapper> methods, HashMap<String, String> imports) Creates an instance of aClassWrapperrecord class.- Parameters:
document- the value for thedocumentrecord componentpkg- the value for thepkgrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentfields- the value for thefieldsrecord componentmethods- the value for themethodsrecord componentimports- the value for theimportsrecord component
-
-
Method Details
-
pkgPrefix
-
pkgPrefix
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
pkg
Returns the value of thepkgrecord component.- Returns:
- the value of the
pkgrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-
imports
Returns the value of theimportsrecord component.- Returns:
- the value of the
importsrecord component
-