Class OdfStyleProperty
- java.lang.Object
-
- org.odftoolkit.odfdom.dom.style.props.OdfStyleProperty
-
- All Implemented Interfaces:
Comparable<OdfStyleProperty>
public class OdfStyleProperty extends Object implements Comparable<OdfStyleProperty>
Class to represent a odf style attribut. Each instance has a name and belongs to an ODF style-properties element.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OdfStyleProperty o)OdfStylePropertycopy()booleanequals(Object o)static OdfStylePropertyget(OdfStylePropertiesSet propSet, OdfName name)Looks if an OdfStyleProperty is already listed in the static sytleProperties set, otherwise creates a new one.OdfNamegetName()OdfStylePropertiesSetgetPropertySet()inthashCode()StringtoString()
-
-
-
Method Detail
-
get
public static OdfStyleProperty get(OdfStylePropertiesSet propSet, OdfName name)
Looks if an OdfStyleProperty is already listed in the static sytleProperties set, otherwise creates a new one.- Parameters:
propSet- an OdfStylePropertiesSet membername-- Returns:
- new created or existing OdfStylePorperty
-
getPropertySet
public OdfStylePropertiesSet getPropertySet()
- Returns:
- an OdfStylePropertiesSet member
-
getName
public OdfName getName()
- Returns:
- name of OdfStyleProperty instance
-
copy
public OdfStyleProperty copy()
-
compareTo
public int compareTo(OdfStyleProperty o)
- Specified by:
compareToin interfaceComparable<OdfStyleProperty>
-
-