All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openestate.io.filemaker.FilemakerDocument Maven / Gradle / Ivy

Go to download

OpenEstate-IO-Filemaker is a Java library to read and write XML formats of the real estate software FlatHunter Pro, which is based on the Filemaker database system.

There is a newer version: 1.4
Show newest version
/*
 * Copyright 2015-2017 OpenEstate.org.
 *
 * Licensed 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.openestate.io.filemaker;

import org.openestate.io.core.XmlDocument;
import org.w3c.dom.Document;

/**
 * A general Filemaker-XML document.
 *
 * @param 
 * the class of a (via JAXB generated) Java object, that the contained
 * {@link Document} is mapped to
 *
 * @since 1.0
 * @author Andreas Rudolph
 */
public abstract class FilemakerDocument extends XmlDocument
{
  //private final static Logger LOGGER = LoggerFactory.getLogger( FilemakerDocument.class );

  /**
   * Create from a {@link Document}.
   *
   * @param document
   * the document to create from
   */
  protected FilemakerDocument( Document document )
  {
    super( document );
  }

  /**
   * Checks, if the current document is a {@link FilemakerLayoutDocument}.
   *
   * @return
   * true, if the current document is a {@link FilemakerLayoutDocument}
   */
  public boolean isLayout()
  {
    return this instanceof FilemakerLayoutDocument;
  }

  /**
   * Checks, if the current document is a {@link FilemakerResultDocument}.
   *
   * @return
   * true, if the current document is a {@link FilemakerResultDocument}
   */
  public boolean isResult()
  {
    return this instanceof FilemakerResultDocument;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy