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:
java.io.Serializable, CmisExtensionElement

public class CmisExtensionElementImpl
extends java.lang.Object
implements CmisExtensionElement

See Also:
Serialized Form

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

Constructor Detail

CmisExtensionElementImpl

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


CmisExtensionElementImpl

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


CmisExtensionElementImpl

public CmisExtensionElementImpl(CmisExtensionElement element)
Copy constructor.

Method Detail

getName

public java.lang.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 java.lang.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 java.lang.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 java.util.List<CmisExtensionElement> getChildren()
Description copied from interface: CmisExtensionElement
Returns the children of this extension.

Specified by:
getChildren in interface CmisExtensionElement

getAttributes

public java.util.Map<java.lang.String,java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


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