|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cisco.oss.foundation.configuration.xml.NamespaceDefinitionMessage
public class NamespaceDefinitionMessage
This class is responsible for marshalling and unmarshalling NamespaceDefinition messages.
| Constructor Summary | |
|---|---|
NamespaceDefinitionMessage(NamespaceDefinitions jaxb)
|
|
NamespaceDefinitionMessage(String xml)
|
|
| Method Summary | |
|---|---|
protected void |
addDependenciesRecursively(Namespace namespace,
List<Namespace> namespaceList,
String dependencyId,
List<String> extendedDependencies)
Adds dependencyId, and all of it's depdencies recursively using namespaceList, to extendedDependencies for namespace. |
protected Map<Namespace,List<String>> |
createNamespaceMap(List<NamespaceDefinition> namespaceDefs)
Checks that there aren't namespaces that depend on namespaces that don't exist in the list, and creates a list of all Namespace Objects in the list. |
protected NamespaceDefinition |
extractNamespaceWithLeastDependencies(Map<Namespace,List<String>> namespaceMap)
|
NamespaceDefinitions |
jaxb()
|
protected String |
marshall(NamespaceDefinitions jaxb)
|
List<NamespaceDefinition> |
sortByDependencies()
A NamespaceDefinition cannot be injected into the DB unless it's dependencies are injected first. |
String |
toXml()
|
protected NamespaceDefinitions |
unmarshall(String xml)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceDefinitionMessage(String xml)
throws XmlException
XmlException
public NamespaceDefinitionMessage(NamespaceDefinitions jaxb)
throws XmlException
XmlException| Method Detail |
|---|
public String toXml()
public NamespaceDefinitions jaxb()
protected String marshall(NamespaceDefinitions jaxb)
throws XmlException
XmlException
protected NamespaceDefinitions unmarshall(String xml)
throws XmlException
XmlException
public List<NamespaceDefinition> sortByDependencies()
throws XmlException
XmlException - if dependencies are missing or circular dependencies exist such that there aren't any NamespaceDefinitions without dependenciesprotected NamespaceDefinition extractNamespaceWithLeastDependencies(Map<Namespace,List<String>> namespaceMap)
protected Map<Namespace,List<String>> createNamespaceMap(List<NamespaceDefinition> namespaceDefs)
throws XmlException
XmlException - if there are any dependencies missing.
protected void addDependenciesRecursively(Namespace namespace,
List<Namespace> namespaceList,
String dependencyId,
List<String> extendedDependencies)
throws XmlException
XmlException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||