org.duracloud.storage.xml.impl
Class StorageAccountProviderSimpleBindingImpl
java.lang.Object
org.duracloud.storage.xml.impl.StorageAccountProviderSimpleBindingImpl
- All Implemented Interfaces:
- StorageAccountProviderBinding
public class StorageAccountProviderSimpleBindingImpl
- extends java.lang.Object
- implements StorageAccountProviderBinding
This class provides a simple xml binding for storage accounts.
- Author:
- Andrew Woods
Date: 5/9/11
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StorageAccountProviderSimpleBindingImpl
public StorageAccountProviderSimpleBindingImpl()
getAccountFromXml
public StorageAccount getAccountFromXml(org.jdom.Element xml)
- Description copied from interface:
StorageAccountProviderBinding
- This method builds a StorageAccount object from the arg xml.
- Specified by:
getAccountFromXml
in interface StorageAccountProviderBinding
- Parameters:
xml
- serialization of StorageAccount
- Returns:
- StorageAccount
getStorageProviderType
protected StorageProviderType getStorageProviderType(org.jdom.Element xml)
getAccountId
protected java.lang.String getAccountId(org.jdom.Element xml)
getIsPrimary
protected boolean getIsPrimary(org.jdom.Element xml)
getCredential
protected Credential getCredential(org.jdom.Element xml)
getElementFrom
public org.jdom.Element getElementFrom(StorageAccount acct,
boolean includeCredentials)
- Description copied from interface:
StorageAccountProviderBinding
- This method builds an xml element from the arg StorageAccount.
- Specified by:
getElementFrom
in interface StorageAccountProviderBinding
- Parameters:
acct
- from whence xml will be builtincludeCredentials
- flag indicating inclusion of credentials in xml
- Returns:
- xml element
Copyright © 2009-2011 DuraSpace. All Rights Reserved.