001/*
002 * (C) Copyright 2009-2012 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *    Mariana Cedica
018 */
019package org.nuxeo.ecm.platform.routing.api;
020
021import java.net.URL;
022
023import org.nuxeo.common.xmap.annotation.XNode;
024import org.nuxeo.common.xmap.annotation.XObject;
025
026/**
027 * @since 5.6
028 */
029@XObject("template-resource")
030public class RouteModelResourceType {
031
032    @XNode("@id")
033    protected String id;
034
035    @XNode("@path")
036    protected String path;
037
038    protected URL url;
039
040    public String getPath() {
041        return path;
042    }
043
044    public String getId() {
045        return id;
046    }
047
048    public URL getUrl() {
049        return url;
050    }
051
052    public void setUrl(URL url) {
053        this.url = url;
054    }
055
056    public void setId(String id) {
057        this.id = id;
058    }
059
060    public void setPath(String path) {
061        this.path = path;
062    }
063
064}