- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType
类的一些代码示例,展示了XmlSchemaType
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaType
类的具体详情如下:
包路径:com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType
类名称:XmlSchemaType
暂无
代码示例来源:origin: Evolveum/midpoint
/**
* Create an instance of {@link XmlSchemaType }
*
*/
public XmlSchemaType createXmlSchemaType() {
return new XmlSchemaType();
}
代码示例来源:origin: Evolveum/midpoint
public XmlSchemaType cachingMetadata(CachingMetadataType value) {
setCachingMetadata(value);
return this;
}
代码示例来源:origin: Evolveum/midpoint
public XmlSchemaType definition(SchemaDefinitionType value) {
setDefinition(value);
return this;
}
代码示例来源:origin: Evolveum/midpoint
public XmlSchemaType clone() {
XmlSchemaType object = new XmlSchemaType();
PrismContainerValue value = asPrismContainerValue().clone();
object.setupContainerValue(value);
return object;
}
代码示例来源:origin: Evolveum/midpoint
protected CachingMetadataType getSchemaCachingMetadata(PrismObject<ResourceType> resource) {
ResourceType resourceType = resource.asObjectable();
XmlSchemaType xmlSchemaType = resourceType.getSchema();
assertNotNull("No schema", xmlSchemaType);
Element resourceXsdSchemaElementAfter = ResourceTypeUtil.getResourceXsdSchema(resourceType);
assertNotNull("No schema XSD element", resourceXsdSchemaElementAfter);
return xmlSchemaType.getCachingMetadata();
}
代码示例来源:origin: Evolveum/midpoint
XmlSchemaType xmlSchemaType = new XmlSchemaType();
CachingMetadataType cachingMetadata = new CachingMetadataType();
cachingMetadata.setSerialNumber("serial123");
xmlSchemaType.setCachingMetadata(cachingMetadata);
Element xsdSchemaElement = DOMUtil.createElement(DOMUtil.XSD_SCHEMA_ELEMENT);
schemaDefinition.getAny().add(xsdSchemaElement);
xmlSchemaType.setDefinition(schemaDefinition);
代码示例来源:origin: Evolveum/midpoint
@Override
public void assertModification(PrismObject<ResourceType> resource, int iteration) {
List<Element> orgigElements = xmlSchemaDef.getAny();
List<Element> newElements = resource.asObjectable().getSchema().getDefinition().getAny();
assertEquals("Wrong number of elements in schema definition in iteration "+iteration, orgigElements.size(), newElements.size());
// TODO look inside elements
}
});
代码示例来源:origin: Evolveum/midpoint
@Override
public boolean equals(Object object) {
if (!(object instanceof XmlSchemaType)) {
return false;
}
XmlSchemaType other = ((XmlSchemaType) object);
return asPrismContainerValue().equivalent(other.asPrismContainerValue());
}
代码示例来源:origin: Evolveum/midpoint
public CachingMetadataType beginCachingMetadata() {
CachingMetadataType value = new CachingMetadataType();
cachingMetadata(value);
return value;
}
代码示例来源:origin: Evolveum/midpoint
CachingMetadataType schemaCachingMetadata = resource.asObjectable().getSchema().getCachingMetadata();
if (schemaCachingMetadata == null) {
schemaCachingMetadata = MiscSchemaUtil.generateCachingMetadata();
代码示例来源:origin: Evolveum/midpoint
private static SchemaDefinitionType createNewXmlSchemaDef(File resourceFile, int iteration, PrismContext prismContext) throws SchemaException {
PrismObject<ResourceType> resource = parseResource(resourceFile, prismContext);
XmlSchemaType schema = resource.asObjectable().getSchema();
SchemaDefinitionType def;
if (schema == null) {
def = new SchemaDefinitionType();
def.getAny().add(DOMUtil.createElement(DOMUtil.XSD_SCHEMA_ELEMENT));
} else {
def = schema.getDefinition();
// TODO: modify it somehow
}
return def;
}
代码示例来源:origin: Evolveum/midpoint
/**
* Returns the <xsd:schema> element from the XmlSchemaType.
*/
public static Element findXsdElement(XmlSchemaType xmlSchemaType) {
if (xmlSchemaType == null) {
return null;
}
PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue = xmlSchemaType.asPrismContainerValue();
return findXsdElement(xmlSchemaContainerValue);
}
代码示例来源:origin: Evolveum/midpoint
assertEquals("Schema serial number mismatch", resourceType.getSchema().getCachingMetadata().getSerialNumber(),
resourceTypeAgain.getSchema().getCachingMetadata().getSerialNumber());
assertTrue("Resource schema was not cached", resourceSchema == resourceSchemaAgain);
代码示例来源:origin: Evolveum/midpoint
/**
* Create an instance of {@link XmlSchemaType }
*
*/
public XmlSchemaType createXmlSchemaType() {
return new XmlSchemaType();
}
代码示例来源:origin: Evolveum/midpoint
@Test
public void testUnmarshallAndEqualsResourceSchema() throws JAXBException, SchemaException, FileNotFoundException {
System.out.println("\n\n ===[testUnmarshallAndEqualsResourceSchema]===\n");
// GIVEN
ResourceType resource1Type = JaxbTestUtil.getInstance().unmarshalObject(new File(RESOURCE_OPENDJ_FILENAME), ResourceType.class);
assertNotNull(resource1Type);
SchemaDefinitionType schemaDefinition1 = resource1Type.getSchema().getDefinition();
ResourceType resource2Type = JaxbTestUtil.getInstance().unmarshalObject(new File(RESOURCE_OPENDJ_FILENAME), ResourceType.class);
assertNotNull(resource2Type);
SchemaDefinitionType schemaDefinition2 = resource2Type.getSchema().getDefinition();
// WHEN
boolean equals = schemaDefinition1.equals(schemaDefinition2);
// THEN
assertTrue("Schema definition not equal", equals);
assertEquals("Hashcode does not match", schemaDefinition1.hashCode(), schemaDefinition2.hashCode());
}
代码示例来源:origin: Evolveum/midpoint
@Override
public String toString() {
return asPrismContainerValue().toString();
}
代码示例来源:origin: Evolveum/midpoint
protected void assertHasSchema(PrismObject<ResourceType> resource, String desc) throws SchemaException {
ResourceType resourceType = resource.asObjectable();
display("Resource "+desc, resourceType);
XmlSchemaType xmlSchemaTypeAfter = resourceType.getSchema();
assertNotNull("No schema in "+desc, xmlSchemaTypeAfter);
Element resourceXsdSchemaElementAfter = ResourceTypeUtil.getResourceXsdSchema(resourceType);
assertNotNull("No schema XSD element in "+desc, resourceXsdSchemaElementAfter);
String resourceXml = prismContext.serializeObjectToString(resource, PrismContext.LANG_XML);
// display("Resource XML", resourceXml);
CachingMetadataType cachingMetadata = xmlSchemaTypeAfter.getCachingMetadata();
assertNotNull("No caching metadata in "+desc, cachingMetadata);
assertNotNull("No retrievalTimestamp in "+desc, cachingMetadata.getRetrievalTimestamp());
assertNotNull("No serialNumber in "+desc, cachingMetadata.getSerialNumber());
Element xsdElement = ObjectTypeUtil.findXsdElement(xmlSchemaTypeAfter);
ResourceSchema parsedSchema = ResourceSchemaImpl.parse(xsdElement, resource.toString(), prismContext);
assertNotNull("No schema after parsing in "+desc, parsedSchema);
}
代码示例来源:origin: Evolveum/midpoint
/**
* Create an instance of {@link XmlSchemaType }
*
*/
public XmlSchemaType createXmlSchemaType() {
return new XmlSchemaType();
}
代码示例来源:origin: Evolveum/midpoint
System.out.println(ObjectTypeUtil.dump(unmarshalledResource));
XmlSchemaType unXmlSchemaType = unmarshalledResource.getSchema();
Element unXsd = unXmlSchemaType.getDefinition().getAny().get(0);
ResourceSchema unSchema = ResourceSchemaImpl.parse(unXsd, "unmarshalled resource", PrismTestUtil.getPrismContext());
代码示例来源:origin: Evolveum/midpoint
@XmlElement(name = "definition")
public SchemaDefinitionType getDefinition() {
return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_DEFINITION, SchemaDefinitionType.class);
}
本文整理了Java中com.evolveum.midpoint.prism.impl.lex.json.YamlLexicalProcessor类的一些代码示例,展示了YamlLexicalProce
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType类的一些代码示例,展示了XmlSchemaTyp
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType类的一些代码示例,展示了WorkItemType类
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemEventCauseInformationType类的一些
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.ZoneOfControlType类的一些代码示例,展示了ZoneOfCo
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType.getCachingMetadata()方法的
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType.setCachingMetadata()方法的
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.setOriginalAssigneeRef()
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType.setDefinition()方法的一些代码示
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.setProcessSpecificPart()
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType.()方法的一些代码示例,展示了XmlSchem
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType.getDefinition()方法的一些代码示
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.getCandidateRef()方法的一些代码
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.getCreateTimestamp()方法的一
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.getAdditionalInformation
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.getAssigneeRef()方法的一些代码示
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.getExternalId()方法的一些代码示例
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.setDeadline()方法的一些代码示例,展
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.setCreateTimestamp()方法的一
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType.setOutput()方法的一些代码示例,展示了
我是一名优秀的程序员,十分优秀!