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
IPAElement
s represent the atomic unit of IPA transcriptions.
IPAElement
s are constructed using the create methods of
IPAElementFactory
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FeatureSet
Private method to return the feature set for theIPAElement
.void
accept
(Visitor<IPAElement> phoneVisitor) Accept the given visitor.Get constituent type for this phone.Return the feature set for thisIPAElement
.<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedabstract String
getText()
Get the text for this phoneboolean
Get override feature set for this phone.<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.boolean
int
sonority()
int
stress()
Get syllable stress for this phone.int
Get 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
null
if 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:Visitable
Accept the given visitor.- Specified by:
accept
in interfaceVisitable<IPAElement>
-
getExtensions
Description copied from interface:IExtendable
Return all extension types supported- Specified by:
getExtensions
in interfaceIExtendable
-
getExtension
Description copied from interface:IExtendable
Get the requested extension if available.- Specified by:
getExtension
in interfaceIExtendable
- Returns:
- the capability object or
null
if the cability is not available
-
putExtension
Description copied from interface:IExtendable
Add a new extension.- Specified by:
putExtension
in interfaceIExtendable
- Parameters:
cap
- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendable
Remove a capability.- Specified by:
removeExtension
in interfaceIExtendable
- Parameters:
cap
- the capability to remove
-
toString
-