Package org.duracloud.storage.xml
Interface StorageAccountProviderBinding
- All Known Implementing Classes:
StorageAccountProviderSimpleBindingImpl
public interface StorageAccountProviderBinding
This interface defines the contract for Storage Account xml bindings.
- Author:
- Andrew Woods Date: 5/9/11
-
Method Summary
Modifier and TypeMethodDescriptiongetAccountFromXml(org.jdom.Element xml) This method builds a StorageAccount object from the arg xml.org.jdom.ElementgetElementFrom(StorageAccount acct, boolean includeCredentials, boolean includeHiddenOptions) This method builds an xml element from the arg StorageAccount.
-
Method Details
-
getAccountFromXml
This method builds a StorageAccount object from the arg xml.- Parameters:
xml- serialization of StorageAccount- Returns:
- StorageAccount
- Throws:
Exception
-
getElementFrom
org.jdom.Element getElementFrom(StorageAccount acct, boolean includeCredentials, boolean includeHiddenOptions) This method builds an xml element from the arg StorageAccount.- 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
- Throws:
Exception
-