|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.extensions.commons.table.support.CALSColSpec
@API(type=INTERNAL, src=PUBLIC) public class CALSColSpec
The column specification for a CALS table model (e.g. DocBook or DITA tables).
Constructor Summary | |
---|---|
CALSColSpec(int indexInDocument,
int colNumber,
boolean colNumberSpecified,
java.lang.String colName,
java.lang.String colWidth)
Constructor. |
|
CALSColSpec(int indexInDocument,
int colNumber,
boolean colNumberSpecified,
java.lang.String colName,
WidthRepresentation colWidth)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
createXMLFragment(java.lang.String ns)
Creates the XML fragment corresponding to the column specification obtained from the colNumber , colName and
colWidth fields. |
java.lang.String |
getColumnName()
|
int |
getColumnNumber()
|
WidthRepresentation |
getColWidth()
|
int |
getIndexInDocument()
|
boolean |
isColNumberSpecified()
|
void |
setColWidth(WidthRepresentation colWidth)
Set the new WidthRepresentation corresponding to the column specification. |
java.lang.String |
toString()
Creates a String representation of the column specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CALSColSpec(int indexInDocument, int colNumber, boolean colNumberSpecified, java.lang.String colName, java.lang.String colWidth)
indexInDocument
- Index in colspec elements list.colNumber
- The number of the column. It is 1 based.colNumberSpecified
- true
if the column number was specified as an attributecolName
- The name of the column.colWidth
- The string representation of the column width
as described in the WidthRepresentation
.public CALSColSpec(int indexInDocument, int colNumber, boolean colNumberSpecified, java.lang.String colName, WidthRepresentation colWidth)
colNumber
- The number of this column. It is 1 based.colNumberSpecified
- true
if the column number was specified as an attributecolName
- The name of this column.colWidth
- The column width representation.indexInDocument
- Index in colspec elements list.Method Detail |
---|
public boolean isColNumberSpecified()
public int getIndexInDocument()
public int getColumnNumber()
public java.lang.String getColumnName()
public WidthRepresentation getColWidth()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String createXMLFragment(java.lang.String ns)
colNumber
, colName
and
colWidth
fields.
<colspec colnum="integer_value" colname="string_value" colwidth="string_value" xmlns="URI"/>
ns
- The namespace URI of the table element. It can be null
.
public void setColWidth(WidthRepresentation colWidth)
WidthRepresentation
corresponding to the column specification.
colWidth
- The column width to be set.
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |