001/*
002 * ModeShape (http://www.modeshape.org)
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 */
016package org.modeshape.connector.git;
017
018import org.modeshape.common.annotation.Immutable;
019import org.modeshape.jcr.value.Name;
020import org.modeshape.jcr.value.basic.BasicName;
021
022/**
023 * Lexicon of names from the "<code>http://www.modeshape.org/git/1.0</code>" namespace used in the Git connector.
024 */
025@Immutable
026public class GitLexicon {
027
028    public static class Namespace {
029        public static final String URI = "http://www.modeshape.org/git/1.0";
030        public static final String PREFIX = "git";
031    }
032
033    public static final Name ROOT = new BasicName(Namespace.URI, "root");
034    public static final Name BRANCHES = new BasicName(Namespace.URI, "branches");
035    public static final Name BRANCH = new BasicName(Namespace.URI, "branch");
036    public static final Name TAGS = new BasicName(Namespace.URI, "tags");
037    public static final Name TAG = new BasicName(Namespace.URI, "tag");
038    public static final Name COMMITS = new BasicName(Namespace.URI, "commits");
039    public static final Name COMMIT = new BasicName(Namespace.URI, "commit");
040    public static final Name OBJECT = new BasicName(Namespace.URI, "object");
041    public static final Name TREES = new BasicName(Namespace.URI, "trees");
042    public static final Name FOLDER = new BasicName(Namespace.URI, "folder");
043    public static final Name FILE = new BasicName(Namespace.URI, "file");
044    public static final Name RESOURCE = new BasicName(Namespace.URI, "resource");
045    public static final Name DETAILS = new BasicName(Namespace.URI, "details");
046    public static final Name DETAILED_COMMIT = new BasicName(Namespace.URI, "detailedCommit");
047
048    public static final Name OBJECT_ID = new BasicName(Namespace.URI, "objectId");
049    public static final Name AUTHOR = new BasicName(Namespace.URI, "author");
050    public static final Name COMMITTER = new BasicName(Namespace.URI, "committer");
051    public static final Name COMMITTED = new BasicName(Namespace.URI, "committed");
052    public static final Name TITLE = new BasicName(Namespace.URI, "title");
053    public static final Name MESSAGE = new BasicName(Namespace.URI, "message");
054    public static final Name PARENTS = new BasicName(Namespace.URI, "parents");
055
056    /** Property names */
057    public static final Name HISTORY = new BasicName(Namespace.URI, "history");
058    public static final Name DIFF = new BasicName(Namespace.URI, "diff");
059    public static final Name TREE = new BasicName(Namespace.URI, "tree");
060    public static final Name DETAIL = new BasicName(Namespace.URI, "detail");
061}