directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1512248 - in /directory/escimo/trunk: common/src/main/java/org/apache/directory/scim/schema/ common/src/main/java/org/apache/directory/scim/schema/BaseType.java ldap/src/main/java/org/apache/directory/scim/ldap/schema/BaseType.java
Date Fri, 09 Aug 2013 11:01:46 GMT
Author: kayyagari
Date: Fri Aug  9 11:01:46 2013
New Revision: 1512248

URL: http://svn.apache.org/r1512248
Log:
moved base type to common

Added:
    directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/schema/
    directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/schema/BaseType.java
Removed:
    directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/schema/BaseType.java

Added: directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/schema/BaseType.java
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/schema/BaseType.java?rev=1512248&view=auto
==============================================================================
--- directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/schema/BaseType.java
(added)
+++ directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/schema/BaseType.java
Fri Aug  9 11:01:46 2013
@@ -0,0 +1,114 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you 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.apache.directory.scim.schema;
+
+import org.apache.directory.scim.json.ResourceSerializer;
+
+
+/**
+ * TODO BaseType.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public abstract class BaseType
+{
+    private String uri;
+
+    private String name;
+    
+    private boolean show = true;
+
+    private String atHandlerName;
+    
+    public BaseType( String uri, String name, boolean show )
+    {
+        this.uri = uri;
+        this.name = name;
+        this.show = show;
+    }
+
+
+    public String getName()
+    {
+        return name;
+    }
+
+
+    public boolean isShow()
+    {
+        return show;
+    }
+
+
+    public boolean isSimple()
+    {
+        return false;
+    }
+
+
+    public boolean isComplex()
+    {
+        return false;
+    }
+
+
+    public boolean isTyped()
+    {
+        return false;
+    }
+
+    public boolean isCoreAttribute()
+    {
+        return ResourceSerializer.CORE_URI.equals( uri );
+    }
+
+    /**
+     * @return the uri
+     */
+    public String getUri()
+    {
+        return uri;
+    }
+
+
+    public void setAtHandlerName( String atHandlerName )
+    {
+        this.atHandlerName = atHandlerName;
+    }
+
+
+    public String getAtHandlerName()
+    {
+        return atHandlerName;
+    }
+
+    
+    public boolean hasHandler()
+    {
+        return (atHandlerName != null);
+    }
+    
+
+    public boolean isDynamic()
+    {
+        return false;
+    }
+
+}



Mime
View raw message