Record Class BBCodeHandler.Tag
java.lang.Object
java.lang.Record
atlantafx.base.util.BBCodeHandler.Tag
- Record Components:
name- The tag name.params- The tag params.styleClasses- The CSS classes. Each element is either a single style or space delimited string.styles- The CSS styles. Each element is either a single style or semicolon delimited string.
- Enclosing interface:
BBCodeHandler
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Stringfinal inthashCode()Returns a hash code value for this object.booleanbooleanisBlock()booleanname()Returns the value of thenamerecord component.params()Returns the value of theparamsrecord component.Returns the value of thestyleClassesrecord component.styles()Returns the value of thestylesrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Tag
public Tag(String name, BBCodeHandler.Tag.Type type, @Nullable Map<String, String> params, @Nullable Set<String> styleClasses, @Nullable Set<String> styles) Creates an instance of aTagrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentparams- the value for theparamsrecord componentstyleClasses- the value for thestyleClassesrecord componentstyles- the value for thestylesrecord component
-
-
Method Details
-
hasParam
-
getParam
-
getParam
-
isBlock
public boolean isBlock() -
isSelfClose
public boolean isSelfClose() -
toString
-
hashCode
-
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). -
name
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
params
-
styleClasses
Returns the value of thestyleClassesrecord component.- Returns:
- the value of the
styleClassesrecord component
-
styles
-