/** * Creates a top-level property definition and adds it to the schema. * * This is a preferred way how to create definition in the schema. * * @param localName * element name "relative" to schema namespace * @param typeName * XSD type name of the element * @return new property definition */ @Override public PrismPropertyDefinition createPropertyDefinition(String localName, QName typeName) { QName name = new QName(getNamespace(), localName); return createPropertyDefinition(name, typeName); }
schema.createPropertyDefinition("number1", DOMUtil.XSD_INT);