org.apache.chemistry.opencmis.commons.impl.dataobjects
Class CmisExtensionElementImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.CmisExtensionElementImpl
All Implemented Interfaces:
Serializable, CmisExtensionElement

public class CmisExtensionElementImpl
extends Object
implements CmisExtensionElement

See Also:
Serialized Form

Constructor Summary
CmisExtensionElementImpl(CmisExtensionElement element)
          Copy constructor.
CmisExtensionElementImpl(String namespace, String name, Map<String,String> attributes, List<CmisExtensionElement> children)
          Constructor for a node.
CmisExtensionElementImpl(String namespace, String name, Map<String,String> attributes, String value)
          Constructor for a leaf.
 
Method Summary
 Map<String,String> getAttributes()
          Returns the attributes of the extension.
 List<CmisExtensionElement> getChildren()
          Returns the children of this extension.
 String getName()
          Returns the name of the extension.
 String getNamespace()
          Returns the namespace of the extension.
 String getValue()
          Returns the value of the extension as a String.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmisExtensionElementImpl

public CmisExtensionElementImpl(String namespace,
                                String name,
                                Map<String,String> attributes,
                                String value)
Constructor for a leaf.


CmisExtensionElementImpl

public CmisExtensionElementImpl(String namespace,
                                String name,
                                Map<String,String> attributes,
                                List<CmisExtensionElement> children)
Constructor for a node.


CmisExtensionElementImpl

public CmisExtensionElementImpl(CmisExtensionElement element)
Copy constructor.

Method Detail

getName

public String getName()
Description copied from interface: CmisExtensionElement
Returns the name of the extension. The name is never null.

Specified by:
getName in interface CmisExtensionElement

getNamespace

public String getNamespace()
Description copied from interface: CmisExtensionElement
Returns the namespace of the extension. If the binding doesn't support namespaces this method will return null. Don't rely on namespaces because they are binding specific!

Specified by:
getNamespace in interface CmisExtensionElement

getValue

public String getValue()
Description copied from interface: CmisExtensionElement
Returns the value of the extension as a String. If this extension has children than this method returns null.

Specified by:
getValue in interface CmisExtensionElement

getChildren

public List<CmisExtensionElement> getChildren()
Description copied from interface: CmisExtensionElement
Returns the children of this extension.

Specified by:
getChildren in interface CmisExtensionElement

getAttributes

public Map<String,String> getAttributes()
Description copied from interface: CmisExtensionElement
Returns the attributes of the extension. If the binding doesn't support attributes this method will return null. Try to avoid attributes because they are binding specific!

Specified by:
getAttributes in interface CmisExtensionElement

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.