/*
 * Copyright 2006 Wyona
 *
 *  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.wyona.org/licenses/APACHE-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 com.wyona.yanel.impl.resources;

import org.wyona.yanel.core.Resource;
import org.wyona.yanel.core.ResourceTypeDefinition;
import org.wyona.yanel.core.attributes.CreatableResource;
import org.wyona.yanel.core.attributes.VersionableResource;
import org.wyona.yanel.core.attributes.ViewableResource;
import org.wyona.yanel.core.attributes.ViewDescriptor;

/**
 *
 */
public class InvoiceResource extends Resource implements CreatableResource, ViewableResource, VersionableResource {

    /**
     *
     */
    public InvoiceResource(ResourceTypeDefinition rtd) {
        super(rtd);
    }

    /**
     *
     */
    public String[] getPropertyNames() {
        String[] pn = {"name", "customer", "content"};
        return pn;
    }

    /**
     *
     */
    public ViewDescriptor[] getViewDescriptors() {
        return null;
    }

    /**
     *
     */
    public String[] getRevisions() {
        return null;
    }
}

/*
 * Copyright 2006 Wyona
 *
 *  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.wyona.org/licenses/APACHE-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 com.wyona.yanel.impl.resources;

import org.wyona.yanel.core.ResourceDefaultImpl;
import org.wyona.yanel.core.ResourceTypeDefinition;
import org.wyona.yanel.core.attributes.CreatableResource;
import org.wyona.yanel.core.attributes.VersionableResource;
import org.wyona.yanel.core.attributes.ViewableResource;
import org.wyona.yanel.core.attributes.ViewDescriptor;

/**
 *
 */
public class InvoiceResource extends ResourceDefaultImpl implements CreatableResource, ViewableResource, VersionableResource {

    /**
     *
     */
    public InvoiceResource(ResourceTypeDefinition rtd) {
        super(rtd);
    }

    /**
     *
     */
    public String[] getPropertyNames() {
        String[] pn = {"name", "customer", "content"};
        return pn;
    }

    /**
     *
     */
/*
    public Object getProperty(String name) {
        return null;
    }
*/

    /**
     *
     */
/*
    public void setProperty(String name, Object value) {
    }
*/

    /**
     *
     */
    public ViewDescriptor[] getViewDescriptors() {
        return null;
    }

    /**
     *
     */
    public String[] getRevisions() {
        return null;
    }
}

extend default