@Test public void testDeclarePrefixMappings() throws Exception { final Map<String, String> mappings = pluginForREST.declarePrefixMappings(); Assert.assertTrue(mappings.containsKey(TARGET_NAMESPACE_PREFIX)); }
@Override public Map<String, String> declarePrefixMappings() { final Map<String, String> pms = new HashMap<String, String>(); if (TARGET_NAMESPACE.trim().length() > 0) { pms.put(TARGET_NAMESPACE_PREFIX, TARGET_NAMESPACE); } return Collections.unmodifiableMap(pms); }
PluginForREST implements Uml2XsdPlugin { @Override public Map<String, String> declarePrefixMappings() { final Map<String, String> pms = new HashMap<String, String>(); if (TARGET_NAMESPACE.trim().length() > 0) { pms.put(TARGET_NAMESPACE_PREFIX, TARGET_NAMESPACE); } return Collections.unmodifiableMap(pms); } }
PluginForREST implements Uml2XsdPlugin { @Override public Map<String, String> declarePrefixMappings() { final Map<String, String> pms = new HashMap<String, String>(); if (TARGET_NAMESPACE.trim().length() > 0) { pms.put(TARGET_NAMESPACE_PREFIX, TARGET_NAMESPACE); } return Collections.unmodifiableMap(pms); }  }
PluginForREST implements Uml2XsdPlugin { @Override public Map<String, String> declarePrefixMappings() { final Map<String, String> pms = new HashMap<String, String>(); if (TARGET_NAMESPACE.trim().length() > 0) { pms.put(TARGET_NAMESPACE_PREFIX, TARGET_NAMESPACE); } return Collections.unmodifiableMap(pms); }  @Override Map<String, String> declarePrefixMappings(); @Override QName getElementName(final String name, final boolean isReference); @Override QName getElementType(final String name, final boolean isAssociation); @Override QName getGraphAssociationEndName(final PsmDocument<Type> classType); @Override QName getElementName(final PsmDocument<Type> classType); @Override String getTargetNamespace(); @Override QName getTypeName(final String name); @Override boolean isAttributeFormDefaultQualified(); @Override boolean isElementFormDefaultQualified(); @Override boolean isEnabled(final QName name); @Override void writeAppInfo(final TaggedValue taggedValue, final ModelIndex lookup, final Uml2XsdPluginWriter xsw); @Override void writeAssociation(final ClassType complexType, final AssociationEnd end, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); void writeEmbedded(final ClassType complexType, final AssociationEnd end, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); void writeReference(final ClassType complexType, final AssociationEnd end, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); @Override void writeTopLevelElement(final PsmDocument<Type> classType, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); }
PluginForREST implements Uml2XsdPlugin { @Override public Map<String, String> declarePrefixMappings() { final Map<String, String> pms = new HashMap<String, String>(); if (TARGET_NAMESPACE.trim().length() > 0) { pms.put(TARGET_NAMESPACE_PREFIX, TARGET_NAMESPACE); } return Collections.unmodifiableMap(pms); }  @Override Map<String, String> declarePrefixMappings(); @Override QName getElementName(final String name, final boolean isReference); @Override QName getElementType(final String name, final boolean isAssociation); @Override QName getGraphAssociationEndName(final PsmDocument<Type> classType); @Override QName getElementName(final PsmDocument<Type> classType); @Override String getTargetNamespace(); @Override QName getTypeName(final String name); @Override boolean isAttributeFormDefaultQualified(); @Override boolean isElementFormDefaultQualified(); @Override boolean isEnabled(final QName name); @Override void writeAppInfo(final TaggedValue taggedValue, final ModelIndex lookup, final Uml2XsdPluginWriter xsw); @Override void writeAssociation(final ClassType complexType, final AssociationEnd end, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); void writeEmbedded(final ClassType complexType, final AssociationEnd end, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); void writeReference(final ClassType complexType, final AssociationEnd end, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); @Override void writeTopLevelElement(final PsmDocument<Type> classType, final ModelIndex model,
            final Uml2XsdPluginWriter xsw);  }