Beispiel #1
0
 private void lazilyResolveExtensionPoint() {
   if (extensionPoint == null) {
     ModuleRegistry registry = declaringModule.getRegistry();
     if (registry != null) {
       extensionPoint = registry.getExtensionPoint(point, declaringModule);
       if (extensionPoint != null) {
         // Set root of all schema elements
         configurationElement.setSchemaElement(
             (ConfigurationSchemaElementImpl) extensionPoint.getConfigurationSchemaElement());
       }
     }
   }
 }
 public ConfigurationElementBuilder addAttribute(String name, String value) {
   configurationElement.getMutableAttributes().put(name, value);
   return this;
 }
 public ConfigurationElementBuilder setText(String text) {
   configurationElement.setText(text);
   return this;
 }
 @Override
 public Map<String, String> getAttributes() {
   return configurationElement.getAttributes();
 }
 @Override
 public String getText() {
   return configurationElement.getText();
 }
 @Override
 public boolean hasChildren() {
   return configurationElement.hasChildren();
 }
 public ConfigurationElementBuilder createConfigurationElement(String name) {
   ConfigurationElementBuilder builder = ConfigurationElementBuilder.create(this);
   builder.setName(name);
   configurationElement.addChild(builder);
   return builder;
 }
 public ConfigurationElementBuilder addChild(PluginElement element) {
   configurationElement.addChild(element);
   return this;
 }
 @Override
 public ConfigurationElement getChildByName(String name) {
   return configurationElement.getChildByName(name);
 }
 @Override
 public ConfigurationElement getChildByName(String name, boolean directChildsOnly) {
   return configurationElement.getChildByName(name, directChildsOnly);
 }
 @Override
 public boolean hasChildByName(String name) {
   return configurationElement.hasChildByName(name);
 }
 @Override
 public ConfigurationElement getChildByContent(String content) {
   return configurationElement.getChildByContent(content);
 }
 @Override
 public ConfigurationElement getChildByContent(String content, boolean directChildsOnly) {
   return configurationElement.getChildByContent(content, directChildsOnly);
 }
 @Override
 public boolean hasChildByContent(String content) {
   return configurationElement.hasChildByContent(content);
 }
 @Override
 public List<PluginElement> getChildren() {
   return configurationElement.getChildren();
 }
 public ConfigurationElementBuilder removeAttribute(String name) {
   configurationElement.getMutableAttributes().remove(name);
   return this;
 }
 public ConfigurationElementBuilder addChild(String configElement) {
   ConfigurationElementBuilder builder =
       ConfigurationElementBuilder.create(this).setName(configElement);
   configurationElement.addChild(builder);
   return builder;
 }
 @Override
 public String toString() {
   return configurationElement.toString();
 }
 @Override
 public boolean isPlugin() {
   return configurationElement.isPlugin();
 }
 public ConfigurationElementBuilder setName(String name) {
   configurationElement.setName(name);
   return this;
 }