예제 #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());
       }
     }
   }
 }
예제 #2
0
 public ConfigurationElementBuilder addAttribute(String name, String value) {
   configurationElement.getMutableAttributes().put(name, value);
   return this;
 }
예제 #3
0
 public ConfigurationElementBuilder setText(String text) {
   configurationElement.setText(text);
   return this;
 }
예제 #4
0
 @Override
 public Map<String, String> getAttributes() {
   return configurationElement.getAttributes();
 }
예제 #5
0
 @Override
 public String getText() {
   return configurationElement.getText();
 }
예제 #6
0
 @Override
 public boolean hasChildren() {
   return configurationElement.hasChildren();
 }
예제 #7
0
 public ConfigurationElementBuilder createConfigurationElement(String name) {
   ConfigurationElementBuilder builder = ConfigurationElementBuilder.create(this);
   builder.setName(name);
   configurationElement.addChild(builder);
   return builder;
 }
예제 #8
0
 public ConfigurationElementBuilder addChild(PluginElement element) {
   configurationElement.addChild(element);
   return this;
 }
예제 #9
0
 @Override
 public ConfigurationElement getChildByName(String name) {
   return configurationElement.getChildByName(name);
 }
예제 #10
0
 @Override
 public ConfigurationElement getChildByName(String name, boolean directChildsOnly) {
   return configurationElement.getChildByName(name, directChildsOnly);
 }
예제 #11
0
 @Override
 public boolean hasChildByName(String name) {
   return configurationElement.hasChildByName(name);
 }
예제 #12
0
 @Override
 public ConfigurationElement getChildByContent(String content) {
   return configurationElement.getChildByContent(content);
 }
예제 #13
0
 @Override
 public ConfigurationElement getChildByContent(String content, boolean directChildsOnly) {
   return configurationElement.getChildByContent(content, directChildsOnly);
 }
예제 #14
0
 @Override
 public boolean hasChildByContent(String content) {
   return configurationElement.hasChildByContent(content);
 }
예제 #15
0
 @Override
 public List<PluginElement> getChildren() {
   return configurationElement.getChildren();
 }
예제 #16
0
 public ConfigurationElementBuilder removeAttribute(String name) {
   configurationElement.getMutableAttributes().remove(name);
   return this;
 }
예제 #17
0
 public ConfigurationElementBuilder addChild(String configElement) {
   ConfigurationElementBuilder builder =
       ConfigurationElementBuilder.create(this).setName(configElement);
   configurationElement.addChild(builder);
   return builder;
 }
예제 #18
0
 @Override
 public String toString() {
   return configurationElement.toString();
 }
예제 #19
0
 @Override
 public boolean isPlugin() {
   return configurationElement.isPlugin();
 }
예제 #20
0
 public ConfigurationElementBuilder setName(String name) {
   configurationElement.setName(name);
   return this;
 }