Class ContextConfiguration
- java.lang.Object
-
- com.lyncode.xoai.dataprovider.xml.xoaiconfig.ContextConfiguration
-
- All Implemented Interfaces:
XMLWritable
public class ContextConfiguration extends Object implements XMLWritable
-
-
Constructor Summary
Constructors Constructor Description ContextConfiguration(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseUrl()StringgetDescription()BundleReferencegetFilters()List<BundleReference>getFormats()StringgetName()List<BundleReference>getSets()BundleReferencegetTransformers()booleanhasDescription()booleanhasFilter()booleanhasSets()booleanhasTransformer()ContextConfigurationwithDescription(String description)ContextConfigurationwithFilter(String filterId)ContextConfigurationwithFormat(String formatId)ContextConfigurationwithFormats(String... formats)ContextConfigurationwithFormats(Collection<String> formats)ContextConfigurationwithName(String name)ContextConfigurationwithSet(String setId)ContextConfigurationwithSets(String... setsIds)ContextConfigurationwithSets(Collection<String> setsIds)ContextConfigurationwithTransformer(String transformerId)voidwrite(XmlOutputContext writer)
-
-
-
Constructor Detail
-
ContextConfiguration
public ContextConfiguration(String baseUrl)
-
-
Method Detail
-
getTransformers
public BundleReference getTransformers()
-
getFilters
public BundleReference getFilters()
-
getSets
public List<BundleReference> getSets()
-
getDescription
public String getDescription()
-
getName
public String getName()
-
getBaseUrl
public String getBaseUrl()
-
getFormats
public List<BundleReference> getFormats()
-
withTransformer
public ContextConfiguration withTransformer(String transformerId)
-
withFilter
public ContextConfiguration withFilter(String filterId)
-
withSets
public ContextConfiguration withSets(Collection<String> setsIds)
-
withSets
public ContextConfiguration withSets(String... setsIds)
-
withSet
public ContextConfiguration withSet(String setId)
-
withFormats
public ContextConfiguration withFormats(Collection<String> formats)
-
withFormats
public ContextConfiguration withFormats(String... formats)
-
withFormat
public ContextConfiguration withFormat(String formatId)
-
withDescription
public ContextConfiguration withDescription(String description)
-
withName
public ContextConfiguration withName(String name)
-
write
public void write(XmlOutputContext writer) throws WritingXmlException
- Specified by:
writein interfaceXMLWritable- Throws:
WritingXmlException
-
hasDescription
public boolean hasDescription()
-
hasSets
public boolean hasSets()
-
hasFilter
public boolean hasFilter()
-
hasTransformer
public boolean hasTransformer()
-
-