Class IPAElement
java.lang.Object
ca.phon.ipa.IPAElement
- All Implemented Interfaces:
IExtendable,Visitable<IPAElement>
- Direct Known Subclasses:
AlignmentMarker,CompoundWordMarker,Diacritic,IntonationGroup,IntraWordPause,Pause,Phone,PhoneticGroupMarker,PhonexMatcherReference,Sandhi,StressMarker,SyllableBoundary,ToneNumber,WordBoundary
IPAElements represent the atomic unit of IPA transcriptions.
IPAElements are constructed using the create methods of
IPAElementFactory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FeatureSetPrivate method to return the feature set for theIPAElement.voidaccept(Visitor<IPAElement> phoneVisitor) Accept the given visitor.Get constituent type for this phone.Return the feature set for thisIPAElement.<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supportedabstract StringgetText()Get the text for this phonebooleanGet override feature set for this phone.<T> TputExtension(Class<T> cap, T impl) Add a new extension.<T> TremoveExtension(Class<T> cap) Remove a capability.booleanintsonority()intstress()Get syllable stress for this phone.intGet syllable information for this phone.tone()toString()
-
Constructor Details
-
IPAElement
-
-
Method Details
-
_getFeatureSet
Private method to return the feature set for theIPAElement.- Returns:
- the feature set for the implementing type.
-
getText
-
syllableInfo
Get syllable information for this phone.- Returns:
- the syllable information for the phone
-
overrideFeatureSet
Get override feature set for this phone.- Returns:
- the override feature set or
nullif no override is defined.
-
featureSet
Return the feature set for thisIPAElement.- Returns:
- the default feature set - derived by the implementing type or custom features if defined.
-
constituentType
Get constituent type for this phone.- Returns:
- the syllable constituent type for the phone (if assigned)
-
stress
Get syllable stress for this phone.- Returns:
- the syllable stress for the phone
-
segregated
public boolean segregated() -
sonorityDistance
public int sonorityDistance() -
sonority
public int sonority() -
tone
-
isDiphthong
public boolean isDiphthong() -
syllableIndex
public int syllableIndex() -
accept
Description copied from interface:VisitableAccept the given visitor.- Specified by:
acceptin interfaceVisitable<IPAElement>
-
getExtensions
Description copied from interface:IExtendableReturn all extension types supported- Specified by:
getExtensionsin interfaceIExtendable
-
getExtension
Description copied from interface:IExtendableGet the requested extension if available.- Specified by:
getExtensionin interfaceIExtendable- Returns:
- the capability object or
nullif the cability is not available
-
putExtension
Description copied from interface:IExtendableAdd a new extension.- Specified by:
putExtensionin interfaceIExtendable- Parameters:
cap- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendableRemove a capability.- Specified by:
removeExtensionin interfaceIExtendable- Parameters:
cap- the capability to remove
-
toString
-