Package org.duracloud.storage.xml.impl
Class StorageAccountProviderSimpleBindingImpl
java.lang.Object
org.duracloud.storage.xml.impl.StorageAccountProviderSimpleBindingImpl
- All Implemented Interfaces:
StorageAccountProviderBinding
public class StorageAccountProviderSimpleBindingImpl
extends Object
implements StorageAccountProviderBinding
This class provides a simple xml binding for storage accounts.
- Author:
- Andrew Woods Date: 5/9/11
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccountFromXml(org.jdom.Element xml) This method builds a StorageAccount object from the arg xml.protected StringgetAccountId(org.jdom.Element xml) protected CredentialgetCredential(org.jdom.Element xml) org.jdom.ElementgetElementFrom(StorageAccount acct, boolean includeCredentials, boolean includeHiddenOptions) This method builds an xml element from the arg StorageAccount.protected booleangetIsPrimary(org.jdom.Element xml) protected org.duracloud.storage.domain.StorageProviderTypegetStorageProviderType(org.jdom.Element xml)
-
Constructor Details
-
StorageAccountProviderSimpleBindingImpl
public StorageAccountProviderSimpleBindingImpl()
-
-
Method Details
-
getAccountFromXml
Description copied from interface:StorageAccountProviderBindingThis method builds a StorageAccount object from the arg xml.- Specified by:
getAccountFromXmlin interfaceStorageAccountProviderBinding- Parameters:
xml- serialization of StorageAccount- Returns:
- StorageAccount
-
getStorageProviderType
protected org.duracloud.storage.domain.StorageProviderType getStorageProviderType(org.jdom.Element xml) -
getAccountId
-
getIsPrimary
protected boolean getIsPrimary(org.jdom.Element xml) -
getCredential
-
getElementFrom
public org.jdom.Element getElementFrom(StorageAccount acct, boolean includeCredentials, boolean includeHiddenOptions) Description copied from interface:StorageAccountProviderBindingThis method builds an xml element from the arg StorageAccount.- Specified by:
getElementFromin interfaceStorageAccountProviderBinding- Parameters:
acct- from whence xml will be builtincludeCredentials- flag indicating inclusion of credentials in xmlincludeHiddenOptions- flag indicating inclusion of hidden options in xml- Returns:
- xml element
-