Package ca.phon.ipa
Class PhonexMatcherReference
java.lang.Object
ca.phon.ipa.IPAElement
ca.phon.ipa.PhonexMatcherReference
- All Implemented Interfaces:
IExtendable
,CombiningDiacritics
,PrefixDiacritics
,SuffixDiacritics
,Visitable<IPAElement>
public class PhonexMatcherReference
extends IPAElement
implements PrefixDiacritics, SuffixDiacritics, CombiningDiacritics
A special type of IPAElement which represents a
reference to a phonex group. This is used during
phonex replacement only.
-
Field Summary
Fields inherited from class ca.phon.ipa.IPAElement
PHONE_TEXT
-
Constructor Summary
ConstructorDescriptionPhonexMatcherReference
(Integer groupIndex) PhonexMatcherReference
(String groupName) -
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureSet
Private method to return the feature set for theIPAElement
.Get the string for the combining diacritic portion of the phone.Get the combining diacritics for the phone.int
Get the string representing this phone's prefix.Get the string for this phone's suffix.getText()
Get the text for this phonevoid
setCombiningDiacritics
(Diacritic[] combiningDiacritics) Set the combining diacritics for this phone.void
setPrefixDiacritics
(Diacritic[] prefixDiacritics) Set the prefix diacritics for this Phone.void
setSuffixDiacritics
(Diacritic[] suffixDiacritics) Set the prefix diacritics for this Phone.Methods inherited from class ca.phon.ipa.IPAElement
accept, addPropertyChangeListener, addPropertyChangeListener, contentEquals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getExtension, getExtensions, getFeatureSet, getPropertyChangeListeners, getPropertyChangeListeners, getScType, hasListeners, putExtension, removeExtension, removePropertyChangeListener, removePropertyChangeListener, setFeatureSet, setScType, toString
-
Constructor Details
-
PhonexMatcherReference
-
PhonexMatcherReference
-
-
Method Details
-
getGroupIndex
public int getGroupIndex() -
getGroupName
-
getPrefixDiacritics
- Specified by:
getPrefixDiacritics
in interfacePrefixDiacritics
-
setPrefixDiacritics
Set the prefix diacritics for this Phone.- Parameters:
prefixDiacritics
-
-
getPrefix
Get the string representing this phone's prefix.- Returns:
-
getCombiningDiacritics
Get the combining diacritics for the phone.
- Specified by:
getCombiningDiacritics
in interfaceCombiningDiacritics
- Returns:
- the combining diacritics, or an empty array if no combining diacritics are available.
-
setCombiningDiacritics
Set the combining diacritics for this phone. Each character must have a the
IPATokenType.COMBINING_DIACRITIC
token type.- Parameters:
combiningDiacritics
-- Throws:
IllegalArgumentException
- if one of the given diacritics is not a combining diacritic
-
getCombining
Get the string for the combining diacritic portion of the phone.- Returns:
- the combining diacritic string
-
getSuffixDiacritics
- Specified by:
getSuffixDiacritics
in interfaceSuffixDiacritics
-
setSuffixDiacritics
Set the prefix diacritics for this Phone.- Parameters:
prefixDiacritics
-
-
getSuffix
Get the string for this phone's suffix.- Returns:
- the text for the suffix portion of the Phone
-
_getFeatureSet
Description copied from class:IPAElement
Private method to return the feature set for theIPAElement
. This return value for this method can be changed by using theIPAElement.setFeatureSet(FeatureSet)
method.- Specified by:
_getFeatureSet
in classIPAElement
- Returns:
- the phones feature set
-
getText
Description copied from class:IPAElement
Get the text for this phone- Specified by:
getText
in classIPAElement
- Returns:
- the phone string
-