org.apache.fop.fo.expr

Class NCnameProperty


public class NCnameProperty
extends Property

Class for handling NC Name objects

Field Summary

Fields inherited from class org.apache.fop.fo.properties.Property

log

Constructor Summary

NCnameProperty(String ncName)
Constructor

Method Summary

Color
getColor(FOUserAgent foUserAgent)
If a system color, return the corresponding value.
String
getNCname()
Object
getObject()
String
getString()

Methods inherited from class org.apache.fop.fo.properties.Property

getCharacter, getColor, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getObject, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString

Constructor Details

NCnameProperty

public NCnameProperty(String ncName)
Constructor
Parameters:
ncName - string representing the ncName

Method Details

getColor

public Color getColor(FOUserAgent foUserAgent)
If a system color, return the corresponding value.
Overrides:
getColor in interface Property
Parameters:
foUserAgent - Reference to FOP user agent - keeps track of cached ColorMaps for ICC colors
Returns:
Color object corresponding to the NCName

getNCname

public String getNCname()
Overrides:
getNCname in interface Property
Returns:
ncName for this

getObject

public Object getObject()
Overrides:
getObject in interface Property
Returns:
the name as an Object.

getString

public String getString()
Overrides:
getString in interface Property
Returns:
the name as a String (should be specified with quotes!)

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.