Tabnine Logo
XSDSimpleTypeDefinition.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.eclipse.xsd.XSDSimpleTypeDefinition

Best Java code snippets using org.eclipse.xsd.XSDSimpleTypeDefinition.getName (Showing top 20 results out of 315)

origin: org.eclipse/org.eclipse.wst.xsd.ui

public String getDisplayName()
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition) target;
 return (xsdSimpleTypeDefinition.getName() == null ? Messages._UI_LABEL_LOCAL_TYPE : xsdSimpleTypeDefinition.getName());
}
origin: geotools/geotools

if ( type.getName() == null ) {
origin: geotools/geotools

          + name(attribute) + " of " + getName());
if (type.getName() == null) {
origin: org.eclipse/org.eclipse.wst.xsd.ui

public boolean isFocusAllowed()
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition) target;
 if (XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001.equals(xsdSimpleTypeDefinition.getTargetNamespace()))
 {
  return false;
 }
 if (xsdSimpleTypeDefinition.getName() == null)
 {
  return false;
 }
 return true;
}

origin: org.eclipse/org.eclipse.wst.xsd.ui

public String getTextForAttribute(XSDAttributeDeclaration ad, boolean showType)
{
 ad = ad.getResolvedAttributeDeclaration();
 String name = ad.getName();
 StringBuffer result = new StringBuffer();
 if (name == null)
 {
  result.append(" " + Messages._UI_LABEL_ABSENT + " ");  //$NON-NLS-1$ //$NON-NLS-2$
 }
 else
 {
  result.append(name);
 }
 if (ad.getAnonymousTypeDefinition() == null && ad.getTypeDefinition() != null)
 {
  result.append(" : "); //$NON-NLS-1$
  // result.append(resolvedAttributeDeclaration.getTypeDefinition().getQName(xsdAttributeDeclaration));
  result.append(ad.getTypeDefinition().getName());
 }
 return result.toString();
}
origin: org.eclipse.xsd/org.eclipse.xsd

/**
 * Returns whether the type definition is a built-in type with the given name 
 * or is derived from a built-in type with that name.
 * @param xsdSimpleTypeDefinition a type definition.
 * @return whether the type definition is a built-in type with the given name 
 * or is derived from a built-in type with that name.
 * @since 2.4
 */
public static boolean isOrIsDerivedFrom(XSDSimpleTypeDefinition xsdSimpleTypeDefinition, String name)
{
 Set<XSDTypeDefinition> visited = new HashSet<XSDTypeDefinition>();
 while (xsdSimpleTypeDefinition != null)
 {
  if (isSchemaForSchemaNamespace(xsdSimpleTypeDefinition.getTargetNamespace()) &&
     name.equals(xsdSimpleTypeDefinition.getName()))
  {
   return true;
  }
  if (!visited.add(xsdSimpleTypeDefinition = xsdSimpleTypeDefinition.getBaseTypeDefinition()))
  {
   return false;
  }
 }
 return false;
}
origin: org.eclipse.xsd/org.eclipse.xsd

public static boolean isLocalReferenceType(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
 while (xsdSimpleTypeDefinition != null)
 {
  if (XSDConstants.isAnySimpleType(xsdSimpleTypeDefinition))
  {
   return false;
  }
  String name = xsdSimpleTypeDefinition.getName();
  if (XSDConstants.isSchemaForSchemaNamespace(xsdSimpleTypeDefinition.getTargetNamespace()) &&
     ("IDREF".equals(name) || "IDREFS".equals(name)))
  {
   return true;
  }
  xsdSimpleTypeDefinition = xsdSimpleTypeDefinition.getBaseTypeDefinition();
 }
 return false;
}
origin: org.eclipse/org.eclipse.xsd

public static boolean isLocalReferenceType(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
 while (xsdSimpleTypeDefinition != null)
 {
  if (XSDConstants.isAnySimpleType(xsdSimpleTypeDefinition))
  {
   return false;
  }
  String name = xsdSimpleTypeDefinition.getName();
  if (XSDConstants.isSchemaForSchemaNamespace(xsdSimpleTypeDefinition.getTargetNamespace()) &&
     ("IDREF".equals(name) || "IDREFS".equals(name)))
  {
   return true;
  }
  xsdSimpleTypeDefinition = xsdSimpleTypeDefinition.getBaseTypeDefinition();
 }
 return false;
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

  String basePrimitiveTypeString = basePrimitiveType != null ? basePrimitiveType.getName() : "";
  currentPrimitiveType = basePrimitiveType;
  titleString = Messages._UI_LABEL_TYPE + (anonymousTypeDefinition != null ? "(" + xsdFeature.getResolvedFeature().getName() + "Type)" : xsdSimpleTypeDefinition.getName())  + " , " + Messages._UI_LABEL_BASE + ": " + basePrimitiveTypeString; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
  titleString = Messages._UI_LABEL_TYPE + (anonymousTypeDefinition != null ? "(" + xsdFeature.getResolvedFeature().getName() + "Type)" : xsdSimpleTypeDefinition.getName());
titleString = Messages._UI_LABEL_TYPE + (xsdSimpleTypeDefinition.getName() == null ? "(localType)" : xsdSimpleTypeDefinition.getName()) + " , " + Messages._UI_LABEL_BASE + ": " + xsdSimpleTypeDefinition.getBaseTypeDefinition().getName(); //$NON-NLS-1$ //$NON-NLS-2$
origin: org.eclipse/org.eclipse.wst.xsd.ui

simpleTypeModifierGroupTitle = Messages._UI_LABEL_CONSTRAINTS_ON_LENGTH_OF + targetST.getName();
isNumericBaseType = false;
hasMaxMinFacets = true;
simpleTypeModifierGroupTitle = Messages._UI_LABEL_CONSTRAINTS_ON_VALUE_OF + targetST.getName();
minLengthString = Messages._UI_LABEL_MINIMUM_VALUE;
maxLengthString = Messages._UI_LABEL_MAXIMUM_VALUE;
simpleTypeModifierGroupTitle = Messages._UI_LABEL_CONTRAINTS_ON + (targetST != null ? targetST.getName() : "anyType"); //$NON-NLS-1$
origin: org.eclipse/org.eclipse.xsd

 /**
  * Returns whether the simple type definition is the 
  * <a href="http://www.w3.org/TR/xmlschema-2/#dt-ID">ID</a>.
  * @param xsdSimpleTypeDefinition a simple type definition.
  * @return whether the simple type definition is 
  */
 public static boolean isOrIsDerivedFromID(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
 {
  while (xsdSimpleTypeDefinition != null)
  {
   if (isURType(xsdSimpleTypeDefinition))
   {
    return false;
   }

   if (isSchemaForSchemaNamespace(xsdSimpleTypeDefinition.getTargetNamespace()) &&
      "ID".equals(xsdSimpleTypeDefinition.getName()))
   {
    return true;
   }

   xsdSimpleTypeDefinition = xsdSimpleTypeDefinition.getBaseTypeDefinition();
  }

  return false;
 }
}
origin: org.eclipse.xsd/org.eclipse.xsd

@Override
public Object caseXSDSimpleTypeDefinition(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
 XSDSimpleTypeDefinition redefinedSimpleTypeDefinition = 
  resolveSimpleTypeDefinition(xsdSimpleTypeDefinition.getName());
 for (XSDSchemaImpl schemaToRedefine : getSchemasToRedefine())
 {
  int index = schemaToRedefine.getTypeDefinitions().indexOf(redefinedSimpleTypeDefinition);
  if (index != -1)
  {
   schemaToRedefine.getTypeDefinitions().set(index, xsdSimpleTypeDefinition);
   schemaToRedefine.redefinitionMap.put(xsdSimpleTypeDefinition, redefinedSimpleTypeDefinition);
  }
 }
 return this;
}
@Override
origin: org.eclipse/org.eclipse.xsd

@Override
public Object caseXSDSimpleTypeDefinition(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
 XSDSimpleTypeDefinition redefinedSimpleTypeDefinition = 
  resolveSimpleTypeDefinition(xsdSimpleTypeDefinition.getName());
 for (XSDSchemaImpl schemaToRedefine : getSchemasToRedefine())
 {
  int index = schemaToRedefine.getTypeDefinitions().indexOf(redefinedSimpleTypeDefinition);
  if (index != -1)
  {
   schemaToRedefine.getTypeDefinitions().set(index, xsdSimpleTypeDefinition);
   schemaToRedefine.redefinitionMap.put(xsdSimpleTypeDefinition, redefinedSimpleTypeDefinition);
  }
 }
 return this;
}
@Override
origin: org.eclipse.xsd/org.eclipse.xsd

public int compareValues(Object value1, Object value2)
{
 if (XSDOrdered.FALSE_LITERAL != getOrderedFacet().getValue())
 {
  XSDSimpleTypeDefinition thePrimitiveTypeDefinition = getPrimitiveTypeDefinition();
  if (thePrimitiveTypeDefinition != null)
  {
   XSDAnySimpleType xsdAnySimpleType = 
    XSDTypeRegister.getTypeImplementer(thePrimitiveTypeDefinition.getName());
   return 
    value1 == null ?
      value2 == null ? 
       0 : 
       -1 :
      value2 == null ? 
       1 :
       xsdAnySimpleType.compareValues(value1, value2);
  }
 }
 return 0;
}
origin: org.eclipse/org.eclipse.xsd

public int compareValues(Object value1, Object value2)
{
 if (XSDOrdered.FALSE_LITERAL != getOrderedFacet().getValue())
 {
  XSDSimpleTypeDefinition thePrimitiveTypeDefinition = getPrimitiveTypeDefinition();
  if (thePrimitiveTypeDefinition != null)
  {
   XSDAnySimpleType xsdAnySimpleType = 
    XSDTypeRegister.getTypeImplementer(thePrimitiveTypeDefinition.getName());
   return 
    value1 == null ?
      value2 == null ? 
       0 : 
       -1 :
      value2 == null ? 
       1 :
       xsdAnySimpleType.compareValues(value1, value2);
  }
 }
 return 0;
}
origin: org.eclipse.xsd/org.eclipse.xsd

@Override
protected void patch()
{
 super.patch();
 XSDAttributeDeclaration theResolvedAttributeDeclaration = getResolvedAttributeDeclaration();
 if (theResolvedAttributeDeclaration == this)
 {
  XSDSimpleTypeDefinition typeDefinition = getTypeDefinition();
  if (typeDefinition != null && (forceResolve && typeDefinition.getName() != null || typeDefinition.getContainer() == null))
  {
   XSDSimpleTypeDefinition newTypeDefinition = 
    resolveSimpleTypeDefinition(typeDefinition.getTargetNamespace(), typeDefinition.getName());
   if (forceResolve || newTypeDefinition.getContainer() != null & newTypeDefinition != typeDefinition)
   {
    setTypeDefinitionGen(newTypeDefinition);
   }
  }
 }
 else
 {
  XSDAttributeDeclaration newResolvedAttributeDeclaration = 
   resolveAttributeDeclaration(theResolvedAttributeDeclaration.getTargetNamespace(), theResolvedAttributeDeclaration.getName());
  if (newResolvedAttributeDeclaration != theResolvedAttributeDeclaration)
  {
   setResolvedAttributeDeclaration(newResolvedAttributeDeclaration);
  }
 }
}
origin: org.eclipse.xsd/org.eclipse.xsd

if (primitiveTypeDefinition != null)
 result.setAnnotationURI(XSDConstants.PART2 + "#" + primitiveTypeDefinition.getName());
origin: org.eclipse/org.eclipse.xsd

@Override
protected void patch()
{
 super.patch();
 XSDAttributeDeclaration theResolvedAttributeDeclaration = getResolvedAttributeDeclaration();
 if (theResolvedAttributeDeclaration == this)
 {
  XSDSimpleTypeDefinition typeDefinition = getTypeDefinition();
  if (typeDefinition != null && (forceResolve && typeDefinition.getName() != null || typeDefinition.getContainer() == null))
  {
   XSDSimpleTypeDefinition newTypeDefinition = 
    resolveSimpleTypeDefinition(typeDefinition.getTargetNamespace(), typeDefinition.getName());
   if (forceResolve || newTypeDefinition.getContainer() != null & newTypeDefinition != typeDefinition)
   {
    setTypeDefinitionGen(newTypeDefinition);
   }
  }
 }
 else
 {
  XSDAttributeDeclaration newResolvedAttributeDeclaration = 
   resolveAttributeDeclaration(theResolvedAttributeDeclaration.getTargetNamespace(), theResolvedAttributeDeclaration.getName());
  if (newResolvedAttributeDeclaration != theResolvedAttributeDeclaration)
  {
   setResolvedAttributeDeclaration(newResolvedAttributeDeclaration);
  }
 }
}
origin: org.eclipse/org.eclipse.xsd

if (primitiveTypeDefinition != null)
 result.setAnnotationURI(XSDConstants.PART2 + "#" + primitiveTypeDefinition.getName());
origin: org.eclipse/org.eclipse.xsd

clonedAttributeDeclaration.setTypeDefinition
 (createUnresolvedSimpleTypeDefinition
  (theTypeDefinition.getTargetNamespace(), theTypeDefinition.getName()));
org.eclipse.xsdXSDSimpleTypeDefinitiongetName

Popular methods of XSDSimpleTypeDefinition

  • getItemTypeDefinition
    Returns the value of the 'Item Type Definition' reference. This represents theitem type definition [
  • getVariety
    Returns the value of the 'Variety' attribute. The literals are from the enumeration org.eclipse.xsd.
  • getMaxLengthFacet
    Returns the value of the 'Max Length Facet' reference. This represents the org.eclipse.xsd.XSDMaxLen
  • getMinLengthFacet
    Returns the value of the 'Min Length Facet' reference. This represents the org.eclipse.xsd.XSDMinLen
  • getEnumerationFacets
    Returns the value of the 'Enumeration Facets' reference list. The list contents are of type org.ecli
  • getFacets
    Returns the value of the 'Facets' reference list. The list contents are of type org.eclipse.xsd.XSDC
  • getLengthFacet
    Returns the value of the 'Length Facet' reference. This represents the org.eclipse.xsd.XSDLengthFace
  • getBaseType
  • getBaseTypeDefinition
    Returns the value of the 'Base Type Definition' reference. This represents thebase type definition [
  • getContainer
  • getContents
    Returns the value of the 'Contents' containment reference list. The list contents are of type org.ec
  • getMaxFacet
    Returns the value of the 'Max Facet' reference. This represents the org.eclipse.xsd.XSDMaxFacet of t
  • getContents,
  • getMaxFacet,
  • getMemberTypeDefinitions,
  • getTargetNamespace,
  • getValidFacets,
  • setBaseTypeDefinition,
  • setItemTypeDefinition,
  • setName,
  • setVariety

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • String (java.lang)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • JList (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now