Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.core.config.jaxb
Class JAXBMappingsConfiguration

java.lang.Object
  extended by oracle.stellent.wcm.core.config.jaxb.JAXBMappingsConfiguration

All Implemented Interfaces:
MappingsConfiguration

public class JAXBMappingsConfiguration
extends java.lang.Object
implements MappingsConfiguration

Constructor Summary
JAXBMappingsConfiguration()
           
JAXBMappingsConfiguration(oracle.stellent.wcm.core.config.jaxb.model.MappingsType model)
           

 

Method Summary
 void addMapping(Mapping mapping)
          Add a mapping; will override any mapping with the same ID
 void clearMappings()
          Remove all mappings
 boolean containsMapping(java.lang.String id)
          Return true if the ID is mapped in this config
 java.util.Set<java.lang.String> getIDs()
           
 Mapping getMapping(java.lang.String id)
          The mapping of a page name to application page
 Mapping getMappingByPath(java.lang.String path)
          The mapping of a page name to application page
 java.util.Map<java.lang.String,JAXBMapping> getMappingByPathTable()
           
 java.util.List<Mapping> getMappings(Mapping.Type type)
          Retrieve a list of mappings by type
 java.util.List<Mapping> getMappings(Mapping.Type type, java.lang.String attrName, java.lang.String attrValue)
          Retrieve list of mappings by type and attribute name/value match
protected  java.util.List<oracle.stellent.wcm.core.config.jaxb.model.MappingType> getMappingTypeList(Mapping.Type type)
          Retrieve the type list from the JAXB model
 oracle.stellent.wcm.core.config.jaxb.model.MappingsType getModel()
           
 java.util.Map<java.lang.String,JAXBMapping> getTable()
           
protected  void init()
          Initialize our internal Map using the information in the JAXB data model
 boolean isPathMapped(java.lang.String path)
          Return true if the ID is mapped in this config
 void removeMapping(java.lang.String id)
          Remove the mapping
 java.lang.String resolveToPath(java.lang.String id)
          Resolves the ID to a path

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JAXBMappingsConfiguration

public JAXBMappingsConfiguration()

JAXBMappingsConfiguration

public JAXBMappingsConfiguration(oracle.stellent.wcm.core.config.jaxb.model.MappingsType model)

Method Detail

getModel

public oracle.stellent.wcm.core.config.jaxb.model.MappingsType getModel()

getTable

public java.util.Map<java.lang.String,JAXBMapping> getTable()

getMappingByPathTable

public java.util.Map<java.lang.String,JAXBMapping> getMappingByPathTable()

getIDs

public java.util.Set<java.lang.String> getIDs()
Specified by:
getIDs in interface MappingsConfiguration
Returns:
the IDs that are mapped

getMapping

public Mapping getMapping(java.lang.String id)
The mapping of a page name to application page
Specified by:
getMapping in interface MappingsConfiguration
Parameters:
id - the page name
Returns:
the mapping or null if not set

resolveToPath

public java.lang.String resolveToPath(java.lang.String id)
Resolves the ID to a path
Specified by:
resolveToPath in interface MappingsConfiguration
Parameters:
id - the id
Returns:
the path for the ID or null if not found

getMappings

public java.util.List<Mapping> getMappings(Mapping.Type type)
Retrieve a list of mappings by type
Specified by:
getMappings in interface MappingsConfiguration
Parameters:
type - the type
Returns:
a list of mappings of this type

getMappings

public java.util.List<Mapping> getMappings(Mapping.Type type,
                                           java.lang.String attrName,
                                           java.lang.String attrValue)
Retrieve list of mappings by type and attribute name/value match
Specified by:
getMappings in interface MappingsConfiguration
Parameters:
type - the type
attrName - the attribute name
attrValue - the value
Returns:
the mappings list

containsMapping

public boolean containsMapping(java.lang.String id)
Return true if the ID is mapped in this config
Specified by:
containsMapping in interface MappingsConfiguration
Parameters:
id - the identifier
Returns:
true if the ID is mapped

isPathMapped

public boolean isPathMapped(java.lang.String path)
Return true if the ID is mapped in this config
Specified by:
isPathMapped in interface MappingsConfiguration
Parameters:
path - the path to the file
Returns:
true if the path is mapped

getMappingByPath

public Mapping getMappingByPath(java.lang.String path)
The mapping of a page name to application page
Specified by:
getMappingByPath in interface MappingsConfiguration
Parameters:
path - the path to the file that is mapped
Returns:
the mapping or null if not set

removeMapping

public void removeMapping(java.lang.String id)
Remove the mapping
Specified by:
removeMapping in interface MappingsConfiguration
Parameters:
id - the mapping ID

clearMappings

public void clearMappings()
Remove all mappings
Specified by:
clearMappings in interface MappingsConfiguration

addMapping

public void addMapping(Mapping mapping)
Add a mapping; will override any mapping with the same ID
Specified by:
addMapping in interface MappingsConfiguration
Parameters:
mapping - the mapping object

init

protected void init()
Initialize our internal Map using the information in the JAXB data model

getMappingTypeList

protected java.util.List<oracle.stellent.wcm.core.config.jaxb.model.MappingType> getMappingTypeList(Mapping.Type type)
Retrieve the type list from the JAXB model
Parameters:
type - the mapping type
Returns:
the list for the given type

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.