Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Unknown.java 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.fo;
  18. /**
  19. * Class for handling an unknown element, for example one from an unsupported
  20. * namespace.
  21. * This prevents any further problems arising from the unknown
  22. * data.
  23. */
  24. public class Unknown extends FONode {
  25. /**
  26. * Inner class for handling the creation of Unknown objects
  27. */
  28. public static class Maker extends ElementMapping.Maker {
  29. /**
  30. * @param parent the FONode that is the parent of the object to be
  31. * created
  32. * @return the created Unknown object
  33. */
  34. public FONode make(FONode parent) {
  35. return new Unknown(parent);
  36. }
  37. }
  38. /**
  39. * @param parent FONode that is the parent of this object
  40. */
  41. public Unknown(FONode parent) {
  42. super(parent);
  43. }
  44. private void setup() {
  45. getLogger().debug("Layout Unknown element");
  46. }
  47. /**
  48. * This is a hook for an FOTreeVisitor subclass to be able to access
  49. * this object.
  50. * @param fotv the FOTreeVisitor subclass that can access this object.
  51. * @see org.apache.fop.fo.FOTreeVisitor
  52. */
  53. public void acceptVisitor(FOTreeVisitor fotv) {
  54. fotv.serveUnknown(this);
  55. }
  56. }