All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.aural.ACssVoiceFamily

java.lang.Object
   |
   +----org.w3c.css.properties.CssProperty
           |
           +----org.w3c.css.aural.ACssProperty
                   |
                   +----org.w3c.css.aural.ACssVoiceFamily

public class ACssVoiceFamily
extends ACssProperty
implements CssOperator

5.2    'voice-family'

Value: [[<specific-voice> | <generic-voice>],]* [<specific-voice> | <generic-voice>]
Initial: UA
Applies to: all elements
Inherited: yes
Percentage values: NA

The value is a prioritized list of voice family names (compare with 'font-family'. Suggested genric families: male, female, child.

Examples of specific voice families are: comedian, trinoids, carlos, lisa

Examples

   H1 { voice-family: announcer, male }
   P.part.romeo {  voice-family: romeo, male }
   P.part.juliet { voice-family: juliet, female }
 

Should the properties of these family names be described, using an @-rule, to allow better client-side matching (like fonts). If so, what are the values that describe these voice families in a way that is independent of speech synthesizer?


Constructor Index

 o ACssVoiceFamily()
Create a new ACssVoiceFamily
 o ACssVoiceFamily(CssExpression)
Create a new ACssVoiceFamily

Method Index

 o addToStyle(CssStyle)
Add this property to the CssStyle.
 o containsGenericFamily()
Returns true if this property contains a generic family name
 o elements()
Returns all voices name
 o equals(CssProperty)
Compares two properties for equality.
 o get()
Returns the voice (null if no voice)
 o getPropertyInStyle(CssStyle, boolean)
Get this property in the style.
 o getPropertyName()
Returns the name of this property
 o isSoftlyInherited()
Returns true if this property is "softly" inherited e.g.
 o size()
Returns the size
 o toString()
Returns a string representation of the object.

Constructors

 o ACssVoiceFamily
 public ACssVoiceFamily()
Create a new ACssVoiceFamily

 o ACssVoiceFamily
 public ACssVoiceFamily(CssExpression value) throws InvalidParamException
Create a new ACssVoiceFamily

Parameters:
value - the voice name
Throws: InvalidParamException
The expression is incorrect

Methods

 o elements
 public Enumeration elements()
Returns all voices name

 o size
 public int size()
Returns the size

 o get
 public Object get()
Returns the voice (null if no voice)

Overrides:
get in class CssProperty
 o isSoftlyInherited
 public boolean isSoftlyInherited()
Returns true if this property is "softly" inherited e.g. his value is equals to inherit

Overrides:
isSoftlyInherited in class CssProperty
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class CssProperty
 o getPropertyName
 public String getPropertyName()
Returns the name of this property

Overrides:
getPropertyName in class CssProperty
 o addToStyle
 public void addToStyle(CssStyle style)
Add this property to the CssStyle.

Parameters:
style - The CssStyle
Overrides:
addToStyle in class CssProperty
 o equals
 public boolean equals(CssProperty property)
Compares two properties for equality.

Parameters:
value - The other property.
Overrides:
equals in class CssProperty
 o getPropertyInStyle
 public CssProperty getPropertyInStyle(CssStyle style,
                                       boolean resolve)
Get this property in the style.

Parameters:
style - The style where the property is
resolve - if true, resolve the style to find this property
Overrides:
getPropertyInStyle in class CssProperty
 o containsGenericFamily
 public boolean containsGenericFamily()
Returns true if this property contains a generic family name


All Packages  Class Hierarchy  This Package  Previous  Next  Index