import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.CommonRelativePosition;
-import org.apache.fop.fo.properties.CommonTextDecoration;
import org.apache.fop.fo.properties.KeepProperty;
import org.apache.fop.fo.properties.LengthRangeProperty;
import java.util.HashMap;
import java.util.Iterator;
-import java.util.List;
-import java.util.ListIterator;
import org.xml.sax.Locator;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.FOEventHandler;
import org.apache.fop.fo.FONode;
-import org.apache.fop.fo.FOText;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FObjMixed;
import org.apache.fop.fo.PropertyList;
* @see org.apache.fop.fo.FObj#bind(PropertyList)
*/
public void bind(PropertyList pList) throws FOPException {
+ if (findAncestor(FO_FLOW) < 0) {
+ invalidChildError(locator, FO_URI, "marker",
+ "An fo:marker is permitted only as the descendant " +
+ "of an fo:flow");
+ }
+
markerClassName = pList.get(PR_MARKER_CLASS_NAME).getString();
+
+ if (markerClassName == null || markerClassName.equals("")) {
+ missingPropertyError("marker-class-name");
+ }
}
/**
import java.util.HashMap;
import java.util.Iterator;
import java.util.ArrayList;
-import java.util.List;
import org.xml.sax.Locator;
* @see org.apache.fop.fo.FObj#bind(PropertyList)
*/
public void bind(PropertyList pList) throws FOPException {
+ if (findAncestor(FO_STATIC_CONTENT) < 0) {
+ invalidChildError(locator, FO_URI, "retrieve-marker",
+ "An fo:retrieve-marker is permitted only as the " +
+ " descendant of an fo:static-content.");
+ }
+
retrieveClassName = pList.get(PR_RETRIEVE_CLASS_NAME).getString();
retrievePosition = pList.get(PR_RETRIEVE_POSITION).getEnum();
retrieveBoundary = pList.get(PR_RETRIEVE_BOUNDARY).getEnum();
+
+ if (retrieveClassName == null || retrieveClassName.equals("")) {
+ missingPropertyError("retrieve-class-name");
+ }
}
/**
import java.util.List;
import java.util.ListIterator;
-import org.apache.fop.traits.MinOptMax;
-
/**
* LayoutManager for an fo:flow object.
* Its parent LM is the PageSequenceLayoutManager.