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
public static record BBCodeHandler.Tag(String name, BBCodeHandler.Tag.Type type, @Nullable Map<String,String> params, Set<String> styleClasses, Set<String> styles)
extends Record
Generic tag record.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final 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 @Nullable Map<String, String> params, Set<String> styleClasses, 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
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
styleClasses
Returns the value of thestyleClassesrecord component.- Returns:
- the value of the
styleClassesrecord component
-
styles
Returns the value of thestylesrecord component.- Returns:
- the value of the
stylesrecord component
-