01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: MultiPropertySet.java 554094 2007-07-07 00:04:25Z adelmelle $ */
19:
20: package org.apache.fop.fo.flow;
21:
22: // XML
23: import org.xml.sax.Locator;
24:
25: import org.apache.fop.apps.FOPException;
26: import org.apache.fop.fo.FONode;
27: import org.apache.fop.fo.FObj;
28: import org.apache.fop.fo.PropertyList;
29: import org.apache.fop.fo.ValidationException;
30:
31: /**
32: * Class modelling the fo:multi-property-set object.
33: */
34: public class MultiPropertySet extends FObj {
35: // The value of properties relevant for fo:multi-property-set.
36: // private ToBeImplementedProperty activeState;
37: // End of property values
38:
39: static boolean notImplementedWarningGiven = false;
40:
41: /**
42: * @param parent FONode that is the parent of this object
43: */
44: public MultiPropertySet(FONode parent) {
45: super (parent);
46:
47: if (!notImplementedWarningGiven) {
48: log.warn("fo:multi-property-set is not yet implemented.");
49: notImplementedWarningGiven = true;
50: }
51: }
52:
53: /**
54: * @see org.apache.fop.fo.FObj#bind(PropertyList)
55: */
56: public void bind(PropertyList pList) throws FOPException {
57: super .bind(pList);
58: // activeState = pList.get(PR_ACTIVE_STATE);
59: }
60:
61: /**
62: * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
63: * XSL Content Model: empty
64: */
65: protected void validateChildNode(Locator loc, String nsURI,
66: String localName) throws ValidationException {
67: invalidChildError(loc, nsURI, localName);
68: }
69:
70: /** @see org.apache.fop.fo.FONode#getLocalName() */
71: public String getLocalName() {
72: return "multi-property-set";
73: }
74:
75: /**
76: * @see org.apache.fop.fo.FObj#getNameId()
77: */
78: public int getNameId() {
79: return FO_MULTI_PROPERTY_SET;
80: }
81: }
|