public Constraints(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); initOptions(options); } protected void initOptions(int options)
protected void init(Vector comps, Version version) { if (version.getMajor() < 3) { initPropertyTables(13); } this.comparators = new ArrayList(2); //this.version = version; this.isRoot = false; this.propertyOrder = 0; this.attrCache = null; if ((comps == null) || (comps.size()==0)) { // Use the default comparator this.comparators.add(new BeanComparator()); } else { int size = comps.size(); for (int i=0; i<size; i++) this.comparators.add(comps.get(i)); } }
messageOut.println("schema2beans - " + Version.getVersion()); System.exit(0); } else if ("-xmlschema".equals(arg))
public Wizard(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); initOptions(options); } protected void initOptions(int options)
public Validation(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); initOptions(options); } protected void initOptions(int options)
public Arguments(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("argument", // NOI18N ARGUMENT, Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, Argument.class); this.initialize(options); }
public Parameters(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("parameter", // NOI18N PARAMETER, Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, Parameter.class); this.initialize(options); }
public Tag(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("tag-item", // NOI18N TAG_ITEM, Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.initialize(options); }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException{ try{ init(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); String strDocument = in.readUTF(); // System.out.println("strDocument='"+strDocument+"'"); ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes()); Document doc = GraphManager.createXmlDocument(bais, false); initOptions(Common.NO_DEFAULT_VALUES); initFromNode(doc, Common.NO_DEFAULT_VALUES); } catch (Schema2BeansException e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()); } }
public Element(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("check", // NOI18N CHECK, Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, Check.class); this.initialize(options); }
public Parameter(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("value", // NOI18N VALUE, Common.TYPE_1_N | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.initialize(options); }
public Argument(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("type", // NOI18N TYPE, Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.initialize(options); }
public OptionValuePair(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("option-name", // NOI18N OPTION_NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("conditional-value", // NOI18N CONDITIONAL_VALUE, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.initialize(options); }
public FieldValue(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("default-field-value", // NOI18N DEFAULT_FIELD_VALUE, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("option-value-pair", // NOI18N OPTION_VALUE_PAIR, Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, OptionValuePair.class); this.initialize(options); }
public Check(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("parameters", // NOI18N PARAMETERS, Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, Parameters.class); this.initialize(options); }
public Field(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("field-value", // NOI18N FIELD_VALUE, Common.TYPE_1 | Common.TYPE_BEAN | Common.TYPE_KEY, FieldValue.class); this.createProperty("tag", // NOI18N TAG, Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, Tag.class); this.initialize(options); }
public CheckInfo(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("classname", // NOI18N CLASSNAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("arguments", // NOI18N ARGUMENTS, Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, Arguments.class); this.initialize(options); }
public FieldGroup(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); // Properties (see root bean comments for the bean graph) this.createProperty("name", // NOI18N NAME, Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, String.class); this.createProperty("field", // NOI18N FIELD, Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, Field.class); this.createAttribute(FIELD, "field-type", "FieldType", AttrProp.CDATA, null, "string"); this.createAttribute(FIELD, "required", "Required", AttrProp.CDATA, null, "true"); this.initialize(options); }