eclipse plugin: Remove the now obsolete schema implementation

This commit is contained in:
Timotei Dolean 2011-07-06 16:52:18 +00:00
parent 63167eb0b2
commit f887602c68
10 changed files with 0 additions and 283 deletions

View file

@ -1,5 +0,0 @@
package org.wesnoth.wml.schema;
public interface SchemaAttribute extends SchemaElement{
String getValueExpression();
}

View file

@ -1,5 +0,0 @@
package org.wesnoth.wml.schema;
public interface SchemaAttributeChild extends SchemaChild {
SchemaAttribute getChild();
}

View file

@ -1,8 +0,0 @@
package org.wesnoth.wml.schema;
public interface SchemaChild {
public static boolean REQUIRED = true;
public static boolean OPTIONAL = false;
boolean isRequired();
String getName();
}

View file

@ -1,8 +0,0 @@
package org.wesnoth.wml.schema;
public interface SchemaElement {
public String getDescription();
public String getName();
public boolean isTag();
}

View file

@ -1,8 +0,0 @@
package org.wesnoth.wml.schema;
import java.util.List;
public interface SchemaTag extends SchemaElement{
List<SchemaAttributeChild> getAttributes();
List<SchemaTagChild> getTags();
}

View file

@ -1,7 +0,0 @@
package org.wesnoth.wml.schema;
public interface SchemaTagChild extends SchemaChild {
SchemaTag getChild();
boolean isRepeated();
}

View file

@ -1,53 +0,0 @@
package org.wesnoth.wml.schema.impl;
import org.wesnoth.wml.schema.SchemaAttribute;
import org.wesnoth.wml.schema.SchemaAttributeChild;
public class SchemaAttributeChildImpl implements SchemaAttributeChild
{
SchemaAttribute child;
String name;
boolean required;
public SchemaAttributeChildImpl(String name, SchemaAttribute child, boolean required) {
super();
this.child = child;
this.name = name;
this.required = required;
}
@Override
public SchemaAttribute getChild()
{
return this.child;
}
public void setChild(SchemaAttribute child)
{
this.child = child;
}
@Override
public boolean isRequired()
{
return this.required;
}
public void setRequired(boolean required)
{
this.required = required;
}
@Override
public String getName()
{
return this.name;
}
public void setName(String name)
{
this.name = name;
}
}

View file

@ -1,55 +0,0 @@
package org.wesnoth.wml.schema.impl;
import org.wesnoth.wml.schema.SchemaAttribute;
public class SchemaAttributeImpl implements SchemaAttribute
{
private String name;
private String description;
private String valueExpression;
public SchemaAttributeImpl(String name) {
this.name = name;
}
@Override
public String getValueExpression()
{
return this.valueExpression;
}
public void setValueExpression(String valueExpression)
{
this.valueExpression = valueExpression;
}
@Override
public String getName()
{
return this.name;
}
public void setName(String name)
{
this.name = name;
}
@Override
public String getDescription()
{
return this.description;
}
public void setDescription(String description)
{
this.description = description;
}
@Override
public boolean isTag()
{
return false;
}
}

View file

@ -1,57 +0,0 @@
package org.wesnoth.wml.schema.impl;
import org.wesnoth.wml.schema.SchemaTag;
import org.wesnoth.wml.schema.SchemaTagChild;
public class SchemaTagChildImpl implements SchemaTagChild
{
SchemaTag child;
String name;
boolean repeated;
boolean required;
@Override
public SchemaTag getChild()
{
return this.child;
}
@Override
public boolean isRepeated()
{
return this.repeated;
}
@Override
public boolean isRequired()
{
return this.required;
}
public void setChild(SchemaTag child)
{
this.child = child;
}
public void setRepeated(boolean repeated)
{
this.repeated = repeated;
}
public void setRequired(boolean required)
{
this.required = required;
}
@Override
public String getName()
{
return this.name;
}
public void setName(String name)
{
this.name = name;
}
}

View file

@ -1,77 +0,0 @@
package org.wesnoth.wml.schema.impl;
import org.wesnoth.wml.schema.SchemaAttributeChild;
import org.wesnoth.wml.schema.SchemaTag;
import org.wesnoth.wml.schema.SchemaTagChild;
import java.util.ArrayList;
import java.util.List;
public class SchemaTagImpl implements SchemaTag
{
private List<SchemaAttributeChild> attributes = new ArrayList<SchemaAttributeChild>();
private List<SchemaTagChild> tags = new ArrayList<SchemaTagChild>();
private String name;
private String description;
@Override
public List<SchemaAttributeChild> getAttributes()
{
return this.attributes;
}
public void setAttributes(List<SchemaAttributeChild> attributes)
{
this.attributes = attributes;
}
@Override
public List<SchemaTagChild> getTags()
{
return this.tags;
}
public void setTags(List<SchemaTagChild> tags)
{
this.tags = tags;
}
@Override
public String getName()
{
return this.name;
}
public void setName(String name)
{
this.name = name;
}
@Override
public String getDescription()
{
return this.description;
}
public void setDescription(String description)
{
this.description = description;
}
@Override
public boolean isTag()
{
return true;
}
public void addAttribute(SchemaAttributeChild attribute)
{
this.attributes.add(attribute);
}
public void addTag(SchemaTagChild tag)
{
this.tags.add(tag);
}
}