org.apache.jetspeed.container.namespace
Class JetspeedNamespaceMapperImpl

java.lang.Object
  extended by org.apache.jetspeed.container.namespace.JetspeedNamespaceMapperImpl
All Implemented Interfaces:
JetspeedNamespaceMapper, org.apache.pluto.util.NamespaceMapper

public class JetspeedNamespaceMapperImpl
extends Object
implements JetspeedNamespaceMapper

Jetspeed implementation of Name space mapping for creating named attributes.

Version:
$Id: JetspeedNamespaceMapperImpl.java 551860 2007-06-29 11:56:23Z ate $
Author:
David Sean Taylor, Ate Douma

Field Summary
private  String prefix
           
 
Fields inherited from interface org.apache.jetspeed.container.namespace.JetspeedNamespaceMapper
DEFAULT_PREFIX
 
Constructor Summary
JetspeedNamespaceMapperImpl()
           
JetspeedNamespaceMapperImpl(String prefix)
           
 
Method Summary
 String decode(org.apache.pluto.om.common.ObjectID ns, String name)
           
 String decode(String ns, String name)
           
 String encode(long id, String name)
           
 String encode(org.apache.pluto.om.common.ObjectID ns1, org.apache.pluto.om.common.ObjectID ns2, String name)
           
 String encode(org.apache.pluto.om.common.ObjectID ns, String name)
           
 String encode(String ns, String name)
           
 String encode(String ns1, String ns2, String name)
           
 String getPrefix()
           
private static String join(String s1, String s2, String s3, String s4, String s5, String s6)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

private String prefix
Constructor Detail

JetspeedNamespaceMapperImpl

public JetspeedNamespaceMapperImpl(String prefix)

JetspeedNamespaceMapperImpl

public JetspeedNamespaceMapperImpl()
Method Detail

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface JetspeedNamespaceMapper

encode

public String encode(String ns,
                     String name)

encode

public String encode(String ns1,
                     String ns2,
                     String name)

decode

public String decode(String ns,
                     String name)

encode

public String encode(long id,
                     String name)

encode

public String encode(org.apache.pluto.om.common.ObjectID ns,
                     String name)
Specified by:
encode in interface org.apache.pluto.util.NamespaceMapper

encode

public String encode(org.apache.pluto.om.common.ObjectID ns1,
                     org.apache.pluto.om.common.ObjectID ns2,
                     String name)
Specified by:
encode in interface org.apache.pluto.util.NamespaceMapper

decode

public String decode(org.apache.pluto.om.common.ObjectID ns,
                     String name)
Specified by:
decode in interface org.apache.pluto.util.NamespaceMapper

join

private static String join(String s1,
                           String s2,
                           String s3,
                           String s4,
                           String s5,
                           String s6)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.