/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.css.engine.value;
import org.w3c.dom.DOMException;
This class represents a computed property value.
Author: Stephane Hillion Version: $Id: ComputedValue.java 1733416 2016-03-03 07:07:13Z gadams $
/**
* This class represents a computed property value.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
* @version $Id: ComputedValue.java 1733416 2016-03-03 07:07:13Z gadams $
*/
public class ComputedValue implements Value {
The cascaded value.
/**
* The cascaded value.
*/
protected Value cascadedValue;
The computed value.
/**
* The computed value.
*/
protected Value computedValue;
Creates a new ComputedValue object.
Params: - cv – The cascaded value.
/**
* Creates a new ComputedValue object.
* @param cv The cascaded value.
*/
public ComputedValue(Value cv) {
cascadedValue = cv;
}
Returns the computed value.
/**
* Returns the computed value.
*/
public Value getComputedValue() {
return computedValue;
}
Returns the cascaded value.
/**
* Returns the cascaded value.
*/
public Value getCascadedValue() {
return cascadedValue;
}
Sets the computed value.
/**
* Sets the computed value.
*/
public void setComputedValue(Value v) {
computedValue = v;
}
Implements Value.getCssText()
. /**
* Implements {@link Value#getCssText()}.
*/
public String getCssText() {
return computedValue.getCssText();
}
Implements Value.getCssValueType()
. /**
* Implements {@link Value#getCssValueType()}.
*/
public short getCssValueType() {
return computedValue.getCssValueType();
}
Implements Value.getPrimitiveType()
. /**
* Implements {@link Value#getPrimitiveType()}.
*/
public short getPrimitiveType() {
return computedValue.getPrimitiveType();
}
Implements Value.getFloatValue()
. /**
* Implements {@link Value#getFloatValue()}.
*/
public float getFloatValue() throws DOMException {
return computedValue.getFloatValue();
}
Implements Value.getStringValue()
. /**
* Implements {@link Value#getStringValue()}.
*/
public String getStringValue() throws DOMException {
return computedValue.getStringValue();
}
Implements Value.getRed()
. /**
* Implements {@link Value#getRed()}.
*/
public Value getRed() throws DOMException {
return computedValue.getRed();
}
Implements Value.getGreen()
. /**
* Implements {@link Value#getGreen()}.
*/
public Value getGreen() throws DOMException {
return computedValue.getGreen();
}
Implements Value.getBlue()
. /**
* Implements {@link Value#getBlue()}.
*/
public Value getBlue() throws DOMException {
return computedValue.getBlue();
}
Implements Value.getLength()
. /**
* Implements {@link Value#getLength()}.
*/
public int getLength() throws DOMException {
return computedValue.getLength();
}
Implements Value.item(int)
. /**
* Implements {@link Value#item(int)}.
*/
public Value item(int index) throws DOMException {
return computedValue.item(index);
}
Implements Value.getTop()
. /**
* Implements {@link Value#getTop()}.
*/
public Value getTop() throws DOMException {
return computedValue.getTop();
}
Implements Value.getRight()
. /**
* Implements {@link Value#getRight()}.
*/
public Value getRight() throws DOMException {
return computedValue.getRight();
}
Implements Value.getBottom()
. /**
* Implements {@link Value#getBottom()}.
*/
public Value getBottom() throws DOMException {
return computedValue.getBottom();
}
Implements Value.getLeft()
. /**
* Implements {@link Value#getLeft()}.
*/
public Value getLeft() throws DOMException {
return computedValue.getLeft();
}
Implements Value.getIdentifier()
. /**
* Implements {@link Value#getIdentifier()}.
*/
public String getIdentifier() throws DOMException {
return computedValue.getIdentifier();
}
Implements Value.getListStyle()
. /**
* Implements {@link Value#getListStyle()}.
*/
public String getListStyle() throws DOMException {
return computedValue.getListStyle();
}
Implements Value.getSeparator()
. /**
* Implements {@link Value#getSeparator()}.
*/
public String getSeparator() throws DOMException {
return computedValue.getSeparator();
}
}