Package org.apache.fop.fo.properties
Class OptionalCharacterProperty
- java.lang.Object
-
- org.apache.fop.fo.properties.Property
-
- org.apache.fop.fo.properties.OptionalCharacterProperty
-
public final class OptionalCharacterProperty extends Property
Superclass for properties that wrap an optional character value TODO convert character value to int in order to denote unicode scalar value instead of a single UTF-16 code element
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OptionalCharacterProperty.Maker
Inner class for creating instances of OptionalCharacterProperty
-
Field Summary
Fields Modifier and Type Field Description private static PropertyCache<OptionalCharacterProperty>
CACHE
cache containing all canonical OptionalCharacterProperty instancesprivate java.lang.Character
character
-
Constructor Summary
Constructors Modifier Constructor Description private
OptionalCharacterProperty(java.lang.Character character)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
char
getCharacter()
This method expects to be overridden by subclassesstatic OptionalCharacterProperty
getInstance(java.lang.Character character)
Get character property instance for character.java.lang.Object
getObject()
This method expects to be overridden by subclassesjava.lang.String
getString()
This method expects to be overridden by subclasses.int
hashCode()
-
Methods inherited from class org.apache.fop.fo.properties.Property
getColor, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString
-
-
-
-
Field Detail
-
CACHE
private static final PropertyCache<OptionalCharacterProperty> CACHE
cache containing all canonical OptionalCharacterProperty instances
-
character
private final java.lang.Character character
-
-
Method Detail
-
getInstance
public static OptionalCharacterProperty getInstance(java.lang.Character character)
Get character property instance for character.- Parameters:
character
- the character- Returns:
- the character property instance
-
getObject
public java.lang.Object getObject()
Description copied from class:Property
This method expects to be overridden by subclasses
-
getCharacter
public char getCharacter()
Description copied from class:Property
This method expects to be overridden by subclasses- Overrides:
getCharacter
in classProperty
- Returns:
- this.character
-
getString
public java.lang.String getString()
Description copied from class:Property
This method expects to be overridden by subclasses.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-